Changeset: c83d9b19d8be for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c83d9b19d8be
Modified Files:
        monetdb5/modules/kernel/algebra.c
Branch: Nov2019
Log Message:

Bug fix: compare values not pointers.


diffs (12 lines):

diff --git a/monetdb5/modules/kernel/algebra.c 
b/monetdb5/modules/kernel/algebra.c
--- a/monetdb5/modules/kernel/algebra.c
+++ b/monetdb5/modules/kernel/algebra.c
@@ -310,7 +310,7 @@ ALGselect2nil(bat *result, const bat *bi
                low = high; 
        else if (*hi == 1 && ATOMcmp(b->ttype, high, nilptr) == 0)
                high = low;
-       if (low == high && ATOMcmp(b->ttype, high, nilptr) == 0) /* ugh sql nil 
!= nil */
+       if (ATOMcmp(b->ttype, low, high) == 0 && ATOMcmp(b->ttype, high, 
nilptr) == 0) /* ugh sql nil != nil */
                nanti = !nanti;
        bn = BATselect(b, s, low, high, *li, *hi, nanti);
        BBPunfix(b->batCacheid);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to