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) {