Changeset: 3b20ed670167 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3b20ed670167
Modified Files:
        sql/server/rel_optimize_proj.c
Branch: Dec2023
Log Message:

Do not recurse if we're dealing with a trigger wrapper.


diffs (12 lines):

diff --git a/sql/server/rel_optimize_proj.c b/sql/server/rel_optimize_proj.c
--- a/sql/server/rel_optimize_proj.c
+++ b/sql/server/rel_optimize_proj.c
@@ -907,7 +907,7 @@ rel_split_project_(visitor *v, sql_rel *
        }
        if (is_set(rel->op) || is_basetable(rel->op))
                return rel;
-       if (rel->l) {
+       if (rel->l && (rel->op != op_table || rel->flag != TRIGGER_WRAPPER)) {
                rel->l = rel_split_project_(v, rel->l, 
(is_topn(rel->op)||is_sample(rel->op)||is_ddl(rel->op)||is_modify(rel->op))?top:0);
                if (!rel->l)
                        return NULL;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to