diff options
author | unknown <ramil@mysql.com> | 2005-05-31 10:54:33 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-05-31 10:54:33 +0500 |
commit | 7b4385f4725f99ed5115b0f89174fc358498cfe0 (patch) | |
tree | e3a1e7be70be749ea74564b9a60faa1fe0e91b3e /mysql-test/r/func_gconcat.result | |
parent | 25841aa9addc20fc28c0392d5447b984b2bc230b (diff) | |
download | mariadb-git-7b4385f4725f99ed5115b0f89174fc358498cfe0.tar.gz |
a fix (bug #7405: group_concat with distinct and rollup => ignores distinct in some rows).
sql/item_sum.cc:
a fix (bug #7405: group_concat with distinct and rollup => ignores distinct in some rows).
Code changed in order to work with rollup extension.
Diffstat (limited to 'mysql-test/r/func_gconcat.result')
-rw-r--r-- | mysql-test/r/func_gconcat.result | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/r/func_gconcat.result b/mysql-test/r/func_gconcat.result index c1ac1c084df..057822839fa 100644 --- a/mysql-test/r/func_gconcat.result +++ b/mysql-test/r/func_gconcat.result @@ -469,3 +469,26 @@ x (select group_concat(x) from r2) 1 1,1 2 2,2 drop table r2; +create table t1 (d int, a int, b int, c int); +insert into t1(a,b) values (1,3), (1,4), (1,2), (2,7), (1,1), (1,2), (2,3), (2,3); +select a, group_concat(b) from t1 group by a with rollup; +a group_concat(b) +1 3,4,2,1,2 +2 7,3,3 +NULL 3,4,2,1,2,7,3,3 +select a, group_concat(distinct b) from t1 group by a with rollup; +a group_concat(distinct b) +1 3,4,2,1 +2 7,3 +NULL 3,4,2,1,7 +select a, group_concat(b order by b) from t1 group by a with rollup; +a group_concat(b order by b) +1 1,2,2,3,4 +2 3,3,7 +NULL 1,2,2,3,3,3,4,7 +select a, group_concat(distinct b order by b) from t1 group by a with rollup; +a group_concat(distinct b order by b) +1 1,2,3,4 +2 3,7 +NULL 1,2,3,4,7 +drop table t1; |