Fix comparison: less than or equal, not strict equal

This commit is contained in:
Robur 2024-01-09 11:58:05 +00:00 committed by Reynir Björnsson
parent 53f1c4958c
commit 73e1bf81ce

View file

@ -361,7 +361,7 @@ module Build = struct
INNER JOIN build b ON b.id = a.build INNER JOIN build b ON b.id = a.build
WHERE b.main_binary = a.id AND b.job = $1 WHERE b.main_binary = a.id AND b.job = $1
AND ($2 IS NULL OR platform = $2) AND ($2 IS NULL OR platform = $2)
AND b.finish_d = $3 AND b.finish_ps = $4 AND (b.finish_d < $3 OR (b.finish_d = $3 AND b.finish_ps <= $4))
ORDER BY b.start_d DESC, b.start_ps DESC ORDER BY b.start_d DESC, b.start_ps DESC
|} |}