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
c404cd7c
Commit
c404cd7c
authored
Jul 20, 2007
by
gshchepa/uchum@gleb.loc
Browse files
Options
Browse Files
Download
Plain Diff
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
parents
c4b12955
7a249187
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+9
-0
mysql-test/t/func_gconcat.test
mysql-test/t/func_gconcat.test
+11
-0
sql/item_sum.cc
sql/item_sum.cc
+1
-0
No files found.
mysql-test/r/func_gconcat.result
View file @
c404cd7c
...
...
@@ -816,4 +816,13 @@ LENGTH( GROUP_CONCAT( a ) )
65535
SET group_concat_max_len= DEFAULT;
DROP TABLE t1, t2, t3;
set names latin1;
create table t1 (id int, name varchar(20)) DEFAULT CHARSET=utf8;
insert into t1 (id, name) values (1, "ra");
insert into t1 (id, name) values (2, "ra");
select b.id, group_concat(b.name) from t1 a, t1 b group by b.id;
id group_concat(b.name)
1 ra,ra
2 ra,ra
drop table t1;
End of 5.0 tests
mysql-test/t/func_gconcat.test
View file @
c404cd7c
...
...
@@ -551,4 +551,15 @@ SELECT LENGTH( GROUP_CONCAT( a ) ) FROM t3 WHERE b = 3;
SET
group_concat_max_len
=
DEFAULT
;
DROP
TABLE
t1
,
t2
,
t3
;
#
# Bug#29850: Wrong charset of the GROUP_CONCAT result when the select employs
# a temporary table.
#
set
names
latin1
;
create
table
t1
(
id
int
,
name
varchar
(
20
))
DEFAULT
CHARSET
=
utf8
;
insert
into
t1
(
id
,
name
)
values
(
1
,
"ra"
);
insert
into
t1
(
id
,
name
)
values
(
2
,
"ra"
);
select
b
.
id
,
group_concat
(
b
.
name
)
from
t1
a
,
t1
b
group
by
b
.
id
;
drop
table
t1
;
--
echo
End
of
5.0
tests
sql/item_sum.cc
View file @
c404cd7c
...
...
@@ -3089,6 +3089,7 @@ Item_func_group_concat::Item_func_group_concat(THD *thd,
original
(
item
)
{
quick_group
=
item
->
quick_group
;
result
.
set_charset
(
collation
.
collation
);
}
...
...
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