diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-12-09 12:58:20 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-12-09 12:58:20 +0900 |
commit | 35cf400919eb9c0fc5bb69860421d6597318a13b (patch) | |
tree | f4c7672064a1ddf3d05db9aac00dcff43ccc8fb0 /sqlite3_go18_test.go | |
parent | fix tree for tools/upgrade.go (diff) | |
download | golite-35cf400919eb9c0fc5bb69860421d6597318a13b.tar.gz golite-35cf400919eb9c0fc5bb69860421d6597318a13b.tar.xz |
fix tests
Diffstat (limited to 'sqlite3_go18_test.go')
-rw-r--r-- | sqlite3_go18_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3_go18_test.go b/sqlite3_go18_test.go index f95f9bc..f076b81 100644 --- a/sqlite3_go18_test.go +++ b/sqlite3_go18_test.go @@ -29,12 +29,12 @@ func TestNamedParams(t *testing.T) { t.Error("Failed to call db.Query:", err) } - _, err = db.Exec(`insert into foo(id, name, extra) values(:id, :name, :name)`, sql.Named(":name", "foo"), sql.Named(":id", 1)) + _, err = db.Exec(`insert into foo(id, name, extra) values(:id, :name, :name)`, sql.Named("name", "foo"), sql.Named("id", 1)) if err != nil { t.Error("Failed to call db.Exec:", err) } - row := db.QueryRow(`select id, extra from foo where id = :id and extra = :extra`, sql.Named(":id", 1), sql.Named(":extra", "foo")) + row := db.QueryRow(`select id, extra from foo where id = :id and extra = :extra`, sql.Named("id", 1), sql.Named("extra", "foo")) if row == nil { t.Error("Failed to call db.QueryRow") } |