Changeset: 30ea48924de3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/30ea48924de3
Modified Files:
        sql/server/rel_rel.c
Branch: Jul2021
Log Message:

My mistake, if the projection has more than one reference, create a new 
projection, so the other reference won't get the identity function


diffs (12 lines):

diff --git a/sql/server/rel_rel.c b/sql/server/rel_rel.c
--- a/sql/server/rel_rel.c
+++ b/sql/server/rel_rel.c
@@ -1404,7 +1404,7 @@ static sql_rel *
                *exp = NULL;
                return rel;
        }
-       if (!is_simple_project(rel->op) || !list_empty(rel->r))
+       if (!is_simple_project(rel->op) || !list_empty(rel->r) || 
rel_is_ref(rel))
                rel = rel_project(sql->sa, rel, exps);
        e = rel->exps->h->data;
        e = exp_column(sql->sa, exp_relname(e), exp_name(e), exp_subtype(e), 
rel->card, has_nil(e), is_intern(e));
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to