Changeset: d7c2f5b1eafa for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d7c2f5b1eafa
Modified Files:
        gdk/gdk_batop.mx
Branch: Mar2011
Log Message:

Fix for antiselect.
The bug can be triggered by doing (in SQL):
select * from t where x not between y and y;
this should return all values not equal to y (and not nil), but it
returned all values including y (but still no nil).


diffs (18 lines):

diff --git a/gdk/gdk_batop.mx b/gdk/gdk_batop.mx
--- a/gdk/gdk_batop.mx
+++ b/gdk/gdk_batop.mx
@@ -1058,12 +1058,9 @@
        } else {
                hval = ATOMcmp(t, th, nil);
        }
-       if (equi && nequi) {
+       if (nequi) {
                equi = 0;
-               li = !li;
-               hi = !hi;
-       } else if (nequi) {     /* swap sub-ranges */
-               if (!lval || !hval) {
+               if (!lval || !hval) {   /* swap sub-ranges */
                        ptr tv;
                        bit ti;
                        ti = li;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to