summaryrefslogtreecommitdiff
path: root/mysql-test/r/olap.result
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2005-03-16 15:55:04 -0800
committerigor@rurik.mysql.com <>2005-03-16 15:55:04 -0800
commit45ba13889de9e4ebfac8ca1052e042c150aec102 (patch)
treeaea08e93e777896437566b45ea6a3d9a6aa0eb50 /mysql-test/r/olap.result
parentce6c390c390b1993edade781c0ee21b07eb741cc (diff)
downloadmariadb-git-45ba13889de9e4ebfac8ca1052e042c150aec102.tar.gz
olap.result, olap.test:
Added a test for bug #8615. sql_select.cc: Fixed bug #8615. This fix only removed the cause of the reported crash. It does not resolve other problems of rollup queries with DISTINCT. They were fixed in the previous patch for bug 8616.
Diffstat (limited to 'mysql-test/r/olap.result')
-rw-r--r--mysql-test/r/olap.result18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/olap.result b/mysql-test/r/olap.result
index 67610108c61..fe83800f658 100644
--- a/mysql-test/r/olap.result
+++ b/mysql-test/r/olap.result
@@ -360,4 +360,22 @@ SUM(b) COUNT(DISTINCT b) COUNT(*)
6 2 4
4 1 4
14 3 9
+SELECT a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
+a sum(b)
+1 4
+1 4
+2 2
+2 4
+2 6
+4 4
+4 4
+NULL 14
+SELECT DISTINCT a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
+a sum(b)
+1 4
+2 2
+2 4
+2 6
+4 4
+NULL 14
DROP TABLE t1;