Changeset: ea8929ff4a8d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ea8929ff4a8d
Modified Files:
        sql/server/rel_exp.c
Branch: default
Log Message:

Removed wrong false result detection on comparison expression


diffs (14 lines):

diff --git a/sql/server/rel_exp.c b/sql/server/rel_exp.c
--- a/sql/server/rel_exp.c
+++ b/sql/server/rel_exp.c
@@ -1776,8 +1776,8 @@ exp_is_cmp_exp_is_false(sql_exp* e)
                return false;
        if (e->flag == cmp_equal && !is_anti(e))
                return ((exp_is_null(l) && exp_is_not_null(r)) || 
(exp_is_not_null(l) && exp_is_null(r)));
-       if (((e->flag == cmp_notequal) && !is_anti(e)) || ((e->flag == 
cmp_equal) && is_anti(e)) )
-               return ((exp_is_null(l) && exp_is_null(r)) || 
(exp_is_not_null(l) && exp_is_not_null(r)));
+       if ((e->flag == cmp_notequal && !is_anti(e)) || (e->flag == cmp_equal 
&& is_anti(e)))
+               return exp_is_null(l) && exp_is_null(r);
        return false;
 }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to