Fix a Squee null handling issue with latest fixed output derivations

This commit is contained in:
Christopher Baines 2021-01-14 22:09:32 +00:00
parent ea7331ad25
commit 54c5fbe9fb

View file

@ -646,13 +646,13 @@ LIMIT $4"))
(map (match-lambda (map (match-lambda
((derivation_file_name latest_build) ((derivation_file_name latest_build)
`((derivation_file_name . ,derivation_file_name) `((derivation_file_name . ,derivation_file_name)
(latest_build . ,(if latest_build (latest_build . ,(if (null? latest_build)
'null
(map (match-lambda (map (match-lambda
((key . value) ((key . value)
(cons (string->symbol key) (cons (string->symbol key)
value))) value)))
(json-string->scm latest_build)) (json-string->scm latest_build)))))))
'null)))))
(exec-query-with-null-handling (exec-query-with-null-handling
conn conn
query query