diff options
author | unknown <bar@bar.intranet.mysql.r18.ru> | 2006-11-08 22:14:36 +0400 |
---|---|---|
committer | unknown <bar@bar.intranet.mysql.r18.ru> | 2006-11-08 22:14:36 +0400 |
commit | 69ac4dbaa13e5e6038bf60ba52ab334b19f632d5 (patch) | |
tree | 78d202e2520f773fe1bbf9bd62c0a893b6bc5354 /mysql-test/t/func_gconcat.test | |
parent | 7b3e547c6907f1c2073488a7780327f2829c6f2c (diff) | |
parent | a39b8a064ed1cd200e34be4ee0af078da7b2412c (diff) | |
download | mariadb-git-69ac4dbaa13e5e6038bf60ba52ab334b19f632d5.tar.gz |
Merge mysql.com:/usr/home/bar/mysql-5.0.b23451
into mysql.com:/usr/home/bar/mysql-5.1.b23451
BitKeeper/etc/collapsed:
auto-union
mysql-test/r/ctype_utf8.result:
Auto merged
mysql-test/r/func_gconcat.result:
Auto merged
mysql-test/t/func_gconcat.test:
Auto merged
sql/field.cc:
Auto merged
sql/item_sum.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
Diffstat (limited to 'mysql-test/t/func_gconcat.test')
-rw-r--r-- | mysql-test/t/func_gconcat.test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/t/func_gconcat.test b/mysql-test/t/func_gconcat.test index db3536c6d36..cde9c1fcea3 100644 --- a/mysql-test/t/func_gconcat.test +++ b/mysql-test/t/func_gconcat.test @@ -461,3 +461,38 @@ SELECT GROUP_CONCAT(a), x GROUP BY x; DROP TABLE t1; +# +# Bug#23451 GROUP_CONCAT truncates a multibyte utf8 character +# +set names utf8; +create table t1 +( + x text character set utf8 not null, + y integer not null +); +insert into t1 values (repeat('a', 1022), 0), (repeat(_utf8 0xc3b7, 4), 0); +let $1= 10; +while ($1) +{ + eval set group_concat_max_len= 1022 + $1; + --disable_result_log + select @x:=group_concat(x) from t1 group by y; + --enable_result_log + select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12); + dec $1; +} +drop table t1; +set group_concat_max_len=1024; +set names latin1; + +# +# Bug#14169 type of group_concat() result changed to blob if tmp_table was used +# +create table t1 (f1 int unsigned, f2 varchar(255)); +insert into t1 values (1,repeat('a',255)),(2,repeat('b',255)); +--enable_metadata +select f2,group_concat(f1) from t1 group by f2; +--disable_metadata +drop table t1; + +# End of 4.1 tests |