Commit 6cd12232 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

refactor: consistently use spaces around = sign in SQL queries

parent 7853883e
......@@ -81,7 +81,7 @@ func (db *keysharePostgresDatabase) User(username string) (*KeyshareUser, error)
func (db *keysharePostgresDatabase) UpdateUser(user *KeyshareUser) error {
return db.db.ExecUser(
"UPDATE irma.users SET username=$1, language=$2, coredata=$3 WHERE id=$4",
"UPDATE irma.users SET username = $1, language = $2, coredata = $3 WHERE id=$4",
user.Username,
user.Language,
user.Coredata[:],
......@@ -152,7 +152,7 @@ func (db *keysharePostgresDatabase) ReservePincheck(user *KeyshareUser) (bool, i
func (db *keysharePostgresDatabase) ClearPincheck(user *KeyshareUser) error {
return db.db.ExecUser(
"UPDATE irma.users SET pin_counter=0, pin_block_date=0 WHERE id=$1",
"UPDATE irma.users SET pin_counter = 0, pin_block_date = 0 WHERE id = $1",
user.id,
)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment