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

applied a patch from paul@city-fan.org to resolve # 61361

This commit is contained in:
Kenichi Ishigaki 2010-09-16 07:08:36 +00:00
parent d5c6e51914
commit 734ea7ab4b

View file

@ -90,6 +90,10 @@ for my $use_unicode (0, 1) {
}
# queries
SKIP: {
skip "These tests require SQLite compiled with ENABLE_FTS3_PARENTHESIS option", scalar @tests
unless DBD::SQLite->can('compile_options') &&
grep /ENABLE_FTS3_PARENTHESIS/, DBD::SQLite::compile_options();
my $sql = "SELECT docid FROM try_fts3 WHERE content MATCH ?";
for my $t (@tests) {
my ($query, @expected) = @$t;
@ -97,6 +101,9 @@ for my $use_unicode (0, 1) {
my $results = $dbh->selectcol_arrayref($sql, undef, $query);
is_deeply($results, \@expected, "$query (unicode is $use_unicode)");
}
}
}