aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_fts3_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite3_fts3_test.go')
-rw-r--r--sqlite3_fts3_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sqlite3_fts3_test.go b/sqlite3_fts3_test.go
index 803afbd..e06fc5d 100644
--- a/sqlite3_fts3_test.go
+++ b/sqlite3_fts3_test.go
@@ -93,7 +93,10 @@ func TestFTS4(t *testing.T) {
_, err = db.Exec("DROP TABLE foo")
_, err = db.Exec("CREATE VIRTUAL TABLE foo USING fts4(tokenize=unicode61, id INTEGER PRIMARY KEY, value TEXT)")
- if err != nil {
+ switch {
+ case err != nil && err.Error() == "unknown tokenizer: unicode61":
+ t.Skip("FTS4 not supported")
+ case err != nil:
t.Fatal("Failed to create table:", err)
}