Changeset: baa413524428 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/baa413524428 Modified Files: sql/backends/monet5/rel_bin.c Branch: distinct_from Log Message:
fix a small bug in rel_bin diffs (14 lines): diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c --- a/sql/backends/monet5/rel_bin.c +++ b/sql/backends/monet5/rel_bin.c @@ -1831,8 +1831,8 @@ exp_bin(backend *be, sql_exp *e, stmt *l tail_type(l), tail_type(l), F_FUNC, true, true); assert(f); if (is_semantics(e)) { - if (exp_is_null(e->l) && exp_is_null(e->r)) { - s = stmt_bool(be, !is_anti(e)); + if (exp_is_null(e->l) && exp_is_null(e->r) && (e->flag == cmp_equal || e->flag == cmp_notequal)) { + s = stmt_bool(be, e->flag == cmp_equal ? !is_anti(e): is_anti(e)); } else { list *args = sa_list(sql->sa); if (args == NULL) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org