-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
When generating the source for the below sql query the following sql is generated in the c# source file. We see that the arguments "skip" & "take" are swapped.
-- name: GetItemsPaginated :many
SELECT items.*, count(*)
FROM items
WHERE is_deleted = 0
ORDER BY item_number
LIMIT sqlc.arg('take')
OFFSET sqlc.arg('skip');private const string GetItemsPaginatedSql = "SELECT items.id, items.display_name, items.item_number, items.barcode, items.is_deleted, count(*) FROM items WHERE is_deleted = 0 ORDER BY item_number LIMIT @skip OFFSET @take "; Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels