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:
parent
d5c6e51914
commit
734ea7ab4b
1 changed files with 7 additions and 0 deletions
|
@ -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)");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue