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

merged with Dec2025


diffs (59 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
@@ -2026,7 +2026,7 @@ exp_bin(backend *be, sql_exp *e, stmt *l
                                oldstop = be->mb->stop;
                                s = NULL;
                                if (!swapped)
-                                       s = exp_bin(be, n->data, left, NULL, 
grp, ext, cnt, NULL, depth+1, 0, push);
+                                       s = exp_bin(be, n->data, left, 
!reduce?right:NULL, grp, ext, cnt, NULL, depth+1, 0, push);
                                if (!s && right && (first || swapped)) {
                                        clean_mal_statements(be, oldstop, 
oldvtop);
                                        s = exp_bin(be, n->data, right, NULL, 
grp, ext, cnt, NULL, depth+1, 0, push);
@@ -2049,7 +2049,7 @@ exp_bin(backend *be, sql_exp *e, stmt *l
                                return NULL;
                        args = e->r;
                        for (n = args->h; n; n = n->next) {
-                               s = exp_bin(be, n->data, (swapped || 
!right)?left:right, NULL, grp, ext, cnt, NULL, depth+1, 0, push);
+                               s = exp_bin(be, n->data, (swapped || 
!right)?left:right, !reduce?left:NULL, grp, ext, cnt, NULL, depth+1, 0, push);
                                if (!s)
                                        return s;
                                list_append(ops, s);
diff --git a/sql/test/BugTracker-2026/Tests/8034-orderby-concat.test 
b/sql/test/BugTracker-2026/Tests/8034-orderby-concat.test
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2026/Tests/8034-orderby-concat.test
@@ -0,0 +1,20 @@
+statement ok
+CREATE TABLE t(s VARCHAR(10))
+
+statement ok
+INSERT INTO t VALUES ('x')
+
+query T nosort
+SELECT CAST(s LIKE s AS VARCHAR(5)) <> (s || s || s) FROM t;
+----
+True
+
+query T nosort
+SELECT CAST(s LIKE s AS VARCHAR(5)) <> (s || s) FROM t ORDER BY s;
+----
+True
+
+query T nosort
+SELECT CAST(s LIKE s AS VARCHAR(5)) <> (s || s || s) FROM t ORDER BY s;
+----
+True
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
@@ -207,6 +207,9 @@ KNOWNFAIL?8017-create-where-exists-selec
 8027-having-expression-issue
 8028-coalesce-groupby-rollup-having-bug
 8030-inner-join-group-by-bug
+KNOWNFAIL?8028-coalesce-groupby-rollup-having-bug
+KNOWNFAIL?8030-inner-join-group-by-bug
+8034-orderby-concat
 8035-alter-type
 8036-alter+insert-in-trans
 8037-alter-table-decimal
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to