mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge lthalmann@bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
into mysql.com:/nfsdisk1/lars/bk/mysql-5.0-rpl
This commit is contained in:
@@ -865,4 +865,25 @@ blob 65535 65535
|
||||
text 65535 65535
|
||||
text 65535 32767
|
||||
drop table t1;
|
||||
create table t1 (a char(1) character set ucs2);
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
select hex(group_concat(a)) from t1;
|
||||
hex(group_concat(a))
|
||||
0061002C0062002C0063
|
||||
select collation(group_concat(a)) from t1;
|
||||
collation(group_concat(a))
|
||||
ucs2_general_ci
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
create table t1 (a char(1) character set latin1);
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
set character_set_connection=ucs2;
|
||||
select hex(group_concat(a separator ',')) from t1;
|
||||
hex(group_concat(a separator ','))
|
||||
612C622C63
|
||||
select collation(group_concat(a separator ',')) from t1;
|
||||
collation(group_concat(a separator ','))
|
||||
latin1_swedish_ci
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
End of 5.0 tests
|
||||
|
@@ -7,6 +7,13 @@ character_set_server ucs2
|
||||
DROP TABLE IF EXISTS t1;
|
||||
create table t1 (a int);
|
||||
drop table t1;
|
||||
End of 4.1 tests
|
||||
create table t1 (a char(1) character set latin1);
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
select hex(group_concat(a)) from t1;
|
||||
hex(group_concat(a))
|
||||
612C622C63
|
||||
drop table t1;
|
||||
CREATE TABLE t1(col1 VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL,
|
||||
col2 VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL,
|
||||
UNIQUE KEY key1 USING HASH (col1, col2)) ENGINE=MEMORY;
|
||||
|
@@ -594,4 +594,22 @@ select data_type, character_octet_length, character_maximum_length
|
||||
from information_schema.columns where table_name='t1';
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug#28925 GROUP_CONCAT inserts wrong separators for a ucs2 column
|
||||
#
|
||||
create table t1 (a char(1) character set ucs2);
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
select hex(group_concat(a)) from t1;
|
||||
select collation(group_concat(a)) from t1;
|
||||
drop table t1;
|
||||
|
||||
set names latin1;
|
||||
create table t1 (a char(1) character set latin1);
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
set character_set_connection=ucs2;
|
||||
select hex(group_concat(a separator ',')) from t1;
|
||||
select collation(group_concat(a separator ',')) from t1;
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
@@ -15,6 +15,16 @@ DROP TABLE IF EXISTS t1;
|
||||
create table t1 (a int);
|
||||
drop table t1;
|
||||
|
||||
--echo End of 4.1 tests
|
||||
|
||||
#
|
||||
# Bug #28925 GROUP_CONCAT inserts wrong separators for a ucs2 column
|
||||
# Check that GROUP_CONCAT works fine with --default-character-set=ucs2
|
||||
#
|
||||
create table t1 (a char(1) character set latin1);
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
select hex(group_concat(a)) from t1;
|
||||
drop table t1;
|
||||
#
|
||||
# Bug #27643: query failed : 1114 (The table '' is full)
|
||||
#
|
||||
|
Reference in New Issue
Block a user