Changeset: 61fcae1e684f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/61fcae1e684f
Modified Files:
        gdk/gdk_batop.c
Branch: Jul2021
Log Message:

When old and new value are the same, there is nothing to do.


diffs (17 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -1174,6 +1174,13 @@ BATappend_or_update(BAT *b, BAT *p, cons
                        }
 
                        const void *old = BUNtvar(bi, updid);
+
+                       if (atomcmp(old, new) == 0) {
+                               /* replacing with the same value:
+                                * nothing to do */
+                               continue;
+                       }
+
                        bool isnil = atomcmp(new, nil) == 0;
                        anynil |= isnil;
                        if (b->tnil &&
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to