Commit 91edb6f7 authored by Alexander Barkov's avatar Alexander Barkov

Better test coverage for WL#4013 Unicode german2 collation

Merge from MySQL-5.6
parent 71f8ca65
--echo "BEGIN ctype_german.inc"
# #
# Bug #27877 incorrect german order in utf8_general_ci # Bug #27877 incorrect german order in utf8_general_ci
# #
...@@ -27,16 +28,30 @@ delete from t1; ...@@ -27,16 +28,30 @@ delete from t1;
# Populate data # Populate data
# #
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
# LIGATURE AE
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
# LIGATURE OE
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
# #
# Check order # Check order
# #
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
drop table t1; drop table t1;
...@@ -52,3 +67,5 @@ SELECT * FROM t1 ORDER BY a DESC, b; ...@@ -52,3 +67,5 @@ SELECT * FROM t1 ORDER BY a DESC, b;
SELECT * FROM t1 ORDER BY CONCAT(a), b; SELECT * FROM t1 ORDER BY CONCAT(a), b;
SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b; SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
DROP TABLE t1; DROP TABLE t1;
--echo "END ctype_german.inc"
This diff is collapsed.
...@@ -326,40 +326,97 @@ latin1_german2_ci 6109 ...@@ -326,40 +326,97 @@ latin1_german2_ci 6109
latin1_german2_ci 61 latin1_german2_ci 61
latin1_german2_ci 6120 latin1_german2_ci 6120
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
latin1_german2_ci latin1_german2_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 61 a 61
ad 6164
ae 6165 ae 6165
E4 E4
af 6166
e 65
o 6F o 6F
od 6F64
oe 6F65 oe 6F65
F6 F6
of 6F66
s 73 s 73
ss 7373 ss 7373
DF DF
u 75 u 75
ud 7564
ue 7565 ue 7565
FC FC
uf 7566
C6
E6
8C
9C
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a a
ad
ae, ae,
af
e
o o
od
oe, oe,
of
s s
ss, ss,
u u
ud
ue, ue,
uf
,
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 61 41
ad 6164 4144
ae 6165 4145
E4 4145
af 6166 4146
e 65 45
o 6F 4F
od 6F64 4F44
oe 6F65 4F45
F6 4F45
of 6F66 4F46
s 73 53
ss 7373 5353
DF 5353
u 75 55
ud 7564 5544
ue 7565 5545
FC 5545
uf 7566 5546
C6 5C
E6 5C
8C 8C
9C 9C
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 6165
E4
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -386,6 +443,7 @@ a b ...@@ -386,6 +443,7 @@ a b
1 1
s 0 s 0
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
SET NAMES latin1; SET NAMES latin1;
CREATE TABLE t1 ( CREATE TABLE t1 (
col1 varchar(255) NOT NULL default '' col1 varchar(255) NOT NULL default ''
......
This diff is collapsed.
...@@ -752,40 +752,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; ...@@ -752,40 +752,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
c2h c2h
ab_def ab_def
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
ucs2_general_ci ucs2_general_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 0061 a 0061
00E4 00E4
ad 00610064
ae 00610065 ae 00610065
af 00610066
e 0065
o 006F o 006F
00F6 00F6
od 006F0064
oe 006F0065 oe 006F0065
of 006F0066
s 0073 s 0073
00DF 00DF
ss 00730073 ss 00730073
u 0075 u 0075
00FC 00FC
ud 00750064
ue 00750065 ue 00750065
uf 00750066
00C6
00E6
0152
0153
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a, a,
ad
ae ae
af
e
o, o,
od
oe oe
of
s, s,
ss ss
u, u,
ud
ue ue
uf
,
,
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 0061 0041
00E4 0041
ad 00610064 00410044
ae 00610065 00410045
af 00610066 00410046
e 0065 0045
o 006F 004F
00F6 004F
od 006F0064 004F0044
oe 006F0065 004F0045
of 006F0066 004F0046
s 0073 0053
00DF 0053
ss 00730073 00530053
u 0075 0055
00FC 0055
ud 00750064 00550044
ue 00750065 00550045
uf 00750066 00550046
00C6 00C6
00E6 00C6
0152 0152
0153 0152
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 00610065
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -812,6 +867,7 @@ a b ...@@ -812,6 +867,7 @@ a b
s 0 s 0
1 1
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
CREATE TABLE t1 AS CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d; SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b); ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
......
This diff is collapsed.
This diff is collapsed.
...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; ...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
c2h c2h
ab_def ab_def
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
utf8_general_ci utf8_general_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 61 a 61
ä C3A4 ä C3A4
ad 6164
ae 6165 ae 6165
af 6166
e 65
o 6F o 6F
ö C3B6 ö C3B6
od 6F64
oe 6F65 oe 6F65
of 6F66
s 73 s 73
ß C39F ß C39F
ss 7373 ss 7373
u 75 u 75
ü C3BC ü C3BC
ud 7564
ue 7565 ue 7565
uf 7566
Æ C386
æ C3A6
Œ C592
œ C593
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a,ä a,ä
ad
ae ae
af
e
o,ö o,ö
od
oe oe
of
s,ß s,ß
ss ss
u,ü u,ü
ud
ue ue
uf
Æ,æ
Œ,œ
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 61 0041
ä C3A4 0041
ad 6164 00410044
ae 6165 00410045
af 6166 00410046
e 65 0045
o 6F 004F
ö C3B6 004F
od 6F64 004F0044
oe 6F65 004F0045
of 6F66 004F0046
s 73 0053
ß C39F 0053
ss 7373 00530053
u 75 0055
ü C3BC 0055
ud 7564 00550044
ue 7565 00550045
uf 7566 00550046
Æ C386 00C6
æ C3A6 00C6
Œ C592 0152
œ C593 0152
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 6165
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -1002,6 +1057,7 @@ a b ...@@ -1002,6 +1057,7 @@ a b
s 0 s 0
ß 1 ß 1
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
SET collation_connection='utf8_bin'; SET collation_connection='utf8_bin';
create table t1 select repeat('a',4000) a; create table t1 select repeat('a',4000) a;
delete from t1; delete from t1;
......
...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; ...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
c2h c2h
ab_def ab_def
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
utf8mb4_general_ci utf8mb4_general_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 61 a 61
ä C3A4 ä C3A4
ad 6164
ae 6165 ae 6165
af 6166
e 65
o 6F o 6F
ö C3B6 ö C3B6
od 6F64
oe 6F65 oe 6F65
of 6F66
s 73 s 73
ß C39F ß C39F
ss 7373 ss 7373
u 75 u 75
ü C3BC ü C3BC
ud 7564
ue 7565 ue 7565
uf 7566
Æ C386
æ C3A6
Œ C592
œ C593
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a,ä a,ä
ad
ae ae
af
e
o,ö o,ö
od
oe oe
of
s,ß s,ß
ss ss
u,ü u,ü
ud
ue ue
uf
Æ,æ
Œ,œ
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 61 0041
ä C3A4 0041
ad 6164 00410044
ae 6165 00410045
af 6166 00410046
e 65 0045
o 6F 004F
ö C3B6 004F
od 6F64 004F0044
oe 6F65 004F0045
of 6F66 004F0046
s 73 0053
ß C39F 0053
ss 7373 00530053
u 75 0055
ü C3BC 0055
ud 7564 00550044
ue 7565 00550045
uf 7566 00550046
Æ C386 00C6
æ C3A6 00C6
Œ C592 0152
œ C593 0152
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 6165
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -1002,6 +1057,7 @@ a b ...@@ -1002,6 +1057,7 @@ a b
s 0 s 0
ß 1 ß 1
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
SET collation_connection='utf8mb4_bin'; SET collation_connection='utf8mb4_bin';
create table t1 select repeat('a',4000) a; create table t1 select repeat('a',4000) a;
delete from t1; delete from t1;
......
...@@ -881,40 +881,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; ...@@ -881,40 +881,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
c2h c2h
ab_def ab_def
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
utf8mb4_general_ci utf8mb4_general_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 61 a 61
ä C3A4 ä C3A4
ad 6164
ae 6165 ae 6165
af 6166
e 65
o 6F o 6F
ö C3B6 ö C3B6
od 6F64
oe 6F65 oe 6F65
of 6F66
s 73 s 73
ß C39F ß C39F
ss 7373 ss 7373
u 75 u 75
ü C3BC ü C3BC
ud 7564
ue 7565 ue 7565
uf 7566
Æ C386
æ C3A6
Œ C592
œ C593
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a,ä a,ä
ad
ae ae
af
e
o,ö o,ö
od
oe oe
of
s,ß s,ß
ss ss
u,ü u,ü
ud
ue ue
uf
Æ,æ
Œ,œ
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 61 0041
ä C3A4 0041
ad 6164 00410044
ae 6165 00410045
af 6166 00410046
e 65 0045
o 6F 004F
ö C3B6 004F
od 6F64 004F0044
oe 6F65 004F0045
of 6F66 004F0046
s 73 0053
ß C39F 0053
ss 7373 00530053
u 75 0055
ü C3BC 0055
ud 7564 00550044
ue 7565 00550045
uf 7566 00550046
Æ C386 00C6
æ C3A6 00C6
Œ C592 0152
œ C593 0152
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 6165
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -941,6 +996,7 @@ a b ...@@ -941,6 +996,7 @@ a b
s 0 s 0
ß 1 ß 1
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
SET collation_connection='utf8mb4_bin'; SET collation_connection='utf8mb4_bin';
create table t1 select repeat('a',4000) a; create table t1 select repeat('a',4000) a;
delete from t1; delete from t1;
......
...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; ...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
c2h c2h
ab_def ab_def
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
utf8mb4_general_ci utf8mb4_general_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 61 a 61
ä C3A4 ä C3A4
ad 6164
ae 6165 ae 6165
af 6166
e 65
o 6F o 6F
ö C3B6 ö C3B6
od 6F64
oe 6F65 oe 6F65
of 6F66
s 73 s 73
ß C39F ß C39F
ss 7373 ss 7373
u 75 u 75
ü C3BC ü C3BC
ud 7564
ue 7565 ue 7565
uf 7566
Æ C386
æ C3A6
Œ C592
œ C593
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a,ä a,ä
ad
ae ae
af
e
o,ö o,ö
od
oe oe
of
s,ß s,ß
ss ss
u,ü u,ü
ud
ue ue
uf
Æ,æ
Œ,œ
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 61 0041
ä C3A4 0041
ad 6164 00410044
ae 6165 00410045
af 6166 00410046
e 65 0045
o 6F 004F
ö C3B6 004F
od 6F64 004F0044
oe 6F65 004F0045
of 6F66 004F0046
s 73 0053
ß C39F 0053
ss 7373 00530053
u 75 0055
ü C3BC 0055
ud 7564 00550044
ue 7565 00550045
uf 7566 00550046
Æ C386 00C6
æ C3A6 00C6
Œ C592 0152
œ C593 0152
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 6165
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -1002,6 +1057,7 @@ a b ...@@ -1002,6 +1057,7 @@ a b
s 0 s 0
ß 1 ß 1
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
SET collation_connection='utf8mb4_bin'; SET collation_connection='utf8mb4_bin';
create table t1 select repeat('a',4000) a; create table t1 select repeat('a',4000) a;
delete from t1; delete from t1;
......
...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; ...@@ -942,40 +942,95 @@ select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
c2h c2h
ab_def ab_def
drop table t1; drop table t1;
"BEGIN ctype_german.inc"
drop table if exists t1; drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1; create table t1 as select repeat(' ', 64) as s1;
select collation(s1) from t1; select collation(s1) from t1;
collation(s1) collation(s1)
utf8mb4_general_ci utf8mb4_general_ci
delete from t1; delete from t1;
INSERT INTO t1 VALUES ('ud'),('uf');
INSERT INTO t1 VALUES ('od'),('of');
INSERT INTO t1 VALUES ('e');
INSERT INTO t1 VALUES ('ad'),('af');
insert into t1 values ('a'),('ae'),(_latin1 0xE4); insert into t1 values ('a'),('ae'),(_latin1 0xE4);
insert into t1 values ('o'),('oe'),(_latin1 0xF6); insert into t1 values ('o'),('oe'),(_latin1 0xF6);
insert into t1 values ('s'),('ss'),(_latin1 0xDF); insert into t1 values ('s'),('ss'),(_latin1 0xDF);
insert into t1 values ('u'),('ue'),(_latin1 0xFC); insert into t1 values ('u'),('ue'),(_latin1 0xFC);
INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
select s1, hex(s1) from t1 order by s1, binary s1; select s1, hex(s1) from t1 order by s1, binary s1;
s1 hex(s1) s1 hex(s1)
a 61 a 61
ä C3A4 ä C3A4
ad 6164
ae 6165 ae 6165
af 6166
e 65
o 6F o 6F
ö C3B6 ö C3B6
od 6F64
oe 6F65 oe 6F65
of 6F66
s 73 s 73
ß C39F ß C39F
ss 7373 ss 7373
u 75 u 75
ü C3BC ü C3BC
ud 7564
ue 7565 ue 7565
uf 7566
Æ C386
æ C3A6
Œ C592
œ C593
select group_concat(s1 order by binary s1) from t1 group by s1; select group_concat(s1 order by binary s1) from t1 group by s1;
group_concat(s1 order by binary s1) group_concat(s1 order by binary s1)
a,ä a,ä
ad
ae ae
af
e
o,ö o,ö
od
oe oe
of
s,ß s,ß
ss ss
u,ü u,ü
ud
ue ue
uf
Æ,æ
Œ,œ
SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
s1 hex(s1) hex(weight_string(s1))
a 61 0041
ä C3A4 0041
ad 6164 00410044
ae 6165 00410045
af 6166 00410046
e 65 0045
o 6F 004F
ö C3B6 004F
od 6F64 004F0044
oe 6F65 004F0045
of 6F66 004F0046
s 73 0053
ß C39F 0053
ss 7373 00530053
u 75 0055
ü C3BC 0055
ud 7564 00550044
ue 7565 00550045
uf 7566 00550046
Æ C386 00C6
æ C3A6 00C6
Œ C592 0152
œ C593 0152
SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
s1 hex(s1)
ae 6165
drop table t1; drop table t1;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0; CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -1002,6 +1057,7 @@ a b ...@@ -1002,6 +1057,7 @@ a b
s 0 s 0
ß 1 ß 1
DROP TABLE t1; DROP TABLE t1;
"END ctype_german.inc"
SET collation_connection='utf8mb4_bin'; SET collation_connection='utf8mb4_bin';
create table t1 select repeat('a',4000) a; create table t1 select repeat('a',4000) a;
delete from t1; delete from t1;
......
This diff is collapsed.
-- source include/have_ucs2.inc -- source include/have_ucs2.inc
-- source include/have_utf8mb4.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
...@@ -43,157 +44,7 @@ DROP TABLE t; ...@@ -43,157 +44,7 @@ DROP TABLE t;
create table t1 (c1 char(10) character set utf8 collate utf8_bin); create table t1 (c1 char(10) character set utf8 collate utf8_bin);
# --source include/ctype_unicode_latin.inc
# Basic Latin
#
insert into t1 values ('A'),('a');
insert into t1 values ('B'),('b');
insert into t1 values ('C'),('c');
insert into t1 values ('D'),('d');
insert into t1 values ('E'),('e');
insert into t1 values ('F'),('f');
insert into t1 values ('G'),('g');
insert into t1 values ('H'),('h');
insert into t1 values ('I'),('i');
insert into t1 values ('J'),('j');
insert into t1 values ('K'),('k');
insert into t1 values ('L'),('l');
insert into t1 values ('M'),('m');
insert into t1 values ('N'),('n');
insert into t1 values ('O'),('o');
insert into t1 values ('P'),('p');
insert into t1 values ('Q'),('q');
insert into t1 values ('R'),('r');
insert into t1 values ('S'),('s');
insert into t1 values ('T'),('t');
insert into t1 values ('U'),('u');
insert into t1 values ('V'),('v');
insert into t1 values ('W'),('w');
insert into t1 values ('X'),('x');
insert into t1 values ('Y'),('y');
insert into t1 values ('Z'),('z');
#
# Latin1 suppliment
#
insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
#
# Latin extended-A, 0100-017F
#
insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
#
# Latin extended-B, 0180-024F
#
insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
insert into t1 values ('AA'),('Aa'),('aa'),('aA');
insert into t1 values ('CH'),('Ch'),('ch'),('cH');
insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
insert into t1 values ('LL'),('Ll'),('ll'),('lL');
insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
insert into t1 values ('OE'),('Oe'),('oe'),('oE');
insert into t1 values ('SS'),('Ss'),('ss'),('sS');
insert into t1 values ('RR'),('Rr'),('rr'),('rR');
select group_concat(c1 order by c1) from t1 group by c1 collate utf8_unicode_ci; select group_concat(c1 order by c1) from t1 group by c1 collate utf8_unicode_ci;
select group_concat(c1 order by c1) from t1 group by c1 collate utf8_icelandic_ci; select group_concat(c1 order by c1) from t1 group by c1 collate utf8_icelandic_ci;
......
This diff is collapsed.
This diff is collapsed.
-- source include/have_ucs2.inc
-- source include/have_utf8mb4.inc
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
--echo #
--echo # Start of 5.5 tests
--echo #
SET NAMES utf8mb4;
CREATE TABLE t1 (c1 CHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin);
--source include/ctype_unicode_latin.inc
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_unicode_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_icelandic_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_latvian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_romanian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_slovenian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_polish_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_estonian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_spanish_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_swedish_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_turkish_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_czech_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_danish_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_lithuanian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_slovak_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_spanish2_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_roman_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_esperanto_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_hungarian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_croatian_ci;
SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_german2_ci;
DROP TABLE t1;
--echo #
--echo # Start of 5.5 tests
--echo #
#
# Bug#57737 Character sets: search fails with like, contraction, index
# Test my_like_range and contractions
#
SET collation_connection=utf8mb4_czech_ci;
--source include/ctype_czech.inc
--source include/ctype_like_ignorable.inc
--echo #
--echo # End of 5.5 tests
--echo #
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment