diff options
author | mattn <mattn.jp@gmail.com> | 2012-09-12 11:43:54 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-09-12 11:43:54 +0900 |
commit | b9ff6f3fd34bf6b537159bd01b8a93decc3eedda (patch) | |
tree | 3ef18abaf1f8a64ee3274c76c520f8b6b7a9854f /sqlite3_test.go | |
parent | workaround on windows. currently, int64 does not work correctly. (diff) | |
download | golite-b9ff6f3fd34bf6b537159bd01b8a93decc3eedda.tar.gz golite-b9ff6f3fd34bf6b537159bd01b8a93decc3eedda.tar.xz |
'is' does not work in some older sqlite3.
Diffstat (limited to 'sqlite3_test.go')
-rw-r--r-- | sqlite3_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3_test.go b/sqlite3_test.go index da9ab4c..aaeb096 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -342,7 +342,7 @@ func TestBoolean(t *testing.T) { t.Fatal("Failed to insert nonsense:", err) } - rows, err := db.Query("SELECT id, fbool FROM foo where fbool is ?", bool1) + rows, err := db.Query("SELECT id, fbool FROM foo where fbool = ?", bool1) if err != nil { t.Fatal("Unable to query foo table:", err) } @@ -366,7 +366,7 @@ func TestBoolean(t *testing.T) { t.Fatalf("Value for id 1 should be %v, not %v", bool1, fbool) } - rows, err = db.Query("SELECT id, fbool FROM foo where fbool is ?", bool2) + rows, err = db.Query("SELECT id, fbool FROM foo where fbool = ?", bool2) if err != nil { t.Fatal("Unable to query foo table:", err) } |