Open
Description
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 ]
Metadata
Metadata
Assignees
Labels
No labels