Changeset: 89cb2c2ac358 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/89cb2c2ac358
Modified Files:
        gdk/gdk.h
Branch: Dec2025
Log Message:

Set (no)nil properties for bats with a single value.


diffs (18 lines):

diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -967,10 +967,14 @@ BATsettrivprop(BAT *b)
                                /* the only value is NIL */
                                b->tminpos = BUN_NONE;
                                b->tmaxpos = BUN_NONE;
+                               b->tnil = true;
+                               b->tnonil = false;
                        } else {
                                /* the only value is both min and max */
                                b->tminpos = 0;
                                b->tmaxpos = 0;
+                               b->tnonil = true;
+                               b->tnil = false;
                        }
                } else {
                        b->tsorted = false;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to