Sort the lint-warning-message-ids when querying

This might solve errors where the Guix Data Service is trying to insert a
lint_warning_message_set that already exists.
This commit is contained in:
Christopher Baines 2020-03-23 09:13:14 +00:00
parent e18f3861f8
commit f87583016e

View file

@ -64,7 +64,8 @@
(string-append
"SELECT id FROM lint_warning_message_sets "
"WHERE message_ids = ARRAY["
(string-join (map number->string lint-warning-message-ids) ", ")
(string-join (map number->string
(sort lint-warning-message-ids <)) ", ")
"]"))))
(string->number