diff --git a/db/db_common_test.go b/db/db_common_test.go index 6a0bcf28..03fdf985 100644 --- a/db/db_common_test.go +++ b/db/db_common_test.go @@ -61,12 +61,13 @@ func testTableCreationFTS(t *testing.T, db *DB) { if exp, got := `[{}]`, asJSON(r); exp != got { t.Fatalf("unexpected results for query, expected %s, got %s", exp, got) } - r, err = db.ExecuteStringStmt("CREATE VIRTUAL TABLE foo5 USING fts5(id INTEGER NOT NULL PRIMARY KEY, name TEXT)") + r, err = db.ExecuteStringStmt("CREATE VIRTUAL TABLE email USING fts5(sender, title, body)") if err != nil { t.Fatalf("failed to create table: %s", err.Error()) } - if exp, got := `[{}]`, asJSON(r); exp != got { - t.Fatalf("unexpected results for query, expected %s, got %s", exp, got) + // Creating an FTS5 table actually affects rows, so just make sure it's not an error. + if strings.Contains(asJSON(r), "error") { + t.Fatalf("unexpected error for query, expected %s, got %s", `[{}]`, asJSON(r)) } } diff --git a/go.mod b/go.mod index 415a32b6..d6df526e 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/mattn/go-isatty v0.0.19 // indirect github.com/mkideal/cli v0.2.7 github.com/mkideal/pkg v0.1.3 - github.com/rqlite/go-sqlite3 v1.28.0 + github.com/rqlite/go-sqlite3 v1.29.0 github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48 github.com/rqlite/rqlite-disco-clients v0.0.0-20230505011544-70f7602795ff github.com/rqlite/sql v0.0.0-20221103124402-8f9ff0ceb8f0 diff --git a/go.sum b/go.sum index dc975ab4..4756fe67 100644 --- a/go.sum +++ b/go.sum @@ -1192,8 +1192,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= -github.com/rqlite/go-sqlite3 v1.28.0 h1:26JE7mUIAaY4SxeZgZyl5iK6gmYFbTFNKvcpIEfTT14= -github.com/rqlite/go-sqlite3 v1.28.0/go.mod h1:nd4ooHtz396nqTudi+5u7stMN8EEkHjceyUARVYOceY= +github.com/rqlite/go-sqlite3 v1.29.0 h1:esocwKISD/it/52y105s1Y/MrGYSUL/lJHIQCHHd230= +github.com/rqlite/go-sqlite3 v1.29.0/go.mod h1:nd4ooHtz396nqTudi+5u7stMN8EEkHjceyUARVYOceY= github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48 h1:NZ62M+kT0JqhyFUMc8I4SMmfmD4NGJxhb2ePJQXjryc= github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48/go.mod h1:CRnsxgy5G8fAf5J+AM0yrsSdxXHKkIYOaq2sm+Q4DYc= github.com/rqlite/rqlite-disco-clients v0.0.0-20230505011544-70f7602795ff h1:NRe0uU1s3f2nYMV+xaASReg0w13FR+pLMn/kVUSuao4=