Skip to content

I reckon ora_check_sql might not be working properly #154

Open
@dr-kd

Description

@dr-kd

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions