Skip to content

Commit a2bfae3

Browse files
committed
add a type hint for sqlc
1 parent 93058e6 commit a2bfae3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

coderd/database/queries.sql.go

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

coderd/database/queries/provisionerdaemons.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ FROM
1111
provisioner_daemons
1212
WHERE
1313
-- This is the original search criteria:
14-
(@organization_id IS NULL OR organization_id = @organization_id)
14+
(@organization_id :: uuid IS NULL OR organization_id = @organization_id :: uuid)
1515
AND
1616
-- adding support for searching by tags:
1717
(@tags :: jsonb IS NULL OR tags_compatible(@tags :: jsonb, provisioner_daemons.tags :: jsonb))
1818
AND
1919
-- Because we're adding @tags as a second search parameter, we need to do this check to
2020
-- ensure that the first parameter's behavior remains unchanged when no second parameter is provided:
21-
(@organization_id IS NOT NULL OR @tags IS NOT NULL);
21+
(@organization_id :: uuid IS NOT NULL OR @tags IS NOT NULL);
2222

2323
-- name: DeleteOldProvisionerDaemons :exec
2424
-- Delete provisioner daemons that have been created at least a week ago

0 commit comments

Comments
 (0)