Changeset: d08cd2365b47 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d08cd2365b47
Modified Files:
gdk/gdk_search.c
Branch: Jul2017
Log Message:
SORTfndlast on a void/nil column should always return BATcount.
Since all values are equal to NIL, and NIL is smaller than any non-NIL
value (and equal to NIL), the first value beyond is the end of the
column.
This fixes bug 6441.
diffs (12 lines):
diff --git a/gdk/gdk_search.c b/gdk/gdk_search.c
--- a/gdk/gdk_search.c
+++ b/gdk/gdk_search.c
@@ -394,8 +394,6 @@ SORTfndlast(BAT *b, const void *v)
}
if (b->ttype == TYPE_void) {
assert(b->tseqbase == oid_nil);
- if (*(const oid *) v == oid_nil)
- return 0;
return BATcount(b);
}
return binsearch(NULL, 0, b->ttype, Tloc(b, 0),
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list