diff options
author | Christopher Baines <mail@cbaines.net> | 2021-02-12 09:18:50 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-02-12 09:18:50 +0000 |
commit | 52ac92e7c7636808556cce7db9a608a363dc7dfc (patch) | |
tree | b24b9af480f3a0542a82816f49a7e0a252ad91f4 /guix-data-service | |
parent | 9dde93422c7cbef787ecb34f6346b5e5a5fbeed9 (diff) | |
download | data-service-52ac92e7c7636808556cce7db9a608a363dc7dfc.tar data-service-52ac92e7c7636808556cce7db9a608a363dc7dfc.tar.gz |
Handle NULL values when comparing derivation output details set ids
Otherwise this restricts the results to entries where neither value is NULL.
Diffstat (limited to 'guix-data-service')
-rw-r--r-- | guix-data-service/comparison.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/guix-data-service/comparison.scm b/guix-data-service/comparison.scm index aad76bd..a61165e 100644 --- a/guix-data-service/comparison.scm +++ b/guix-data-service/comparison.scm @@ -386,8 +386,16 @@ WHERE "") (if exclude-unchanged-outputs? " - AND base_packages.derivation_output_details_set_id <> + AND + ( + ( + base_packages.derivation_output_details_set_id IS NULL OR + target_packages.derivation_output_details_set_id IS NULL + ) OR ( + base_packages.derivation_output_details_set_id <> target_packages.derivation_output_details_set_id + ) + ) " "") (cond |