1
by brian
clean slate |
1 |
#
|
2 |
# Bug #27877 incorrect german order in utf8_general_ci |
|
3 |
#
|
|
4 |
# Testing if "SHARP S" is equal to "S", |
|
5 |
# like in latin1_german1_ci, utf8_general_ci, ucs2_general_ci |
|
6 |
# Or if "SHART S" is equal to "SS", |
|
7 |
# like in latin1_german2_ci, utf8_unicode_ci, ucs2_unicode_ci |
|
8 |
#
|
|
9 |
# Also testing A-uml, O-uml, U-uml |
|
10 |
#
|
|
11 |
||
12 |
--disable_warnings |
|
13 |
drop table if exists t1; |
|
14 |
--enable_warnings |
|
15 |
||
16 |
#
|
|
17 |
# Create a table with a varchar(x) column, |
|
18 |
# using current values of |
|
19 |
# @@character_set_connection and @@collation_connection. |
|
20 |
#
|
|
21 |
||
22 |
create table t1 as select repeat(' ', 64) as s1; |
|
23 |
select collation(s1) from t1; |
|
24 |
delete from t1; |
|
25 |
||
26 |
#
|
|
27 |
# Populate data |
|
28 |
#
|
|
29 |
||
759.1.5
by Monty Taylor
Enabled ctype_utf8. |
30 |
insert into t1 values ('a'),('ae'),('ä'); |
31 |
insert into t1 values ('o'),('oe'),('ö'); |
|
32 |
insert into t1 values ('s'),('ss'),('ß'); |
|
33 |
insert into t1 values ('u'),('ue'),('ü'); |
|
1
by brian
clean slate |
34 |
|
35 |
#
|
|
36 |
# Check order |
|
37 |
#
|
|
38 |
select s1, hex(s1) from t1 order by s1, binary s1; |
|
39 |
select group_concat(s1 order by binary s1) from t1 group by s1; |
|
40 |
drop table t1; |