Skip to content

Commit e9dd427

Browse files
committed
fix: cast status as user_status inside of the when
1 parent b78e7cb commit e9dd427

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

coderd/database/queries.sql.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/users.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ WHERE
9090
-- @status needs to be a text because it can be empty, If it was
9191
-- user_status enum, it would not.
9292
WHEN @status :: text != '' THEN (
93-
status = @status
93+
status = @status :: user_status
9494
)
9595
ELSE true
9696
END

0 commit comments

Comments
 (0)