summaryrefslogtreecommitdiff
path: root/sql/users.sql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sql/users.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/users.sql b/sql/users.sql
index 9f1b5ef..2e1d997 100644
--- a/sql/users.sql
+++ b/sql/users.sql
@@ -5,9 +5,9 @@ SELECT *
-- name: GetUserByName :one
SELECT *
FROM users
- WHERE LOWER(name) = LOWER(?);
+ WHERE LOWER(name) = LOWER($1);
-- name: GetUserById :one
SELECT *
FROM users
- WHERE id = ?; \ No newline at end of file
+ WHERE id = $1; \ No newline at end of file