~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/include/ctype_german.inc

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
30
insert into t1 values ('a'),('ae'),(_latin1 0xE4);
 
31
insert into t1 values ('o'),('oe'),(_latin1 0xF6);
 
32
insert into t1 values ('s'),('ss'),(_latin1 0xDF);
 
33
insert into t1 values ('u'),('ue'),(_latin1 0xFC);
 
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;