~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
drop table if exists `T1`;
2
drop table if exists `T2`;
3
drop table if exists `T3`;
4
drop table if exists `T4`;
5
drop table if exists `T5`;
6
drop table if exists `T6`;
7
drop table if exists `T7`;
8
drop table if exists `T8`;
9
drop table if exists `T9`;
10
drop table if exists `T10`;
11
drop table if exists `T11`;
12
drop table if exists `T12`;
1271.4.1 by lbieber
clean up japanese tests, remove tests that no longer apply. In test-run.pl change mysql_version_id to drizzle_version_id
13
CREATE TABLE `T1` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`))  engine = innodb;
14
CREATE TABLE `T2` (`C1` ENUM('あ','い','う'), INDEX(`C1`))  engine = innodb;
15
CREATE TABLE `T3` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`))  engine = innodb;
16
CREATE TEMPORARY TABLE `T4` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`))  engine = myisam;
17
CREATE TEMPORARY TABLE `T5` (`C1` ENUM('あ','い','う'), INDEX(`C1`))  engine = myisam;
18
CREATE TEMPORARY TABLE `T6` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`))  engine = myisam;
19
CREATE TEMPORARY TABLE `T7` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`))  engine = MEMORY;
20
CREATE TEMPORARY TABLE `T8` (`C1` ENUM('あ','い','う'), INDEX(`C1`))  engine = MEMORY;
21
CREATE TEMPORARY TABLE `T9` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`))  engine = MEMORY;
1 by brian
clean slate
22
INSERT INTO `T1` VALUES ('ア'),('イ'),('ウ');
23
INSERT INTO `T2` VALUES ('あ'),('い'),('う');
24
INSERT INTO `T3` VALUES ('龔'),('龖'),('龗');
25
INSERT INTO `T4` VALUES ('ア'),('イ'),('ウ');
26
INSERT INTO `T5` VALUES ('あ'),('い'),('う');
27
INSERT INTO `T6` VALUES ('龔'),('龖'),('龗');
28
INSERT INTO `T7` VALUES ('ア'),('イ'),('ウ');
29
INSERT INTO `T8` VALUES ('あ'),('い'),('う');
30
INSERT INTO `T9` VALUES ('龔'),('龖'),('龗');
31
SELECT * FROM `T1`;
32
C1
33

34

35

36
SELECT * FROM `T2`;
37
C1
38

39

40

41
SELECT * FROM `T3`;
42
C1
43

44

45

46
SELECT * FROM `T4`;
47
C1
48

49

50

51
SELECT * FROM `T5`;
52
C1
53

54

55

56
SELECT * FROM `T6`;
57
C1
58

59

60

61
SELECT * FROM `T7`;
62
C1
63

64

65

66
SELECT * FROM `T8`;
67
C1
68

69

70

71
SELECT * FROM `T9`;
72
C1
73

74

75

76
SHOW CREATE TABLE `T1`;
77
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
78
T1	CREATE TABLE `T1` (
79
  `C1` ENUM('ア','イ','ウ') DEFAULT NULL,
80
  KEY `C1` (`C1`)
81
) ENGINE=InnoDB COLLATE = utf8_general_ci
1 by brian
clean slate
82
SHOW CREATE TABLE `T2`;
83
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
84
T2	CREATE TABLE `T2` (
85
  `C1` ENUM('あ','い','う') DEFAULT NULL,
86
  KEY `C1` (`C1`)
87
) ENGINE=InnoDB COLLATE = utf8_general_ci
1 by brian
clean slate
88
SHOW CREATE TABLE `T3`;
89
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
90
T3	CREATE TABLE `T3` (
91
  `C1` ENUM('龔','龖','龗') DEFAULT NULL,
92
  KEY `C1` (`C1`)
93
) ENGINE=InnoDB COLLATE = utf8_general_ci
1 by brian
clean slate
94
SHOW CREATE TABLE `T4`;
95
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
96
T4	CREATE TEMPORARY TABLE `T4` (
97
  `C1` ENUM('ア','イ','ウ') DEFAULT NULL,
98
  KEY `C1` (`C1`)
99
) ENGINE=MyISAM COLLATE = utf8_general_ci
1 by brian
clean slate
100
SHOW CREATE TABLE `T5`;
101
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
102
T5	CREATE TEMPORARY TABLE `T5` (
103
  `C1` ENUM('あ','い','う') DEFAULT NULL,
104
  KEY `C1` (`C1`)
105
) ENGINE=MyISAM COLLATE = utf8_general_ci
1 by brian
clean slate
106
SHOW CREATE TABLE `T6`;
107
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
108
T6	CREATE TEMPORARY TABLE `T6` (
109
  `C1` ENUM('龔','龖','龗') DEFAULT NULL,
110
  KEY `C1` (`C1`)
111
) ENGINE=MyISAM COLLATE = utf8_general_ci
1 by brian
clean slate
112
SHOW CREATE TABLE `T7`;
113
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
114
T7	CREATE TEMPORARY TABLE `T7` (
115
  `C1` ENUM('ア','イ','ウ') DEFAULT NULL,
116
  KEY `C1` (`C1`)
117
) ENGINE=MEMORY COLLATE = utf8_general_ci
1 by brian
clean slate
118
SHOW CREATE TABLE `T8`;
119
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
120
T8	CREATE TEMPORARY TABLE `T8` (
121
  `C1` ENUM('あ','い','う') DEFAULT NULL,
122
  KEY `C1` (`C1`)
123
) ENGINE=MEMORY COLLATE = utf8_general_ci
1 by brian
clean slate
124
SHOW CREATE TABLE `T9`;
125
Table	Create Table
1937.4.1 by Andrew Hutchings
Make mixed case table names work again
126
T9	CREATE TEMPORARY TABLE `T9` (
127
  `C1` ENUM('龔','龖','龗') DEFAULT NULL,
128
  KEY `C1` (`C1`)
129
) ENGINE=MEMORY COLLATE = utf8_general_ci
1976.6.1 by Brian Aker
This is a fix for bug lp:686197
130
ALTER TABLE `T1` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
131
ALTER TABLE `T2` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
132
ALTER TABLE `T3` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
133
ALTER TABLE `T4` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
134
ALTER TABLE `T5` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
135
ALTER TABLE `T6` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
136
ALTER TABLE `T7` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
137
ALTER TABLE `T8` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
138
ALTER TABLE `T9` ADD `C2` CHAR(1) DEFAULT "Y" NOT NULL FIRST;
1 by brian
clean slate
139
DROP TABLE `T1`;
140
DROP TABLE `T2`;
141
DROP TABLE `T3`;
142
DROP TABLE `T4`;
143
DROP TABLE `T5`;
144
DROP TABLE `T6`;
145
DROP TABLE `T7`;
146
DROP TABLE `T8`;
147
DROP TABLE `T9`;