Changeset: 1107985ae7e3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1107985ae7e3
Modified Files:
        sql/backends/monet5/rel_bin.c
        sql/test/BugTracker-2026/Tests/All
Branch: Dec2025
Log Message:

fixes for issue # 7903, ie filters as projection


diffs (26 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
@@ -1939,6 +1939,10 @@ exp_bin(backend *be, sql_exp *e, stmt *l
                                        s = exp_bin(be, n->data, right, NULL, 
grp, ext, cnt, NULL, depth+1, 0, push);
                                        swapped = 1;
                                }
+                               if (!s && right && !reduce) {
+                                       clean_mal_statements(be, oldstop, 
oldvtop);
+                                       s = exp_bin(be, n->data, left, right, 
grp, ext, cnt, NULL, depth+1, 0, push);
+                               }
                                if (!s)
                                        return s;
                                if (s->nrcols == 0 && first && left && 
left->nrcols)
diff --git a/sql/test/BugTracker-2026/Tests/All 
b/sql/test/BugTracker-2026/Tests/All
--- a/sql/test/BugTracker-2026/Tests/All
+++ b/sql/test/BugTracker-2026/Tests/All
@@ -85,7 +85,7 @@ KNOWNFAIL?7774-insert-into-renamed-table
 KNOWNFAIL?7896-where-ascii-comparison-bug
 7897-exp_bin-assertion-failure
 7899-correlated-with-complex-and-or
-KNOWNFAIL?7903-query-without-result-bug
+7903-query-without-result-bug
 KNOWNFAIL?7906-rel2bin_join-assertion-failure
 7911-query-without-result-bug
 7913-where-exist-subquery-bug
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to