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
436b9c8d
Commit
436b9c8d
authored
Apr 07, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug#18281 group_concat changes charset to binary
skip charset aggregation for order columns
parent
6e107399
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+5
-0
mysql-test/t/func_gconcat.test
mysql-test/t/func_gconcat.test
+8
-0
sql/item_sum.cc
sql/item_sum.cc
+4
-1
No files found.
mysql-test/r/func_gconcat.result
View file @
436b9c8d
...
@@ -626,3 +626,8 @@ latin1
...
@@ -626,3 +626,8 @@ latin1
latin1
latin1
drop table t1, t2, t3;
drop table t1, t2, t3;
set names default;
set names default;
create table t1 (c1 varchar(10), c2 int);
select charset(group_concat(c1 order by c2)) from t1;
charset(group_concat(c1 order by c2))
latin1
drop table t1;
mysql-test/t/func_gconcat.test
View file @
436b9c8d
...
@@ -414,3 +414,11 @@ select charset(a) from t2;
...
@@ -414,3 +414,11 @@ select charset(a) from t2;
select
charset
(
a
)
from
t3
;
select
charset
(
a
)
from
t3
;
drop
table
t1
,
t2
,
t3
;
drop
table
t1
,
t2
,
t3
;
set
names
default
;
set
names
default
;
#
# Bug#18281 group_concat changes charset to binary
#
create
table
t1
(
c1
varchar
(
10
),
c2
int
);
select
charset
(
group_concat
(
c1
order
by
c2
))
from
t1
;
drop
table
t1
;
sql/item_sum.cc
View file @
436b9c8d
...
@@ -3226,7 +3226,10 @@ Item_func_group_concat::fix_fields(THD *thd, Item **ref)
...
@@ -3226,7 +3226,10 @@ Item_func_group_concat::fix_fields(THD *thd, Item **ref)
}
}
if
(
agg_item_charsets
(
collation
,
func_name
(),
if
(
agg_item_charsets
(
collation
,
func_name
(),
args
,
arg_count
,
MY_COLL_ALLOW_CONV
))
args
,
/* skip charset aggregation for order columns */
arg_count
-
arg_count_order
,
MY_COLL_ALLOW_CONV
))
return
1
;
return
1
;
result
.
set_charset
(
collation
.
collation
);
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