Add a comment on LIMIT -1 OFFSET n

This commit is contained in:
Robur 2024-01-09 12:12:18 +00:00 committed by Reynir Björnsson
parent 6594c6b912
commit 082f2582dd

View file

@ -378,6 +378,7 @@ module Build = struct
ORDER BY b.start_d DESC, b.start_ps DESC
LIMIT -1 OFFSET $3
|}
(* "LIMIT -1 OFFSET n" is all rows except the first n *)
let get_latest_successful =
Caqti_type.(tup2 (id `job) (option string)) ->? t @@