Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1d3118f1
Commit
1d3118f1
authored
Jun 21, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper test of warnings for group_concat().
parent
862a6ed4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+5
-2
mysql-test/t/func_gconcat.test
mysql-test/t/func_gconcat.test
+1
-1
No files found.
mysql-test/r/func_gconcat.result
View file @
1d3118f1
...
...
@@ -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
...
...
mysql-test/t/func_gconcat.test
View file @
1d3118f1
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment