Changeset: e33b10c72850 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e33b10c72850
Modified Files:
        gdk/gdk_sample.c
Branch: default
Log Message:

Set nil properties correctly.
We only *know* that there are nils if the column is VOID/NIL.  If the
source column has nils doesn't mean the sample has them.


diffs (14 lines):

diff --git a/gdk/gdk_sample.c b/gdk/gdk_sample.c
--- a/gdk/gdk_sample.c
+++ b/gdk/gdk_sample.c
@@ -99,8 +99,8 @@ BATsample(BAT *b, BUN n)
                bn->tdense = FALSE;
                BATkey(bn, BAThkey(b));
                BATkey(BATmirror(bn), BATtkey(b));
-               bn->H->nil = b->H->nil;
-               bn->T->nil = b->T->nil;
+               bn->H->nil = bn->htype == TYPE_void; /* implies seq == nil */
+               bn->T->nil = bn->ttype == TYPE_void; /* implies seq == nil */
                bn->H->nonil = b->H->nonil;
                bn->T->nonil = b->T->nonil;
                BATsetcount(bn, n);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to