diff --git a/db/builder_db.ml b/db/builder_db.ml index c950253..df958f5 100644 --- a/db/builder_db.ml +++ b/db/builder_db.ml @@ -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 @@