fix: use correct empty uuids (#4917)

This commit is contained in:
Colin Adler authored and GitHub committed 2022-11-06 16:49:43 -06:00
1 parent 1898f67fe0
commit 65ffa20ba2
7 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -102,7 +102,7 @@ WHERE
END
-- Filter by owner_id
AND CASE
WHEN @owner_id :: uuid != '00000000-00000000-00000000-00000000' THEN
WHEN @owner_id :: uuid != '00000000-0000-0000-0000-000000000000'::uuid THEN
owner_id = @owner_id
ELSE true
END
@@ -240,7 +240,7 @@ WHERE
END
-- Filter by owner_id
AND CASE
WHEN @owner_id :: uuid != '00000000-00000000-00000000-00000000' THEN
WHEN @owner_id :: uuid != '00000000-0000-0000-0000-000000000000'::uuid THEN
owner_id = @owner_id
ELSE true
END