Changeset: 7a04a07b0063 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/7a04a07b0063 Modified Files: gdk/gdk_bat.c monetdb5/modules/kernel/bat5.c sql/test/BugTracker-2016/Tests/storagemodel.test Branch: default Log Message:
All values in an empty bat are distinct, i.e. set tkey to true. diffs (44 lines): diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c --- a/gdk/gdk_bat.c +++ b/gdk/gdk_bat.c @@ -75,7 +75,7 @@ BATcreatedesc(oid hseq, int tt, bool hea .hseqbase = hseq, .ttype = tt, - .tkey = false, + .tkey = true, .tnonil = true, .tnil = false, .tsorted = ATOMlinear(tt), diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c --- a/monetdb5/modules/kernel/bat5.c +++ b/monetdb5/modules/kernel/bat5.c @@ -65,7 +65,6 @@ BKCnewBAT(bat *res, const int *tt, const if (bn == NULL) throw(MAL, "bat.new", GDK_EXCEPTION); *res = bn->batCacheid; - bn->tkey = true; /* COLnew leaves it as false */ BBPretain(bn->batCacheid); BBPunfix(bn->batCacheid); return MAL_SUCCEED; diff --git a/sql/test/BugTracker-2016/Tests/storagemodel.test b/sql/test/BugTracker-2016/Tests/storagemodel.test --- a/sql/test/BugTracker-2016/Tests/storagemodel.test +++ b/sql/test/BugTracker-2016/Tests/storagemodel.test @@ -92,7 +92,7 @@ 0 8000 0 1 -NULL +1 1 statement ok @@ -198,7 +198,7 @@ 0 8000 0 1 -NULL +1 1 statement ok _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org