mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
fix: use correct empty uuids (#4917)
This commit is contained in:
@@ -102,7 +102,7 @@ WHERE
|
||||
-- This allows using the last element on a page as effectively a cursor.
|
||||
-- This is an important option for scripts that need to paginate without
|
||||
-- duplicating or missing data.
|
||||
WHEN @after_id :: uuid != '00000000-00000000-00000000-00000000' THEN (
|
||||
WHEN @after_id :: uuid != '00000000-0000-0000-0000-000000000000'::uuid THEN (
|
||||
-- The pagination cursor is the last ID of the previous page.
|
||||
-- The query is ordered by the created_at field, so select all
|
||||
-- rows after the cursor.
|
||||
|
||||
Reference in New Issue
Block a user