removed SQL syntax error

This commit is contained in:
Timon Ringwald 2022-07-12 21:01:49 +02:00
parent b2e2f96eb0
commit 96484eba5a

View File

@ -28,7 +28,7 @@ func ScanUserPkLast(u *User, encode ScanFunc) error {
var ( var (
InsertUser = Insert(TestDatabase, "INSERT INTO users VALUES (?, ?, ?)", ScanUserPkFirst) InsertUser = Insert(TestDatabase, "INSERT INTO users VALUES (?, ?, ?)", ScanUserPkFirst)
UpdateUser = Update(TestDatabase, "UPDATE users SET hash = ?, salt = ? WHERE name = ?", ScanUserPkLast) 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) { func TestDB(t *testing.T) {