~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/mordred/t/ctype_ldml.test

merge with latest from the trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--source include/have_ucs2.inc
2
 
--source include/have_utf16.inc
3
 
--source include/have_utf32.inc
4
 
 
5
 
 
6
 
--disable_warnings
7
 
drop table if exists t1;
8
 
--enable_warnings
9
 
 
10
 
--echo In the following tests we change the order of letter "b"
11
 
--echo making it equal to letter "a", and check that it works
12
 
--echo with all Unicode character sets
13
 
set names utf8;
14
 
 
15
 
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
16
 
show variables like 'character_sets_dir%';
17
 
 
18
 
show collation like 'utf8_test_ci';
19
 
create table t1 (c1 char(1) character set utf8 collate utf8_test_ci);
20
 
insert into t1 values ('a');
21
 
select * from t1 where c1='b';
22
 
drop table t1;
23
 
 
24
 
show collation like 'ucs2_test_ci';
25
 
create table t1 (c1 char(1) character set ucs2 collate ucs2_test_ci);
26
 
insert into t1 values ('a');
27
 
select * from t1 where c1='b';
28
 
drop table t1;
29
 
 
30
 
show collation like 'utf16_test_ci';
31
 
create table t1 (c1 char(1) character set utf16 collate utf16_test_ci);
32
 
insert into t1 values ('a');
33
 
select * from t1 where c1='b';
34
 
drop table t1;
35
 
 
36
 
show collation like 'utf32_test_ci';
37
 
create table t1 (c1 char(1) character set utf32 collate utf32_test_ci);
38
 
insert into t1 values ('a');
39
 
select * from t1 where c1='b';
40
 
drop table t1;
41
 
 
42
 
--echo  Vietnamese experimental collation
43
 
 
44
 
show collation like 'ucs2_vn_ci';
45
 
create table t1 (c1 char(1) character set ucs2 collate ucs2_vn_ci);
46
 
insert into t1 values (0x0061),(0x0041),(0x00E0),(0x00C0),(0x1EA3),(0x1EA2),
47
 
                      (0x00E3),(0x00C3),(0x00E1),(0x00C1),(0x1EA1),(0x1EA0);
48
 
insert into t1 values (0x0103),(0x0102),(0x1EB1),(0x1EB0),(0x1EB3),(0x1EB2),
49
 
                      (0x1EB5),(0x1EB4),(0x1EAF),(0x1EAE),(0x1EB7),(0x1EB6);
50
 
insert into t1 values (0x00E2),(0x00C2),(0x1EA7),(0x1EA6),(0x1EA9),(0x1EA8),
51
 
                      (0x1EAB),(0x1EAA),(0x1EA5),(0x1EA4),(0x1EAD),(0x1EAC);
52
 
insert into t1 values ('b'),('B'),('c'),('C');
53
 
insert into t1 values ('d'),('D'),(0x0111),(0x0110);
54
 
insert into t1 values (0x0065),(0x0045),(0x00E8),(0x00C8),(0x1EBB),(0x1EBA),
55
 
                      (0x1EBD),(0x1EBC),(0x00E9),(0x00C9),(0x1EB9),(0x1EB8);
56
 
insert into t1 values (0x00EA),(0x00CA),(0x1EC1),(0x1EC0),(0x1EC3),(0x1EC2),
57
 
                      (0x1EC5),(0x1EC4),(0x1EBF),(0x1EBE),(0x1EC7),(0x1EC6);
58
 
insert into t1 values ('g'),('G'),('h'),('H');
59
 
insert into t1 values (0x0069),(0x0049),(0x00EC),(0x00CC),(0x1EC9),(0x1EC8),
60
 
                      (0x0129),(0x0128),(0x00ED),(0x00CD),(0x1ECB),(0x1ECA);
61
 
insert into t1 values ('k'),('K'),('l'),('L'),('m'),('M');
62
 
insert into t1 values (0x006F),(0x004F),(0x00F2),(0x00D2),(0x1ECF),(0x1ECE),
63
 
                      (0x00F5),(0x00D5),(0x00F3),(0x00D3),(0x1ECD),(0x1ECC);
64
 
insert into t1 values (0x00F4),(0x00D4),(0x1ED3),(0x1ED2),(0x1ED5),(0x1ED4),
65
 
                      (0x1ED7),(0x1ED6),(0x1ED1),(0x1ED0),(0x1ED9),(0x1ED8);
66
 
insert into t1 values (0x01A1),(0x01A0),(0x1EDD),(0x1EDC),(0x1EDF),(0x1EDE),
67
 
                      (0x1EE1),(0x1EE0),(0x1EDB),(0x1EDA),(0x1EE3),(0x1EE2);
68
 
insert into t1 values ('p'),('P'),('q'),('Q'),('r'),('R'),('s'),('S'),('t'),('T');
69
 
insert into t1 values (0x0075),(0x0055),(0x00F9),(0x00D9),(0x1EE7),(0x1EE6),
70
 
                      (0x0169),(0x0168),(0x00FA),(0x00DA),(0x1EE5),(0x1EE4);
71
 
insert into t1 values (0x01B0),(0x01AF),(0x1EEB),(0x1EEA),(0x1EED),(0x1EEC),
72
 
                      (0x1EEF),(0x1EEE),(0x1EE9),(0x1EE8),(0x1EF1),(0x1EF0);
73
 
insert into t1 values ('v'),('V'),('x'),('X');
74
 
insert into t1 values (0x0079),(0x0059),(0x1EF3),(0x1EF2),(0x1EF7),(0x1EF6),
75
 
                      (0x1EF9),(0x1EF8),(0x00FD),(0x00DD),(0x1EF5),(0x1EF4);
76
 
select hex(c1) as h, c1 from t1 order by c1, h;
77
 
select group_concat(hex(c1) order by hex(c1)) from t1 group by c1;
78
 
select group_concat(c1 order by hex(c1) SEPARATOR '') from t1 group by c1;
79
 
drop table t1;