Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I reckon ora_check_sql might not be working properly #154

Open
dr-kd opened this issue Aug 14, 2022 · 0 comments
Open

I reckon ora_check_sql might not be working properly #154

dr-kd opened this issue Aug 14, 2022 · 0 comments

Comments

@dr-kd
Copy link

dr-kd commented Aug 14, 2022

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 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant