Changeset: 74b1a90a5246 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=74b1a90a5246
Modified Files:
        gdk/gdk_select.c
Branch: default
Log Message:

thetasubselect should return empty result when comparing with nil.


diffs (18 lines):

diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -753,11 +753,13 @@ BATthetasubselect(BAT *b, BAT *s, const 
        BATcheck(val, "BATthetasubselect");
        BATcheck(op, "BATthetasubselect");
 
+       nil = ATOMnilptr(b->ttype);
+       if (ATOMcmp(b->ttype, val, nil) == 0)
+               return newempty();
        if (op[0] == '=' && ((op[1] == '=' && op[2] == 0) || op[2] == 0)) {
                /* "=" or "==" */
                return BATsubselect(b, s, val, NULL, 1, 1, 0);
        }
-       nil = ATOMnilptr(b->ttype);
        if (op[0] == '<') {
                if (op[1] == 0) {
                        /* "<" */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to