You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a sample script, easy enough to adapt into something that will "work on your machine":
use warnings;
use strict;
use Test::More;
use Test::Exception;
my $dbh = DBI->connect(... your dsn here ...);
my $bad = 'some invalid sql here!';
my $sth;
dies_ok { $sth = $dbh->prepare("$bad", { ora_check_sql => 1 }) } "bad sql does not parse";
dies_ok { $sth->execute } "bad sql is invalid";
diag $@;
done_testing;
Unless I'm reading the documentation wrong this test should pass, but I can't make it do so. Am I missing something or is thiis functionality broken? [ note - edited the test above as it contained some thinkos ]
The text was updated successfully, but these errors were encountered:
Here's a sample script, easy enough to adapt into something that will "work on your machine":
Unless I'm reading the documentation wrong this test should pass, but I can't make it do so. Am I missing something or is thiis functionality broken? [ note - edited the test above as it contained some thinkos ]
The text was updated successfully, but these errors were encountered: