diff options
author | monty@narttu.mysql.fi <> | 2003-08-26 20:23:48 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-08-26 20:23:48 +0300 |
commit | 1d0b539263dc18e742cca84dac56916f29290dad (patch) | |
tree | cce35b98c6515a9259db42814c404cbc8e07856b /mysql-test/t/olap.test | |
parent | 7b9941298835c172e9f24adbf0f33b2958cdf987 (diff) | |
download | mariadb-git-1d0b539263dc18e742cca84dac56916f29290dad.tar.gz |
Fix for bug in ROLLUP when all tables where 'const' tables (Bug #714)
Diffstat (limited to 'mysql-test/t/olap.test')
-rw-r--r-- | mysql-test/t/olap.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/olap.test b/mysql-test/t/olap.test index 3b1e3fac7c2..17bf6230f76 100644 --- a/mysql-test/t/olap.test +++ b/mysql-test/t/olap.test @@ -77,3 +77,14 @@ select product, country_id , year, sum(profit) from t1 group by product, country drop table t1,t2; +# +# Test bug with const tables +# + +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; +SELECT t1.i, t2.i, COUNT(*) FROM t1,t2 GROUP BY t1.i,t2.i WITH ROLLUP; +drop table t1,t2; |