mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
proper test of warnings for group_concat().
This commit is contained in:
@ -149,16 +149,19 @@ grp group_concat(c order by c)
|
|||||||
3 D,D,E
|
3 D,D,E
|
||||||
4
|
4
|
||||||
5 NULL
|
5 NULL
|
||||||
set group_concat_max_len = 5;
|
set group_concat_max_len = 4;
|
||||||
select grp,group_concat(c) from t1 group by grp;
|
select grp,group_concat(c) from t1 group by grp;
|
||||||
grp group_concat(c)
|
grp group_concat(c)
|
||||||
1 NULL
|
1 NULL
|
||||||
2 b
|
2 b
|
||||||
3 D,D,E
|
3 D,D,
|
||||||
4
|
4
|
||||||
5 NULL
|
5 NULL
|
||||||
|
Warnings:
|
||||||
|
Warning 1260 1 line(s) were cut by GROUP_CONCAT()
|
||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
|
Warning 1260 1 line(s) were cut by GROUP_CONCAT()
|
||||||
set group_concat_max_len = 1024;
|
set group_concat_max_len = 1024;
|
||||||
select group_concat(sum(a)) from t1 group by grp;
|
select group_concat(sum(a)) from t1 group by grp;
|
||||||
ERROR HY000: Invalid use of group function
|
ERROR HY000: Invalid use of group function
|
||||||
|
@ -61,7 +61,7 @@ select grp,group_concat(c order by c) from t1 group by grp;
|
|||||||
|
|
||||||
# Test warnings
|
# Test warnings
|
||||||
|
|
||||||
set group_concat_max_len = 5;
|
set group_concat_max_len = 4;
|
||||||
select grp,group_concat(c) from t1 group by grp;
|
select grp,group_concat(c) from t1 group by grp;
|
||||||
show warnings;
|
show warnings;
|
||||||
set group_concat_max_len = 1024;
|
set group_concat_max_len = 1024;
|
||||||
|
Reference in New Issue
Block a user