summaryrefslogtreecommitdiff
path: root/mysql-test/r/olap.result
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-03-16 15:55:04 -0800
committerunknown <igor@rurik.mysql.com>2005-03-16 15:55:04 -0800
commit31f6b0dde83e7c4fc1626958f40f2c22ca51f23b (patch)
treeaea08e93e777896437566b45ea6a3d9a6aa0eb50 /mysql-test/r/olap.result
parente16535ce1957567b1f176bdbcda766a8104a5072 (diff)
downloadmariadb-git-31f6b0dde83e7c4fc1626958f40f2c22ca51f23b.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. sql/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. mysql-test/t/olap.test: Added a test for bug #8615. mysql-test/r/olap.result: Added a test for bug #8615.
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;