File tree 7 files changed +16
-16
lines changed
7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 22
22
END
23
23
-- Filter resource_id
24
24
AND CASE
25
- WHEN @resource_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN
25
+ WHEN @resource_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN
26
26
resource_id = @resource_id
27
27
ELSE true
28
28
END
83
83
END
84
84
-- Filter resource_id
85
85
AND CASE
86
- WHEN @resource_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN
86
+ WHEN @resource_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN
87
87
resource_id = @resource_id
88
88
ELSE true
89
89
END
Original file line number Diff line number Diff line change 18
18
templates .deleted = @deleted
19
19
-- Filter by organization_id
20
20
AND CASE
21
- WHEN @organization_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN
21
+ WHEN @organization_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN
22
22
organization_id = @organization_id
23
23
ELSE true
24
24
END
Original file line number Diff line number Diff line change 9
9
-- This allows using the last element on a page as effectively a cursor.
10
10
-- This is an important option for scripts that need to paginate without
11
11
-- duplicating or missing data.
12
- WHEN @after_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN (
12
+ WHEN @after_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN (
13
13
-- The pagination cursor is the last ID of the previous page.
14
14
-- The query is ordered by the created_at field, so select all
15
15
-- rows after the cursor.
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ WHERE
102
102
-- This allows using the last element on a page as effectively a cursor.
103
103
-- This is an important option for scripts that need to paginate without
104
104
-- duplicating or missing data.
105
- WHEN @after_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN (
105
+ WHEN @after_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN (
106
106
-- The pagination cursor is the last ID of the previous page.
107
107
-- The query is ordered by the created_at field, so select all
108
108
-- rows after the cursor.
Original file line number Diff line number Diff line change 42
42
-- This allows using the last element on a page as effectively a cursor.
43
43
-- This is an important option for scripts that need to paginate without
44
44
-- duplicating or missing data.
45
- WHEN @after_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN (
45
+ WHEN @after_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN (
46
46
-- The pagination cursor is the last ID of the previous page.
47
47
-- The query is ordered by the build_number field, so select all
48
48
-- rows after the cursor.
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ WHERE
102
102
END
103
103
-- Filter by owner_id
104
104
AND CASE
105
- WHEN @owner_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN
105
+ WHEN @owner_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN
106
106
owner_id = @owner_id
107
107
ELSE true
108
108
END
@@ -240,7 +240,7 @@ WHERE
240
240
END
241
241
-- Filter by owner_id
242
242
AND CASE
243
- WHEN @owner_id :: uuid != ' 00000000-00000000-00000000-00000000 ' THEN
243
+ WHEN @owner_id :: uuid != ' 00000000-0000-0000-0000-000000000000 ' ::uuid THEN
244
244
owner_id = @owner_id
245
245
ELSE true
246
246
END
You can’t perform that action at this time.
0 commit comments