diff options
author | unknown <monty@narttu.mysql.fi> | 2003-08-26 20:23:48 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-08-26 20:23:48 +0300 |
commit | 91dc31d38334cddc0b47c9ac0c0be338fc8cfd20 (patch) | |
tree | cce35b98c6515a9259db42814c404cbc8e07856b /mysql-test/r/olap.result | |
parent | c0cea540241be3d4cecd7c8481fac7213d228c11 (diff) | |
download | mariadb-git-91dc31d38334cddc0b47c9ac0c0be338fc8cfd20.tar.gz |
Fix for bug in ROLLUP when all tables where 'const' tables (Bug #714)
mysql-test/r/olap.result:
new test case for bug
mysql-test/t/olap.test:
new test case for bug
sql-common/client.c:
Safety fix
Diffstat (limited to 'mysql-test/r/olap.result')
-rw-r--r-- | mysql-test/r/olap.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/olap.result b/mysql-test/r/olap.result index 0b7a98e3fb3..84e37bf56a9 100644 --- a/mysql-test/r/olap.result +++ b/mysql-test/r/olap.result @@ -254,3 +254,18 @@ ERROR 42000: This version of MySQL doesn't yet support 'CUBE' select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube union all select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup; ERROR 42000: This version of MySQL doesn't yet support 'CUBE' drop table t1,t2; +CREATE TABLE t1 (i int); +INSERT INTO t1 VALUES(100); +CREATE TABLE t2 (i int); +INSERT INTO t2 VALUES (100),(200); +SELECT i, COUNT(*) FROM t1 GROUP BY i WITH ROLLUP; +i COUNT(*) +100 1 +NULL 1 +SELECT t1.i, t2.i, COUNT(*) FROM t1,t2 GROUP BY t1.i,t2.i WITH ROLLUP; +i i COUNT(*) +100 100 1 +100 200 1 +100 NULL 2 +NULL NULL 2 +drop table t1,t2; |