Add another guard clause in to the data deletion code
I've see this error [1] which may relate to the derivation-output-details-id not being a number, so this check should confirm if there is a issue. 1: Throw to key `psql-query-error' with args `(fatal-error "PGRES_FATAL_ERROR" "ERROR: invalid input syntax for integer: \"\"\n")'.
This commit is contained in:
parent
4f3be14c16
commit
f02c245652
1 changed files with 5 additions and 0 deletions
|
|
@ -381,6 +381,11 @@ RETURNING derivation_outputs.derivation_output_details_id"
|
|||
|
||||
(for-each
|
||||
(lambda (derivation-output-details-id)
|
||||
(unless (string->number derivation-output-details-id)
|
||||
(error
|
||||
(simple-format #f "derivation-output-details-id: ~A is not a number"
|
||||
derivation-output-details-id)))
|
||||
|
||||
(match (exec-query
|
||||
conn
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue