Skip to content

Commit

Permalink
skip Oracle12c tests if Oracle server is not v12
Browse files Browse the repository at this point in the history
  • Loading branch information
damil committed Dec 26, 2023
1 parent ca2e526 commit aa43fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/v3_Oracle12c.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ SKIP: {
# connect to DB
my $dbh = DBI->connect(undef, undef, undef,
{RaiseError => 1, AutoCommit => 1});
my $server_version = $dbh->func('ora_server_version');
$server_version->[0] >= 12
or plan skip_all => "need Oracle v12 or higher; this is only version " . join(",", @$server_version);

ORA->dbh($dbh);
my $source = ORA->table('All_tables');

Expand Down

0 comments on commit aa43fac

Please sign in to comment.