1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

MDEV-40698 Fix ROLLUP query results with empty result set (testfix)

Like b3830bce9a, this corrects the ROLLUP
result of the duckdb.duckdb_sql_syntax test to have a NULL row when
there is an empty result set.
This commit is contained in:
Daniel Black
2026-10-16 18:11:53 +11:00
parent 6b02e17b1e
commit 7c77e82189

View File

@@ -1,6 +1,7 @@
CREATE TABLE t1 (id INT PRIMARY KEY, col1 INT, col2 INT);
SELECT id, col1, col2 FROM t1 GROUP BY id, col1, col2 WITH ROLLUP;
id col1 col2
NULL NULL NULL
ALTER TABLE t1 ENGINE=DuckDB;
SELECT id, col1, col2 FROM t1 GROUP BY id, col1, col2 WITH ROLLUP;
id col1 col2