Skip to content

Commit e2a3741

Browse files
committed
Fix copy pasta in query comments
1 parent 5ab9ad5 commit e2a3741

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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/templateversions.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ WHERE
1010
-- This is an important option for scripts that need to paginate without
1111
-- duplicating or missing data.
1212
WHEN @after_id :: uuid != '00000000-00000000-00000000-00000000' THEN (
13-
-- The pagination cursor is the last user of the previous page.
13+
-- The pagination cursor is the last ID of the previous page.
1414
-- The query is ordered by the created_at field, so select all
15-
-- users after the cursor. We also want to include any users
15+
-- rows after the cursor. We also want to include any rows
1616
-- that share the created_at (super rare).
1717
created_at >= (
1818
SELECT
@@ -28,7 +28,7 @@ WHERE
2828
ELSE true
2929
END
3030
ORDER BY
31-
-- Deterministic and consistent ordering of all users, even if they share
31+
-- Deterministic and consistent ordering of all rows, even if they share
3232
-- a timestamp. This is to ensure consistent pagination.
3333
(created_at, id) ASC OFFSET @offset_opt
3434
LIMIT

0 commit comments

Comments
 (0)