AnyEvent::DBI SQLite test fails
Laurent
laurent.aml at gmail.com
Wed Oct 28 15:32:03 CET 2015
Marc,
Using latest DBI/DBD::SQLite/AnyEvent::DBI (2.3), I have a failure here:
AnyEvent-DBI # PERL_ANYEVENT_DBI_TESTS=1 perl -Iblib/lib t/02_sql_lite.t
[...]
not ok 39 - Using an unknown function results in error
# Failed test 'Using an unknown function results in error'
# at t/02_sql_lite.t line 192.
# ''
# doesn't match '(?^i:function)'
[...]
(all other tests OK)
Here is the failing test:
# using bad function returns error
$cv = AnyEvent->condvar;
$dbh->exec('select a_column from a_table where instr(a_column,?)','re',
sub {return $cv->send($@, at _[0,1,2]);});
my $hdl;
($error,$hdl,$result,$rv) = $cv->recv();
like($error,qr{function}i,'Using an unknown function results in error');
Apparently, the "instr" function does exist, so no error is generated.
Replacing "instr" with some non-existing function works.
Thanks,
-- Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20151028/ff46df26/attachment.html>
More information about the anyevent
mailing list