1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

proper test of warnings for group_concat().

This commit is contained in:
ram@gw.mysql.r18.ru
2004-06-21 14:11:51 +05:00
parent 862a6ed4ca
commit 1d3118f1d2
2 changed files with 6 additions and 3 deletions

View File

@ -149,16 +149,19 @@ grp group_concat(c order by c)
3 D,D,E
4
5 NULL
set group_concat_max_len = 5;
set group_concat_max_len = 4;
select grp,group_concat(c) from t1 group by grp;
grp group_concat(c)
1 NULL
2 b
3 D,D,E
3 D,D,
4
5 NULL
Warnings:
Warning 1260 1 line(s) were cut by GROUP_CONCAT()
show warnings;
Level Code Message
Warning 1260 1 line(s) were cut by GROUP_CONCAT()
set group_concat_max_len = 1024;
select group_concat(sum(a)) from t1 group by grp;
ERROR HY000: Invalid use of group function