Changeset: 33c8e2e4d6dc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33c8e2e4d6dc
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: sq2default
Log Message:

also handle mark_* properly in value compares


diffs (16 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
@@ -975,7 +975,11 @@ exp_bin(backend *be, sql_exp *e, stmt *l
                                }
                        } else {
                                /* value compare or select */
-                               if (l->nrcols == 0 && r->nrcols == 0) {
+                               if (l->nrcols == 0 && r->nrcols == 0 && 
(e->flag == mark_in || e->flag == mark_notin)) {
+                                       sql_subfunc *f = sql_bind_func(sql->sa, 
sql->session->schema, "=", tail_type(l), tail_type(l), F_FUNC);
+                                       assert(f);
+                                       s = stmt_binop(be, l, r, f);
+                               } else if (l->nrcols == 0 && r->nrcols == 0) {
                                        sql_subfunc *f = sql_bind_func(sql->sa, 
sql->session->schema,
                                                        
compare_func((comp_type)get_cmp(e), is_anti(e)),
                                                        tail_type(l), 
tail_type(l), F_FUNC);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to