1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 14:48:32 -04:00

one of the placeholder tests requires SQLite 3.6.19 and newer

This commit is contained in:
Kenichi Ishigaki 2010-06-10 06:30:23 +00:00
parent 563756cc99
commit 6668829394

View file

@ -20,15 +20,18 @@ ok $dbh->do('insert into foo values(?1, ?2)', undef, 2, 3);
ok $dbh->do('insert into foo values(:1, :2)', undef, 3, 4);
ok $dbh->do('insert into foo values(@1, @2)', undef, 4, 4);
ok $dbh->do(
'update foo set id = $1 where value = $2 and id is not $1',
undef, 3, 4
);
SKIP: {
skip "this placeholder requires SQLite 3.6.19 and newer", 2
unless $DBD::SQLite::sqlite_version_number && $DBD::SQLite::sqlite_version_number >= 3006019;
ok $dbh->do(
'update foo set id = $1 where value = $2 and id is not $1',
undef, 3, 4
);
my ($count) = $dbh->selectrow_array(
'select count(id) from foo where id = ? and value = ?',
undef, 3, 4
);
ok $count == 2;
my ($count) = $dbh->selectrow_array(
'select count(id) from foo where id = ? and value = ?',
undef, 3, 4
);
ok $count == 2;
}