Changeset: 597e7d0c5b17 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/597e7d0c5b17
Modified Files:
        sql/server/rel_optimize_sel.c
Branch: Aug2024
Log Message:

make sure we find an join expression with atleast 2 relations


diffs (12 lines):

diff --git a/sql/server/rel_optimize_sel.c b/sql/server/rel_optimize_sel.c
--- a/sql/server/rel_optimize_sel.c
+++ b/sql/server/rel_optimize_sel.c
@@ -2151,7 +2151,7 @@ order_joins(visitor *v, list *rels, list
        /* open problem, some expressions use more than 2 relations */
        /* For example a.x = b.y * c.z; */
        if (list_length(rels) >= 2 && sdje->h) {
-               for (node *n = sdje->h; n && !l && !r; n = n->next, ci++) {
+               for (node *n = sdje->h; n && (!l || !r); n = n->next, ci++) {
                        cje = n->data;
 
                        if (n->next && r3[cje->tmp])
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to