~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
--source include/have_ujis.inc
2
3
--disable_warnings
4
drop table if exists `£Ô£±`;
5
drop table if exists `£Ô£²`;
6
drop table if exists `£Ô£³`;
7
drop table if exists `£Ô£Ž`;
8
drop table if exists `£Ô£µ`;
9
drop table if exists `£Ô£¶`;
10
drop table if exists `£Ô£·`;
11
drop table if exists `£Ô£ž`;
12
drop table if exists `£Ô£¹`;
13
drop table if exists `£Ô£±£°`;
14
--enable_warnings
15
16
#
17
# Test LTRIM() function with Japanese characters in ujis encoding
18
#
19
20
SET NAMES ujis;
21
SET character_set_database = ujis;
22
23
CREATE TABLE `£Ô£±` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
24
CREATE TABLE `£Ô£²` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
25
CREATE TABLE `£Ô£³` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
26
CREATE TABLE `£Ô£Ž` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
27
CREATE TABLE `£Ô£µ` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
28
CREATE TABLE `£Ô£¶` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
29
CREATE TABLE `£Ô£·` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = MEMORY;
30
CREATE TABLE `£Ô£ž` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = MEMORY;
31
CREATE TABLE `£Ô£¹` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = MEMORY;
1 by brian
clean slate
32
CREATE TABLE `£Ô£±£°` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = bdb;
33
CREATE TABLE `£Ô£±£±` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = bdb;
34
CREATE TABLE `£Ô£±£²` (`£Ã£±` char(8), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = bdb;
35
36
INSERT INTO `£Ô£±` VALUES ('Ž±Ž²Ž³ŽŽŽµ');
37
INSERT INTO `£Ô£±` VALUES (' Ž±Ž²Ž³ŽŽŽµ');
38
INSERT INTO `£Ô£±` VALUES ('  Ž±Ž²Ž³ŽŽŽµ');
39
INSERT INTO `£Ô£±` VALUES ('   Ž±Ž²Ž³ŽŽŽµ');
40
# Double byte spaces are not supposed to be trimed
41
INSERT INTO `£Ô£±` VALUES ('¡¡Ž±Ž²Ž³ŽŽŽµ');
42
INSERT INTO `£Ô£±` VALUES ('¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
43
INSERT INTO `£Ô£±` VALUES ('¡¡¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
44
INSERT INTO `£Ô£²` VALUES ('€¢€€€Š€š€ª');
45
INSERT INTO `£Ô£²` VALUES (' €¢€€€Š€š€ª');
46
INSERT INTO `£Ô£²` VALUES ('  €¢€€€Š€š€ª');
47
INSERT INTO `£Ô£²` VALUES ('   €¢€€€Š€š€ª');
48
# Double byte spaces are not supposed to be trimed
49
INSERT INTO `£Ô£²` VALUES ('¡¡€¢€€€Š€š€ª');
50
INSERT INTO `£Ô£²` VALUES ('¡¡¡¡€¢€€€Š€š€ª');
51
INSERT INTO `£Ô£²` VALUES ('¡¡¡¡¡¡€¢€€€Š€š€ª');
52
INSERT INTO `£Ô£³` VALUES ('í܏íݏíޏíߏíà');
53
INSERT INTO `£Ô£³` VALUES (' í܏íݏíޏíߏíà');
54
INSERT INTO `£Ô£³` VALUES ('  í܏íݏíޏíߏíà');
55
INSERT INTO `£Ô£³` VALUES ('   í܏íݏíޏíߏíà');
56
# Double byte spaces are not supposed to be trimed
57
INSERT INTO `£Ô£³` VALUES ('¡¡í܏íݏíޏíߏíà');
58
INSERT INTO `£Ô£³` VALUES ('¡¡¡¡í܏íݏíޏíߏíà');
59
INSERT INTO `£Ô£³` VALUES ('¡¡¡¡¡¡í܏íݏíޏíߏíà');
60
INSERT INTO `£Ô£Ž` VALUES ('Ž±Ž²Ž³ŽŽŽµ');
61
INSERT INTO `£Ô£Ž` VALUES (' Ž±Ž²Ž³ŽŽŽµ');
62
INSERT INTO `£Ô£Ž` VALUES ('  Ž±Ž²Ž³ŽŽŽµ');
63
INSERT INTO `£Ô£Ž` VALUES ('   Ž±Ž²Ž³ŽŽŽµ');
64
# Double byte spaces are not supposed to be trimed
65
INSERT INTO `£Ô£Ž` VALUES ('¡¡Ž±Ž²Ž³ŽŽŽµ');
66
INSERT INTO `£Ô£Ž` VALUES ('¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
67
INSERT INTO `£Ô£Ž` VALUES ('¡¡¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
68
INSERT INTO `£Ô£µ` VALUES ('€¢€€€Š€š€ª');
69
INSERT INTO `£Ô£µ` VALUES (' €¢€€€Š€š€ª');
70
INSERT INTO `£Ô£µ` VALUES ('  €¢€€€Š€š€ª');
71
INSERT INTO `£Ô£µ` VALUES ('   €¢€€€Š€š€ª');
72
# Double byte spaces are not supposed to be trimed
73
INSERT INTO `£Ô£µ` VALUES ('¡¡€¢€€€Š€š€ª');
74
INSERT INTO `£Ô£µ` VALUES ('¡¡¡¡€¢€€€Š€š€ª');
75
INSERT INTO `£Ô£µ` VALUES ('¡¡¡¡¡¡€¢€€€Š€š€ª');
76
INSERT INTO `£Ô£¶` VALUES ('í܏íݏíޏíߏíà');
77
INSERT INTO `£Ô£¶` VALUES (' í܏íݏíޏíߏíà');
78
INSERT INTO `£Ô£¶` VALUES ('  í܏íݏíޏíߏíà');
79
INSERT INTO `£Ô£¶` VALUES ('   í܏íݏíޏíߏíà');
80
# Double byte spaces are not supposed to be trimed
81
INSERT INTO `£Ô£¶` VALUES ('¡¡í܏íݏíޏíߏíà');
82
INSERT INTO `£Ô£¶` VALUES ('¡¡¡¡í܏íݏíޏíߏíà');
83
INSERT INTO `£Ô£¶` VALUES ('¡¡¡¡¡¡í܏íݏíޏíߏíà');
84
INSERT INTO `£Ô£·` VALUES ('Ž±Ž²Ž³ŽŽŽµ');
85
INSERT INTO `£Ô£·` VALUES (' Ž±Ž²Ž³ŽŽŽµ');
86
INSERT INTO `£Ô£·` VALUES ('  Ž±Ž²Ž³ŽŽŽµ');
87
INSERT INTO `£Ô£·` VALUES ('   Ž±Ž²Ž³ŽŽŽµ');
88
# Double byte spaces are not supposed to be trimed
89
INSERT INTO `£Ô£·` VALUES ('¡¡Ž±Ž²Ž³ŽŽŽµ');
90
INSERT INTO `£Ô£·` VALUES ('¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
91
INSERT INTO `£Ô£·` VALUES ('¡¡¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
92
INSERT INTO `£Ô£ž` VALUES ('€¢€€€Š€š€ª');
93
INSERT INTO `£Ô£ž` VALUES (' €¢€€€Š€š€ª');
94
INSERT INTO `£Ô£ž` VALUES ('  €¢€€€Š€š€ª');
95
INSERT INTO `£Ô£ž` VALUES ('   €¢€€€Š€š€ª');
96
# Double byte spaces are not supposed to be trimed
97
INSERT INTO `£Ô£ž` VALUES ('¡¡€¢€€€Š€š€ª');
98
INSERT INTO `£Ô£ž` VALUES ('¡¡¡¡€¢€€€Š€š€ª');
99
INSERT INTO `£Ô£ž` VALUES ('¡¡¡¡¡¡€¢€€€Š€š€ª');
100
INSERT INTO `£Ô£¹` VALUES ('í܏íݏíޏíߏíà');
101
INSERT INTO `£Ô£¹` VALUES (' í܏íݏíޏíߏíà');
102
INSERT INTO `£Ô£¹` VALUES ('  í܏íݏíޏíߏíà');
103
INSERT INTO `£Ô£¹` VALUES ('   í܏íݏíޏíߏíà');
104
# Double byte spaces are not supposed to be trimed
105
INSERT INTO `£Ô£¹` VALUES ('¡¡í܏íݏíޏíߏíà');
106
INSERT INTO `£Ô£¹` VALUES ('¡¡¡¡í܏íݏíޏíߏíà');
107
INSERT INTO `£Ô£¹` VALUES ('¡¡¡¡¡¡í܏íݏíޏíߏíà');
108
INSERT INTO `£Ô£±£°` VALUES ('Ž±Ž²Ž³ŽŽŽµ');
109
INSERT INTO `£Ô£±£°` VALUES (' Ž±Ž²Ž³ŽŽŽµ');
110
INSERT INTO `£Ô£±£°` VALUES ('  Ž±Ž²Ž³ŽŽŽµ');
111
INSERT INTO `£Ô£±£°` VALUES ('   Ž±Ž²Ž³ŽŽŽµ');
112
# Double byte spaces are not supposed to be trimed
113
INSERT INTO `£Ô£±£°` VALUES ('¡¡Ž±Ž²Ž³ŽŽŽµ');
114
INSERT INTO `£Ô£±£°` VALUES ('¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
115
INSERT INTO `£Ô£±£°` VALUES ('¡¡¡¡¡¡Ž±Ž²Ž³ŽŽŽµ');
116
INSERT INTO `£Ô£±£±` VALUES ('€¢€€€Š€š€ª');
117
INSERT INTO `£Ô£±£±` VALUES (' €¢€€€Š€š€ª');
118
INSERT INTO `£Ô£±£±` VALUES ('  €¢€€€Š€š€ª');
119
INSERT INTO `£Ô£±£±` VALUES ('   €¢€€€Š€š€ª');
120
# Double byte spaces are not supposed to be trimed
121
INSERT INTO `£Ô£±£±` VALUES ('¡¡€¢€€€Š€š€ª');
122
INSERT INTO `£Ô£±£±` VALUES ('¡¡¡¡€¢€€€Š€š€ª');
123
INSERT INTO `£Ô£±£±` VALUES ('¡¡¡¡¡¡€¢€€€Š€š€ª');
124
INSERT INTO `£Ô£±£²` VALUES ('í܏íݏíޏíߏíà');
125
INSERT INTO `£Ô£±£²` VALUES (' í܏íݏíޏíߏíà');
126
INSERT INTO `£Ô£±£²` VALUES ('  í܏íݏíޏíߏíà');
127
INSERT INTO `£Ô£±£²` VALUES ('   í܏íݏíޏíߏíà');
128
# Double byte spaces are not supposed to be trimed
129
INSERT INTO `£Ô£±£²` VALUES ('¡¡í܏íݏíޏíߏíà');
130
INSERT INTO `£Ô£±£²` VALUES ('¡¡¡¡í܏íݏíޏíߏíà');
131
INSERT INTO `£Ô£±£²` VALUES ('¡¡¡¡¡¡í܏íݏíޏíߏíà');
132
133
#InnoDB
134
SELECT LTRIM(`£Ã£±`) from `£Ô£±`;
135
SELECT LTRIM(`£Ã£±`) from `£Ô£²`;
136
SELECT LTRIM(`£Ã£±`) from `£Ô£³`;
137
138
#MyISAM
139
SELECT LTRIM(`£Ã£±`) from `£Ô£Ž`;
140
SELECT LTRIM(`£Ã£±`) from `£Ô£µ`;
141
SELECT LTRIM(`£Ã£±`) from `£Ô£¶`;
142
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
143
#MEMORY
1 by brian
clean slate
144
SELECT LTRIM(`£Ã£±`) from `£Ô£·`;
145
SELECT LTRIM(`£Ã£±`) from `£Ô£ž`;
146
SELECT LTRIM(`£Ã£±`) from `£Ô£¹`;
147
148
#BDB
149
SELECT LTRIM(`£Ã£±`) from `£Ô£±£°`;
150
SELECT LTRIM(`£Ã£±`) from `£Ô£±£±`;
151
SELECT LTRIM(`£Ã£±`) from `£Ô£±£²`;
152
153
DROP TABLE `£Ô£±`;
154
DROP TABLE `£Ô£²`;
155
DROP TABLE `£Ô£³`;
156
DROP TABLE `£Ô£Ž`;
157
DROP TABLE `£Ô£µ`;
158
DROP TABLE `£Ô£¶`;
159
DROP TABLE `£Ô£·`;
160
DROP TABLE `£Ô£ž`;
161
DROP TABLE `£Ô£¹`;
162
DROP TABLE `£Ô£±£°`;
163
DROP TABLE `£Ô£±£±`;
164
DROP TABLE `£Ô£±£²`;