From 96484eba5ae67e7f280892a85ea7cb18e829c7fe Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Tue, 12 Jul 2022 21:01:49 +0200 Subject: [PATCH] removed SQL syntax error --- db_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_test.go b/db_test.go index 4ecb870..07e051a 100644 --- a/db_test.go +++ b/db_test.go @@ -28,7 +28,7 @@ func ScanUserPkLast(u *User, encode ScanFunc) error { var ( InsertUser = Insert(TestDatabase, "INSERT INTO users VALUES (?, ?, ?)", ScanUserPkFirst) UpdateUser = Update(TestDatabase, "UPDATE users SET hash = ?, salt = ? WHERE name = ?", ScanUserPkLast) - GetUserByName = QueryOne(TestDatabase, "SELECT * FROM users WHERE namea = ?", ScanUserPkFirst) + GetUserByName = QueryOne(TestDatabase, "SELECT * FROM users WHERE name = ?", ScanUserPkFirst) ) func TestDB(t *testing.T) {