diff options
author | unknown <gkodinov@dl145s.mysql.com> | 2006-10-19 15:04:12 +0200 |
---|---|---|
committer | unknown <gkodinov@dl145s.mysql.com> | 2006-10-19 15:04:12 +0200 |
commit | 5e1fe0f80043993c1db64169e4d87eb787762763 (patch) | |
tree | 3b1cae348369aff41bc05399edc6b42f12f1d6dc /mysql-test/t/olap.test | |
parent | d30186772fc90d9c16c118f0a72fff3f0be50e03 (diff) | |
parent | 9bfaab57fa991d46844b5e56cb30880c8391c55d (diff) | |
download | mariadb-git-5e1fe0f80043993c1db64169e4d87eb787762763.tar.gz |
Merge dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-4.1-opt
into dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.0-opt
sql/sql_select.cc:
Auto merged
mysql-test/r/olap.result:
SCCS merged
Diffstat (limited to 'mysql-test/t/olap.test')
-rw-r--r-- | mysql-test/t/olap.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mysql-test/t/olap.test b/mysql-test/t/olap.test index e34ac6a865c..4e5e7b72fc8 100644 --- a/mysql-test/t/olap.test +++ b/mysql-test/t/olap.test @@ -283,6 +283,15 @@ select a, max(b) from t1 group by a with rollup; select distinct a, max(b) from t1 group by a with rollup; drop table t1; +# +# Bug #20825: rollup puts non-equal values together +# +create table t1 (a varchar(22) not null , b int); +insert into t1 values ("2006-07-01 21:30", 1), ("2006-07-01 23:30", 10); +select left(a,10), a, sum(b) from t1 group by 1,2 with rollup; +select left(a,10) x, a, sum(b) from t1 group by x,a with rollup; +drop table t1; + # End of 4.1 tests # @@ -318,4 +327,3 @@ SELECT * FROM v1; DROP VIEW v1; DROP TABLE t1; -# End of 4.1 tests |