guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Handle NULL values when comparing derivation outp


From: Christopher Baines
Subject: branch master updated: Handle NULL values when comparing derivation output details set ids
Date: Fri, 12 Feb 2021 04:19:31 -0500

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository data-service.

The following commit(s) were added to refs/heads/master by this push:
     new 52ac92e  Handle NULL values when comparing derivation output details 
set ids
52ac92e is described below

commit 52ac92e7c7636808556cce7db9a608a363dc7dfc
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Feb 12 09:18:50 2021 +0000

    Handle NULL values when comparing derivation output details set ids
    
    Otherwise this restricts the results to entries where neither value is NULL.
---
 guix-data-service/comparison.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]