Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 3739a405401becd9353635094bfabcbb > files > 2

perl-DBD-SQLite-1.31-3.fc15.src.rpm

--- DBD-SQLite-1.31/t/43_fts3.t	2010-09-15 08:16:43.000000000 +0100
+++ DBD-SQLite-1.31/t/43_fts3.t	2010-09-15 14:50:58.529161202 +0100
@@ -90,6 +90,11 @@
   }
 
   # 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 +102,9 @@
     my $results = $dbh->selectcol_arrayref($sql, undef, $query);
     is_deeply($results, \@expected, "$query (unicode is $use_unicode)");
   }
+
+}
+
 }