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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
cd5cd2bf
Commit
cd5cd2bf
authored
Sep 07, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/home/bar/mysql-4.1.b12829
into mysql.com:/usr/home/bar/mysql-5.0
parents
03d10aea
2ff61bd6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-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
+10
-0
sql/item_sum.cc
sql/item_sum.cc
+1
-0
No files found.
mysql-test/r/func_gconcat.result
View file @
cd5cd2bf
...
@@ -469,6 +469,15 @@ select collation(group_concat(a,b)) from t1;
...
@@ -469,6 +469,15 @@ select collation(group_concat(a,b)) from t1;
ERROR HY000: Illegal mix of collations (cp1250_general_ci,IMPLICIT) and (koi8r_general_ci,IMPLICIT) for operation 'group_concat'
ERROR HY000: Illegal mix of collations (cp1250_general_ci,IMPLICIT) and (koi8r_general_ci,IMPLICIT) for operation 'group_concat'
drop table t1;
drop table t1;
drop table t2;
drop table t2;
CREATE TABLE t1 (a CHAR(10) CHARACTER SET cp850);
INSERT INTO t1 VALUES ('');
SELECT a FROM t1;
a
SELECT GROUP_CONCAT(a) FROM t1;
GROUP_CONCAT(a)
DROP TABLE t1;
CREATE TABLE t1 (id int);
CREATE TABLE t1 (id int);
SELECT GROUP_CONCAT(id) AS gc FROM t1 HAVING gc IS NULL;
SELECT GROUP_CONCAT(id) AS gc FROM t1 HAVING gc IS NULL;
gc
gc
...
...
mysql-test/t/func_gconcat.test
View file @
cd5cd2bf
...
@@ -281,6 +281,16 @@ select collation(group_concat(a,b)) from t1;
...
@@ -281,6 +281,16 @@ select collation(group_concat(a,b)) from t1;
drop
table
t1
;
drop
table
t1
;
drop
table
t2
;
drop
table
t2
;
#
# Bug #12829
# Cannot convert the charset of a GROUP_CONCAT result
#
CREATE
TABLE
t1
(
a
CHAR
(
10
)
CHARACTER
SET
cp850
);
INSERT
INTO
t1
VALUES
(
''
);
SELECT
a
FROM
t1
;
SELECT
GROUP_CONCAT
(
a
)
FROM
t1
;
DROP
TABLE
t1
;
#
#
# bug #7769: group_concat returning null is checked in having
# bug #7769: group_concat returning null is checked in having
#
#
...
...
sql/item_sum.cc
View file @
cd5cd2bf
...
@@ -3001,6 +3001,7 @@ Item_func_group_concat::fix_fields(THD *thd, Item **ref)
...
@@ -3001,6 +3001,7 @@ Item_func_group_concat::fix_fields(THD *thd, Item **ref)
args
,
arg_count
,
MY_COLL_ALLOW_CONV
))
args
,
arg_count
,
MY_COLL_ALLOW_CONV
))
return
1
;
return
1
;
result
.
set_charset
(
collation
.
collation
);
result_field
=
0
;
result_field
=
0
;
null_value
=
1
;
null_value
=
1
;
thd
->
allow_sum_func
=
1
;
thd
->
allow_sum_func
=
1
;
...
...
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