1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed bug #26830: a crash for the query with a subselect containing ROLLUP.

Crash happened because the function get_best_group_min_max detected
joins with ROLLUP incorrectly.
This commit is contained in:
igor@olga.mysql.com
2007-03-10 02:47:47 -08:00
parent 9625f2e902
commit ec4593f59a
3 changed files with 25 additions and 1 deletions

View File

@ -327,3 +327,18 @@ SELECT * FROM v1;
DROP VIEW v1;
DROP TABLE t1;
#
# Bug #26830: derived table with ROLLUP
#
CREATE TABLE t1 (a int, KEY (a));
INSERT INTO t1 VALUES (3), (1), (4), (1), (3), (1), (1);
SELECT * FROM (SELECT a, SUM(a) FROM t1 GROUP BY a WITH ROLLUP) as t;
DROP TABLE t1;