Changeset: b842360cdfa2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b842360cdfa2
Modified Files:
        sql/backends/monet5/rel_weld.c
Branch: rel-weld
Log Message:

in and not_int fix


diffs (25 lines):

diff --git a/sql/backends/monet5/rel_weld.c b/sql/backends/monet5/rel_weld.c
--- a/sql/backends/monet5/rel_weld.c
+++ b/sql/backends/monet5/rel_weld.c
@@ -340,9 +340,7 @@ exp_to_weld(backend *be, weld_state *wst
                        wprintf(wstate, "(");
                }
                if (cmp == cmp_in || cmp == cmp_notin) {
-                       if (cmp == cmp_notin) {
-                               wprintf(wstate, "(");
-                       }
+                       wprintf(wstate, "(");
                        node *en;
                        for (en = ((list*)exp->r)->h; en; en = en->next) {
                                exp_to_weld(be, wstate, exp->l);
@@ -352,8 +350,9 @@ exp_to_weld(backend *be, weld_state *wst
                                        wprintf(wstate, " || ");
                                }
                        }
+                       wprintf(wstate, ")");
                        if (cmp == cmp_notin) {
-                               wprintf(wstate, ") == false");
+                               wprintf(wstate, " == false");
                        }
                } else if (get_cmp(exp) == cmp_or) {
                        wprintf(wstate, "(");
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to