Changeset: 0fdcd4435c62 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/0fdcd4435c62
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: default
Log Message:

improved fix for #7486, is if reference isn't yet handled, do that first.


diffs (17 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
@@ -4560,9 +4560,11 @@ rel2bin_topn(backend *be, sql_rel *rel, 
                sql_rel *rl = rel->l;
 
                if (rl->op == op_project) {
-                       if (rel_is_ref(rl))
+                       if (rel_is_ref(rl)) {
                                sub = refs_find_rel(refs, rl);
-                       else
+                               if (!sub)
+                                       sub = rel2bin_project(be, rl, refs, 
rel);
+                       } else
                                sub = rel2bin_project(be, rl, refs, rel);
                } else {
                        sub = subrel_bin(be, rl, refs);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to