3
drop table if exists `�s�P`;
4
drop table if exists `�s�Q`;
5
drop table if exists `�s�R`;
6
drop table if exists `�s�S`;
7
drop table if exists `�s�T`;
8
drop table if exists `�s�U`;
9
drop table if exists `�s�V`;
10
drop table if exists `�s�W`;
11
drop table if exists `�s�X`;
12
drop table if exists `�s�P�O`;
13
drop table if exists `�s�P�P`;
14
drop table if exists `�s�P�Q`;
15
#drop table if exists t1;
19
# Test ENUM values with Japanese characters in sjis encoding
23
SET character_set_database = sjis;
25
CREATE TABLE `�s�P` (`�b�P` ENUM('�','�','�'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
26
CREATE TABLE `�s�Q` (`�b�P` ENUM('��','��','��'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
27
CREATE TABLE `�s�R` (`�b�P` ENUM('�\','�\','�\'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
28
CREATE TABLE `�s�S` (`�b�P` ENUM('�','�','�'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
29
CREATE TABLE `�s�T` (`�b�P` ENUM('��','��','��'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
30
CREATE TABLE `�s�U` (`�b�P` ENUM('�\','�\','�\'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
31
CREATE TABLE `�s�V` (`�b�P` ENUM('�','�','�'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = heap;
32
CREATE TABLE `�s�W` (`�b�P` ENUM('��','��','��'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = heap;
33
CREATE TABLE `�s�X` (`�b�P` ENUM('�\','�\','�\'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = heap;
34
CREATE TABLE `�s�P�O` (`�b�P` ENUM('�','�','�'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = bdb;
35
CREATE TABLE `�s�P�P` (`�b�P` ENUM('��','��','��'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = bdb;
36
CREATE TABLE `�s�P�Q` (`�b�P` ENUM('�\','�\','�\'), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = bdb;
38
INSERT INTO `�s�P` VALUES ('�'),('�'),('�');
39
INSERT INTO `�s�Q` VALUES ('��'),('��'),('��');
40
INSERT INTO `�s�R` VALUES ('�\'),('�\'),('�\');
41
INSERT INTO `�s�S` VALUES ('�'),('�'),('�');
42
INSERT INTO `�s�T` VALUES ('��'),('��'),('��');
43
INSERT INTO `�s�U` VALUES ('�\'),('�\'),('�\');
44
INSERT INTO `�s�V` VALUES ('�'),('�'),('�');
45
INSERT INTO `�s�W` VALUES ('��'),('��'),('��');
46
INSERT INTO `�s�X` VALUES ('�\'),('�\'),('�\');
47
INSERT INTO `�s�P�O` VALUES ('�'),('�'),('�');
48
INSERT INTO `�s�P�P` VALUES ('��'),('��'),('��');
49
INSERT INTO `�s�P�Q` VALUES ('�\'),('�\'),('�\');
60
SELECT * FROM `�s�P�O`;
61
SELECT * FROM `�s�P�P`;
62
SELECT * FROM `�s�P�Q`;
64
SHOW CREATE TABLE `�s�P`;
65
SHOW CREATE TABLE `�s�Q`;
66
SHOW CREATE TABLE `�s�R`;
67
SHOW CREATE TABLE `�s�S`;
68
SHOW CREATE TABLE `�s�T`;
69
SHOW CREATE TABLE `�s�U`;
70
SHOW CREATE TABLE `�s�V`;
71
SHOW CREATE TABLE `�s�W`;
72
SHOW CREATE TABLE `�s�X`;
73
SHOW CREATE TABLE `�s�P�O`;
74
SHOW CREATE TABLE `�s�P�P`;
75
SHOW CREATE TABLE `�s�P�Q`;
91
# Test problem with enum values after the colum with NOT NULL restriction
94
ALTER TABLE `�s�P` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
95
ALTER TABLE `�s�Q` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
96
ALTER TABLE `�s�R` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
97
ALTER TABLE `�s�S` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
98
ALTER TABLE `�s�T` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
99
ALTER TABLE `�s�U` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
100
ALTER TABLE `�s�V` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
101
ALTER TABLE `�s�W` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
102
ALTER TABLE `�s�X` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
103
ALTER TABLE `�s�P�O` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
104
ALTER TABLE `�s�P�P` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
105
ALTER TABLE `�s�P�Q` ADD `�b�Q` CHAR(1) NOT NULL FIRST;
107
SHOW CREATE TABLE `�s�P`;
108
SHOW CREATE TABLE `�s�Q`;
109
SHOW CREATE TABLE `�s�R`;
110
SHOW CREATE TABLE `�s�S`;
111
SHOW CREATE TABLE `�s�T`;
112
SHOW CREATE TABLE `�s�U`;
113
SHOW CREATE TABLE `�s�V`;
114
SHOW CREATE TABLE `�s�W`;
115
SHOW CREATE TABLE `�s�X`;
116
SHOW CREATE TABLE `�s�P�O`;
117
SHOW CREATE TABLE `�s�P�P`;
118
SHOW CREATE TABLE `�s�P�Q`;
121
# Test to distinguish 0x9353 and 0x9373
122
# bug #6206 need to be fixed
124
#CREATE TABLE t1(c1 enum('�S','�s')) default character set = sjis;
125
#INSERT INTO t1 VALUES('�S'),('�s');
126
#SELECT * FROM t1 WHERE c1 LIKE '�S';