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