Changeset: b6ef1490a1f7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b6ef1490a1f7
Modified Files:
        sql/server/rel_unnest.c
Branch: unnest2
Log Message:

cleanup freevars in projections within the exists


diffs (16 lines):

diff --git a/sql/server/rel_unnest.c b/sql/server/rel_unnest.c
--- a/sql/server/rel_unnest.c
+++ b/sql/server/rel_unnest.c
@@ -942,8 +942,10 @@ rel_reduce2one_exp(mvc *sql, sql_rel *sq
                if (!is_freevar(t))
                        e = t;
        }
-       if (!e)
-               e = sq->exps->t->data;
+       if (!e) {
+               list *exps = rel_projections(sql, sq->l, NULL, 0, 1);
+               e = exps->t->data;
+       }
        sq->exps = append(sa_list(sql->sa), e);
        return e;
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to