From 36f281ec442c9648ecb1e3d7f746f28b0d1458f1 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 7 Jun 2018 13:11:26 +0530 Subject: [PATCH] commenter_get.go: add spaces around SQL WHERE --- api/commenter_get.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/commenter_get.go b/api/commenter_get.go index 8ab4db0..7e86878 100644 --- a/api/commenter_get.go +++ b/api/commenter_get.go @@ -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)