summaryrefslogtreecommitdiff
path: root/mysql-test/suite/jp/r/jp_enum_sjis.result
blob: cc68c1536a0501d5b07f19a256a9d917babd4f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
drop table if exists `sP`;
drop table if exists `sQ`;
drop table if exists `sR`;
drop table if exists `sS`;
drop table if exists `sT`;
drop table if exists `sU`;
drop table if exists `sV`;
drop table if exists `sW`;
drop table if exists `sX`;
drop table if exists t1;
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `sP` (`bP` ENUM('','',''), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sQ` (`bP` ENUM('','',''), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sR` (`bP` ENUM('\','\','\'), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sS` (`bP` ENUM('','',''), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sT` (`bP` ENUM('','',''), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sU` (`bP` ENUM('\','\','\'), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sV` (`bP` ENUM('','',''), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sW` (`bP` ENUM('','',''), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sX` (`bP` ENUM('\','\','\'), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = MEMORY;
INSERT INTO `sP` VALUES (''),(''),('');
INSERT INTO `sQ` VALUES (''),(''),('');
INSERT INTO `sR` VALUES ('\'),('\'),('\');
INSERT INTO `sS` VALUES (''),(''),('');
INSERT INTO `sT` VALUES (''),(''),('');
INSERT INTO `sU` VALUES ('\'),('\'),('\');
INSERT INTO `sV` VALUES (''),(''),('');
INSERT INTO `sW` VALUES (''),(''),('');
INSERT INTO `sX` VALUES ('\'),('\'),('\');
SELECT * FROM `sP`;
bP



SELECT * FROM `sQ`;
bP



SELECT * FROM `sR`;
bP
\
\
\
SELECT * FROM `sS`;
bP



SELECT * FROM `sT`;
bP



SELECT * FROM `sU`;
bP
\
\
\
SELECT * FROM `sV`;
bP



SELECT * FROM `sW`;
bP



SELECT * FROM `sX`;
bP
\
\
\
SHOW CREATE TABLE `sP`;
Table	Create Table
sP	CREATE TABLE `sP` (
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=InnoDB DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sQ`;
Table	Create Table
sQ	CREATE TABLE `sQ` (
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=InnoDB DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sR`;
Table	Create Table
sR	CREATE TABLE `sR` (
  `bP` enum('\','\','\') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=InnoDB DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sS`;
Table	Create Table
sS	CREATE TABLE `sS` (
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MyISAM DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sT`;
Table	Create Table
sT	CREATE TABLE `sT` (
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MyISAM DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sU`;
Table	Create Table
sU	CREATE TABLE `sU` (
  `bP` enum('\','\','\') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MyISAM DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sV`;
Table	Create Table
sV	CREATE TABLE `sV` (
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MEMORY DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sW`;
Table	Create Table
sW	CREATE TABLE `sW` (
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MEMORY DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sX`;
Table	Create Table
sX	CREATE TABLE `sX` (
  `bP` enum('\','\','\') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MEMORY DEFAULT CHARSET=sjis
DESC `sP`;
Field	Type	Null	Key	Default	Extra
bP	enum('','','')	YES	MUL	NULL	
DESC `sQ`;
Field	Type	Null	Key	Default	Extra
bP	enum('','','')	YES	MUL	NULL	
DESC `sR`;
Field	Type	Null	Key	Default	Extra
bP	enum('\','\','\')	YES	MUL	NULL	
DESC `sS`;
Field	Type	Null	Key	Default	Extra
bP	enum('','','')	YES	MUL	NULL	
DESC `sT`;
Field	Type	Null	Key	Default	Extra
bP	enum('','','')	YES	MUL	NULL	
DESC `sU`;
Field	Type	Null	Key	Default	Extra
bP	enum('\','\','\')	YES	MUL	NULL	
DESC `sV`;
Field	Type	Null	Key	Default	Extra
bP	enum('','','')	YES	MUL	NULL	
DESC `sW`;
Field	Type	Null	Key	Default	Extra
bP	enum('','','')	YES	MUL	NULL	
DESC `sX`;
Field	Type	Null	Key	Default	Extra
bP	enum('\','\','\')	YES	MUL	NULL	
ALTER TABLE `sP` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sQ` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sR` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sS` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sT` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sU` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sV` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sW` ADD `bQ` CHAR(1) NOT NULL FIRST;
ALTER TABLE `sX` ADD `bQ` CHAR(1) NOT NULL FIRST;
SHOW CREATE TABLE `sP`;
Table	Create Table
sP	CREATE TABLE `sP` (
  `bQ` char(1) NOT NULL,
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=InnoDB DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sQ`;
Table	Create Table
sQ	CREATE TABLE `sQ` (
  `bQ` char(1) NOT NULL,
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=InnoDB DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sR`;
Table	Create Table
sR	CREATE TABLE `sR` (
  `bQ` char(1) NOT NULL,
  `bP` enum('\','\','\') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=InnoDB DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sS`;
Table	Create Table
sS	CREATE TABLE `sS` (
  `bQ` char(1) NOT NULL,
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MyISAM DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sT`;
Table	Create Table
sT	CREATE TABLE `sT` (
  `bQ` char(1) NOT NULL,
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MyISAM DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sU`;
Table	Create Table
sU	CREATE TABLE `sU` (
  `bQ` char(1) NOT NULL,
  `bP` enum('\','\','\') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MyISAM DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sV`;
Table	Create Table
sV	CREATE TABLE `sV` (
  `bQ` char(1) NOT NULL,
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MEMORY DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sW`;
Table	Create Table
sW	CREATE TABLE `sW` (
  `bQ` char(1) NOT NULL,
  `bP` enum('','','') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MEMORY DEFAULT CHARSET=sjis
SHOW CREATE TABLE `sX`;
Table	Create Table
sX	CREATE TABLE `sX` (
  `bQ` char(1) NOT NULL,
  `bP` enum('\','\','\') DEFAULT NULL,
  KEY `bP` (`bP`)
) ENGINE=MEMORY DEFAULT CHARSET=sjis
CREATE TABLE t1(c1 enum('S','s')) default character set = sjis;
INSERT INTO t1 VALUES('S'),('s');
SELECT * FROM t1 WHERE c1 LIKE 'S';
c1
S
DROP TABLE t1;
DESC `sP`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('','','')	YES	MUL	NULL	
DESC `sQ`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('','','')	YES	MUL	NULL	
DESC `sR`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('\','\','\')	YES	MUL	NULL	
DESC `sS`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('','','')	YES	MUL	NULL	
DESC `sT`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('','','')	YES	MUL	NULL	
DESC `sU`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('\','\','\')	YES	MUL	NULL	
DESC `sV`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('','','')	YES	MUL	NULL	
DESC `sW`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('','','')	YES	MUL	NULL	
DESC `sX`;
Field	Type	Null	Key	Default	Extra
bQ	char(1)	NO		NULL	
bP	enum('\','\','\')	YES	MUL	NULL	
DROP TABLE `sP`;
DROP TABLE `sQ`;
DROP TABLE `sR`;
DROP TABLE `sS`;
DROP TABLE `sT`;
DROP TABLE `sU`;
DROP TABLE `sV`;
DROP TABLE `sW`;
DROP TABLE `sX`;