1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

"IS NULL" was first supported at SQLite 3.6.19, not 3.6.10

This commit is contained in:
Kenichi Ishigaki 2015-04-16 20:24:23 +09:00
parent a23de06650
commit 2200a59da2

View file

@ -34,7 +34,7 @@ our $perl_rows = [
];
my $tests = 14;
$tests += 1 if has_sqlite('3.6.10');
$tests += 1 if has_sqlite('3.6.19');
plan tests => 4 + 2 * $tests + @interpolation_attempts + 9;
my $dbh = connect_ok( RaiseError => 1, AutoCommit => 1 );
@ -108,7 +108,7 @@ sub test_table {
$res = $dbh->selectcol_arrayref($sql, {}, undef);
is_deeply $res, [], $sql;
if (has_sqlite('3.6.10')) {
if (has_sqlite('3.6.19')) {
$sql = "SELECT a FROM $table WHERE c IS ?";
$res = $dbh->selectcol_arrayref($sql, {}, undef);
is_deeply $res, [7], $sql;