Changeset: 366905c34083 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=366905c34083
Modified Files:
gdk/gdk_bat.c
Branch: Dec2016
Log Message:
Zap nokey info when the value referred to is changed.
diffs (13 lines):
diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -1189,7 +1189,8 @@ BUNinplace(BAT *b, BUN p, const void *t,
b->tnorevsorted = 0;
if (((b->ttype != TYPE_void) & b->tkey & !b->tunique) && b->batCount >
1) {
BATkey(b, FALSE);
- }
+ } else if (!b->tkey && (b->tnokey[0] == p || b->tnokey[1] == p))
+ b->tnokey[0] = b->tnokey[1] = 0;
if (b->tnonil)
b->tnonil = t && atom_CMP(t, ATOMnilptr(b->ttype), b->ttype) !=
0;
b->theap.dirty = TRUE;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list