From 9f06636f8cbb5cdd7aebcc8b4897644f56856d9b Mon Sep 17 00:00:00 2001 From: Zbigniew Mandziejewicz Date: Fri, 22 Apr 2016 21:13:07 +0800 Subject: FTS4 is not available on Trusty --- sqlite3_fts3_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sqlite3_fts3_test.go') 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) } -- cgit v1.2.3