Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1

into gw.mysql.r18.ru:/usr/home/ram/work/4.1.bnew
This commit is contained in:
unknown 2004-06-21 16:53:58 +05:00
commit d2fb4c281c
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

View file

@ -61,7 +61,7 @@ select grp,group_concat(c order by c) from t1 group by grp;
# Test warnings
set group_concat_max_len = 5;
set group_concat_max_len = 4;
select grp,group_concat(c) from t1 group by grp;
show warnings;
set group_concat_max_len = 1024;