commenter_get.go: add spaces around SQL WHERE

This commit is contained in:
Adhityaa 2018-06-07 13:11:26 +05:30
parent d75c882882
commit 36f281ec44

View File

@ -10,7 +10,7 @@ func commenterGetByHex(commenterHex string) (commenter, error) {
statement := `
SELECT commenterHex, email, name, link, photo, provider, joinDate
FROM commenters
WHERE commenterHex=$1;
WHERE commenterHex = $1;
`
row := db.QueryRow(statement, commenterHex)
@ -52,7 +52,7 @@ func commenterGetBySession(session string) (commenter, error) {
statement := `
SELECT commenterHex
FROM commenterSessions
WHERE session=$1;
WHERE session = $1;
`
row := db.QueryRow(statement, session)