Skip to content

Commit 677cb6f

Browse files
committed
fix: add comment about @status being a text
1 parent 3f25967 commit 677cb6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/database/queries/users.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ WHERE
8787
END
8888
-- Filter by status
8989
AND CASE
90+
-- @status needs to be a text because it can be empty, If it was
91+
-- user_status enum, it would not.
9092
WHEN @status :: text != '' THEN (
9193
status = @status
9294
)

0 commit comments

Comments
 (0)