Changeset: db3be23a9b98 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=db3be23a9b98
Modified Files:
gdk/gdk_search.c
Branch: Oct2014
Log Message:
oid_nil sorts before all other oid values.
This is because underneath it uses (signed) integer comparison.
diffs (13 lines):
diff --git a/gdk/gdk_search.c b/gdk/gdk_search.c
--- a/gdk/gdk_search.c
+++ b/gdk/gdk_search.c
@@ -584,7 +584,8 @@ SORTfndwhich(BAT *b, const void *v, enum
if (BATtdense(b)) {
/* no need for binary search on dense column */
- if (*(const oid *) v < b->tseqbase)
+ if (*(const oid *) v < b->tseqbase ||
+ *(const oid *) v == oid_nil)
return which == FIND_ANY ? BUN_NONE : lo;
if (*(const oid *) v >= b->tseqbase + BATcount(b))
return which == FIND_ANY ? BUN_NONE : hi;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list