1
by brian
clean slate |
1 |
drop table if exists t1,t2,t3,t4,t5; |
2 |
drop database if exists mysqltest; |
|
3 |
create table t1 (b char(0)); |
|
4 |
insert into t1 values (""),(null); |
|
5 |
select * from t1; |
|
6 |
b
|
|
7 |
||
8 |
NULL
|
|
9 |
drop table if exists t1; |
|
10 |
create table t1 (b char(0) not null); |
|
11 |
create table if not exists t1 (b char(0) not null); |
|
12 |
Warnings: |
|
13 |
Note 1050 Table 't1' already exists |
|
14 |
insert into t1 values (""),(null); |
|
722.2.15
by Monty Taylor
Fixed create.test. |
15 |
ERROR 23000: Column 'b' cannot be null |
1
by brian
clean slate |
16 |
select * from t1; |
17 |
b
|
|
18 |
drop table t1; |
|
19 |
create table t1 (a int not null auto_increment,primary key (a)) engine=heap; |
|
20 |
drop table t1; |
|
21 |
create table t2 engine=heap select * from t1; |
|
22 |
ERROR 42S02: Table 'test.t1' doesn't exist |
|
23 |
create table t2 select auto+1 from t1;
|
|
24 |
ERROR 42S02: Table 'test.t1' doesn't exist |
|
25 |
drop table if exists t1,t2; |
|
26 |
Warnings: |
|
27 |
Note 1051 Unknown table 't1' |
|
28 |
Note 1051 Unknown table 't2' |
|
29 |
create table t1 (b char(0) not null, index(b)); |
|
30 |
ERROR 42000: The used storage engine can't index column 'b' |
|
31 |
create table t1 (a int not null,b text) engine=heap;
|
|
32 |
ERROR 42000: The used table type doesn't support BLOB/TEXT columns |
|
33 |
drop table if exists t1; |
|
34 |
Warnings: |
|
35 |
Note 1051 Unknown table 't1' |
|
722.2.15
by Monty Taylor
Fixed create.test. |
36 |
create table t1 (ordid int not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) engine=heap; |
1
by brian
clean slate |
37 |
ERROR 42000: Incorrect table definition; there can be only one auto column and it must be defined as a key |
38 |
create table not_existing_database.test (a int); |
|
39 |
ERROR 42000: Unknown database 'not_existing_database' |
|
40 |
create table `a/a` (a int); |
|
41 |
show create table `a/a`; |
|
42 |
Table Create Table |
|
43 |
a/a CREATE TABLE `a/a` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
44 |
`a` int DEFAULT NULL |
942.3.1
by Vladimir Kolesnikov
test generalizations |
45 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
46 |
create table t1 like `a/a`; |
47 |
drop table `a/a`; |
|
48 |
drop table `t1`; |
|
49 |
create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int); |
|
50 |
ERROR 42000: Incorrect table name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
|
51 |
create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int); |
|
52 |
ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long |
|
53 |
create table t1 (a datetime default now()); |
|
54 |
ERROR 42000: Invalid default value for 'a' |
|
55 |
create table t1 (a datetime on update now()); |
|
56 |
ERROR HY000: Invalid ON UPDATE clause for 'a' column |
|
57 |
create table t1 (a int default 100 auto_increment); |
|
58 |
ERROR 42000: Invalid default value for 'a' |
|
59 |
create table t1 (a varchar(5) default 'abcdef'); |
|
60 |
ERROR 42000: Invalid default value for 'a' |
|
61 |
create table t1 (a varchar(5) default 'abcde'); |
|
62 |
insert into t1 values(); |
|
63 |
select * from t1; |
|
64 |
a
|
|
65 |
abcde
|
|
66 |
alter table t1 alter column a set default 'abcdef'; |
|
67 |
ERROR 42000: Invalid default value for 'a' |
|
68 |
drop table t1; |
|
69 |
create table 1ea10 (1a20 int,1e int); |
|
70 |
insert into 1ea10 values(1,1); |
|
71 |
select 1ea10.1a20,1e+ 1e+10 from 1ea10; |
|
72 |
1a20 1e+ 1e+10 |
|
73 |
1 10000000001 |
|
74 |
drop table 1ea10; |
|
75 |
create table t1 (t1.index int); |
|
76 |
drop table t1; |
|
77 |
drop database if exists mysqltest; |
|
78 |
Warnings: |
|
79 |
Note 1008 Can't drop database 'mysqltest'; database doesn't exist |
|
80 |
create database mysqltest; |
|
81 |
create table mysqltest.$test1 (a$1 int, $b int, c$ int); |
|
82 |
insert into mysqltest.$test1 values (1,2,3); |
|
83 |
select a$1, $b, c$ from mysqltest.$test1; |
|
84 |
a$1 $b c$ |
|
85 |
1 2 3 |
|
86 |
create table mysqltest.test2$ (a int); |
|
87 |
drop table mysqltest.test2$; |
|
88 |
drop database mysqltest; |
|
89 |
create table `` (a int); |
|
90 |
ERROR 42000: Incorrect table name '' |
|
91 |
drop table if exists ``; |
|
92 |
ERROR 42000: Incorrect table name '' |
|
93 |
create table t1 (`` int); |
|
94 |
ERROR 42000: Incorrect column name '' |
|
95 |
create table t1 (i int, index `` (i)); |
|
96 |
ERROR 42000: Incorrect index name '' |
|
97 |
create table t1 (a int auto_increment not null primary key, B CHAR(20)); |
|
98 |
insert into t1 (b) values ("hello"),("my"),("world"); |
|
99 |
create table t2 (key (b)) select * from t1; |
|
100 |
explain select * from t2 where b="world"; |
|
101 |
id select_type table type possible_keys key key_len ref rows Extra |
|
722.2.15
by Monty Taylor
Fixed create.test. |
102 |
1 SIMPLE t2 ref B B 83 const 1 Using where |
1
by brian
clean slate |
103 |
select * from t2 where b="world"; |
104 |
a B |
|
105 |
3 world |
|
106 |
drop table t1,t2; |
|
107 |
create table t1(x varchar(50) ); |
|
108 |
create table t2 select x from t1 where 1=2; |
|
109 |
describe t1; |
|
110 |
Field Type Null Key Default Extra |
|
111 |
x varchar(50) YES NULL |
|
112 |
describe t2; |
|
113 |
Field Type Null Key Default Extra |
|
114 |
x varchar(50) YES NULL |
|
115 |
drop table t2; |
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
116 |
create table t2 select now() as a , curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f; |
1
by brian
clean slate |
117 |
describe t2; |
118 |
Field Type Null Key Default Extra |
|
722.2.15
by Monty Taylor
Fixed create.test. |
119 |
a datetime YES NULL |
907.1.5
by Jay Pipes
Fixed remaining test cases. TIMESTAMP with no default is NULL, DEFAULT NULL, not auto-set |
120 |
c date NO NULL |
121 |
d int NO NULL |
|
122 |
e decimal(3,1) NO NULL |
|
123 |
f bigint NO NULL |
|
1
by brian
clean slate |
124 |
drop table t2; |
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
125 |
create table t2 select CAST("2001-12-29" AS DATE) as d, CAST("2001-12-29 20:45:11" AS DATETIME) as dt; |
1
by brian
clean slate |
126 |
describe t2; |
127 |
Field Type Null Key Default Extra |
|
128 |
d date YES NULL |
|
129 |
dt datetime YES NULL |
|
130 |
drop table t1,t2; |
|
722.2.15
by Monty Taylor
Fixed create.test. |
131 |
create table t1 (a int); |
1
by brian
clean slate |
132 |
create table t2 (a int) select * from t1; |
133 |
describe t1; |
|
134 |
Field Type Null Key Default Extra |
|
722.2.15
by Monty Taylor
Fixed create.test. |
135 |
a int YES NULL |
1
by brian
clean slate |
136 |
describe t2; |
137 |
Field Type Null Key Default Extra |
|
722.2.15
by Monty Taylor
Fixed create.test. |
138 |
a int YES NULL |
1
by brian
clean slate |
139 |
drop table if exists t2; |
140 |
create table t2 (a int, a float) select * from t1; |
|
141 |
ERROR 42S21: Duplicate column name 'a' |
|
142 |
drop table if exists t2; |
|
143 |
Warnings: |
|
144 |
Note 1051 Unknown table 't2' |
|
145 |
create table t2 (a int) select a as b, a+1 as b from t1; |
|
146 |
ERROR 42S21: Duplicate column name 'b' |
|
147 |
drop table if exists t2; |
|
148 |
Warnings: |
|
149 |
Note 1051 Unknown table 't2' |
|
150 |
create table t2 (b int) select a as b, a+1 as b from t1; |
|
151 |
ERROR 42S21: Duplicate column name 'b' |
|
152 |
drop table if exists t1,t2; |
|
153 |
Warnings: |
|
154 |
Note 1051 Unknown table 't2' |
|
155 |
CREATE TABLE t1 (a int not null); |
|
156 |
INSERT INTO t1 values (1),(2),(1); |
|
157 |
CREATE TABLE t2 (primary key(a)) SELECT * FROM t1; |
|
158 |
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' |
|
159 |
SELECT * from t2; |
|
160 |
ERROR 42S02: Table 'test.t2' doesn't exist |
|
161 |
DROP TABLE t1;
|
|
162 |
DROP TABLE IF EXISTS t2;
|
|
163 |
Warnings:
|
|
164 |
Note 1051 Unknown table 't2' |
|
165 |
create table t1 (a int not null, b int, primary key(a), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b));
|
|
166 |
show create table t1;
|
|
167 |
Table Create Table
|
|
168 |
t1 CREATE TABLE `t1` (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
169 |
`a` int NOT NULL,
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
170 |
`b` int DEFAULT NULL,
|
1
by brian
clean slate |
171 |
PRIMARY KEY (`a`),
|
172 |
KEY `b` (`b`),
|
|
173 |
KEY `b_2` (`b`),
|
|
174 |
KEY `b_3` (`b`),
|
|
175 |
KEY `b_4` (`b`),
|
|
176 |
KEY `b_5` (`b`),
|
|
177 |
KEY `b_6` (`b`),
|
|
178 |
KEY `b_7` (`b`),
|
|
179 |
KEY `b_8` (`b`),
|
|
180 |
KEY `b_9` (`b`),
|
|
181 |
KEY `b_10` (`b`),
|
|
182 |
KEY `b_11` (`b`),
|
|
183 |
KEY `b_12` (`b`),
|
|
184 |
KEY `b_13` (`b`),
|
|
185 |
KEY `b_14` (`b`),
|
|
186 |
KEY `b_15` (`b`),
|
|
187 |
KEY `b_16` (`b`),
|
|
188 |
KEY `b_17` (`b`),
|
|
189 |
KEY `b_18` (`b`),
|
|
190 |
KEY `b_19` (`b`),
|
|
191 |
KEY `b_20` (`b`),
|
|
192 |
KEY `b_21` (`b`),
|
|
193 |
KEY `b_22` (`b`),
|
|
194 |
KEY `b_23` (`b`),
|
|
195 |
KEY `b_24` (`b`),
|
|
196 |
KEY `b_25` (`b`),
|
|
197 |
KEY `b_26` (`b`),
|
|
198 |
KEY `b_27` (`b`),
|
|
199 |
KEY `b_28` (`b`),
|
|
200 |
KEY `b_29` (`b`),
|
|
201 |
KEY `b_30` (`b`),
|
|
202 |
KEY `b_31` (`b`)
|
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
203 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
204 |
drop table t1;
|
205 |
create table t1 select if(1,'1','0'), month("2002-08-02"); |
|
206 |
drop table t1;
|
|
207 |
create table t1 select if('2002'='2002','Y','N'); |
|
208 |
select * from t1;
|
|
209 |
if('2002'='2002','Y','N') |
|
210 |
Y
|
|
211 |
drop table if exists t1;
|
|
212 |
SET SESSION storage_engine="heap";
|
|
213 |
SELECT @@storage_engine;
|
|
214 |
@@storage_engine
|
|
215 |
MEMORY
|
|
216 |
CREATE TABLE t1 (a int not null);
|
|
217 |
show create table t1;
|
|
218 |
Table Create Table
|
|
219 |
t1 CREATE TABLE `t1` (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
220 |
`a` int NOT NULL
|
221 |
) ENGINE=MEMORY
|
|
1
by brian
clean slate |
222 |
drop table t1;
|
223 |
SET SESSION storage_engine="gemini";
|
|
224 |
ERROR 42000: Unknown table engine 'gemini' |
|
225 |
SELECT @@storage_engine;
|
|
226 |
@@storage_engine
|
|
227 |
MEMORY
|
|
228 |
CREATE TABLE t1 (a int not null);
|
|
229 |
show create table t1;
|
|
230 |
Table Create Table
|
|
231 |
t1 CREATE TABLE `t1` (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
232 |
`a` int NOT NULL
|
233 |
) ENGINE=MEMORY
|
|
1
by brian
clean slate |
234 |
SET SESSION storage_engine=default;
|
235 |
drop table t1;
|
|
236 |
create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
|
|
237 |
insert into t1 values ("a", 1), ("b", 2);
|
|
238 |
insert into t1 values ("c", NULL);
|
|
239 |
ERROR 23000: Column 'k2' cannot be null |
|
240 |
insert into t1 values (NULL, 3);
|
|
241 |
ERROR 23000: Column 'k1' cannot be null |
|
242 |
insert into t1 values (NULL, NULL);
|
|
243 |
ERROR 23000: Column 'k1' cannot be null |
|
244 |
drop table t1;
|
|
245 |
create table t1 select x'4132'; |
|
246 |
drop table t1;
|
|
247 |
create table t1 select 1,2,3;
|
|
248 |
create table if not exists t1 select 1,2;
|
|
907.2.3
by Toru Maesaka
Updated the testcase and result file for bug:311046 fix |
249 |
ERROR HY000: Field '1' doesn't have a default value |
1
by brian
clean slate |
250 |
create table if not exists t1 select 1,2,3,4; |
907.2.3
by Toru Maesaka
Updated the testcase and result file for bug:311046 fix |
251 |
ERROR 21S01: Column count doesn't match value count at row 1 |
1
by brian
clean slate |
252 |
create table if not exists t1 select 1;
|
907.2.3
by Toru Maesaka
Updated the testcase and result file for bug:311046 fix |
253 |
ERROR HY000: Field '1' doesn't have a default value |
1
by brian
clean slate |
254 |
select * from t1; |
255 |
1 2 3 |
|
256 |
1 2 3 |
|
257 |
drop table t1; |
|
258 |
flush status; |
|
259 |
create table t1 (a int not null, b int, primary key (a)); |
|
260 |
insert into t1 values (1,1); |
|
261 |
select * from t1; |
|
262 |
a b |
|
263 |
1 1 |
|
264 |
create table if not exists t1 select 3 as 'a',4 as 'b'; |
|
265 |
Warnings: |
|
266 |
Note 1050 Table 't1' already exists |
|
267 |
create table if not exists t1 select 3 as 'a',3 as 'b'; |
|
268 |
ERROR 23000: Duplicate entry '3' for key 'PRIMARY' |
|
269 |
show warnings; |
|
270 |
Level Code Message |
|
271 |
Note 1050 Table 't1' already exists |
|
272 |
Error 1062 Duplicate entry '3' for key 'PRIMARY' |
|
273 |
show status like "Opened_tables"; |
|
274 |
Variable_name Value |
|
275 |
Opened_tables 2 |
|
276 |
select * from t1; |
|
277 |
a b |
|
278 |
1 1 |
|
279 |
3 4 |
|
280 |
drop table t1; |
|
281 |
create table `t1 `(a int); |
|
282 |
ERROR 42000: Incorrect table name 't1 ' |
|
283 |
create database `db1 `; |
|
284 |
ERROR 42000: Incorrect database name 'db1 ' |
|
285 |
create table t1(`a ` int); |
|
286 |
ERROR 42000: Incorrect column name 'a ' |
|
287 |
create table t1 (a int,); |
|
722.2.15
by Monty Taylor
Fixed create.test. |
288 |
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near ')' at line 1 |
1
by brian
clean slate |
289 |
create table t1 (a int,,b int); |
722.2.15
by Monty Taylor
Fixed create.test. |
290 |
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'b int)' at line 1 |
1
by brian
clean slate |
291 |
create table t1 (,b int); |
722.2.15
by Monty Taylor
Fixed create.test. |
292 |
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'b int)' at line 1 |
1
by brian
clean slate |
293 |
create table t1 (a int, key(a)); |
294 |
create table t2 (b int, foreign key(b) references t1(a), key(b)); |
|
295 |
drop table if exists t1,t2; |
|
722.2.15
by Monty Taylor
Fixed create.test. |
296 |
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails |
297 |
drop table if exists t2,t1; |
|
298 |
Warnings: |
|
299 |
Note 1051 Unknown table 't2' |
|
1
by brian
clean slate |
300 |
create table t1(id int not null, name char(20)); |
301 |
insert into t1 values(10,'mysql'),(20,'monty- the creator'); |
|
302 |
create table t2(id int not null); |
|
303 |
insert into t2 values(10),(20); |
|
304 |
create table t3 like t1; |
|
305 |
show create table t3; |
|
306 |
Table Create Table |
|
307 |
t3 CREATE TABLE `t3` ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
308 |
`id` int NOT NULL, |
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
309 |
`name` varchar(20) DEFAULT NULL |
942.3.1
by Vladimir Kolesnikov
test generalizations |
310 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
311 |
select * from t3; |
312 |
id name |
|
313 |
create table if not exists t3 like t1; |
|
314 |
Warnings: |
|
315 |
Note 1050 Table 't3' already exists |
|
316 |
select @@warning_count; |
|
317 |
@@warning_count |
|
318 |
1
|
|
319 |
create temporary table t3 like t2; |
|
320 |
show create table t3; |
|
321 |
Table Create Table |
|
322 |
t3 CREATE TEMPORARY TABLE `t3` ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
323 |
`id` int NOT NULL |
942.3.1
by Vladimir Kolesnikov
test generalizations |
324 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
325 |
select * from t3; |
326 |
id
|
|
327 |
drop table t3; |
|
328 |
show create table t3; |
|
329 |
Table Create Table |
|
330 |
t3 CREATE TABLE `t3` ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
331 |
`id` int NOT NULL, |
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
332 |
`name` varchar(20) DEFAULT NULL |
942.3.1
by Vladimir Kolesnikov
test generalizations |
333 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
334 |
select * from t3; |
335 |
id name |
|
336 |
drop table t2, t3; |
|
337 |
create database mysqltest; |
|
338 |
create table mysqltest.t3 like t1; |
|
339 |
create temporary table t3 like mysqltest.t3; |
|
340 |
show create table t3; |
|
341 |
Table Create Table |
|
342 |
t3 CREATE TEMPORARY TABLE `t3` ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
343 |
`id` int NOT NULL, |
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
344 |
`name` varchar(20) DEFAULT NULL |
942.3.1
by Vladimir Kolesnikov
test generalizations |
345 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
346 |
create table t2 like t3; |
347 |
show create table t2; |
|
348 |
Table Create Table |
|
349 |
t2 CREATE TABLE `t2` ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
350 |
`id` int NOT NULL, |
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
351 |
`name` varchar(20) DEFAULT NULL |
942.3.1
by Vladimir Kolesnikov
test generalizations |
352 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
353 |
select * from t2; |
354 |
id name |
|
355 |
create table t3 like t1; |
|
356 |
create table t3 like mysqltest.t3; |
|
357 |
ERROR 42S01: Table 't3' already exists |
|
358 |
create table non_existing_database.t1 like t1; |
|
359 |
ERROR 42000: Unknown database 'non_existing_database' |
|
360 |
create table t3 like non_existing_table; |
|
361 |
ERROR 42S02: Table 'test.non_existing_table' doesn't exist |
|
362 |
create temporary table t3 like t1;
|
|
363 |
ERROR 42S01: Table 't3' already exists |
|
364 |
drop table t1, t2, t3;
|
|
365 |
drop table t3;
|
|
366 |
drop database mysqltest;
|
|
367 |
SET SESSION storage_engine="heap";
|
|
368 |
SELECT @@storage_engine;
|
|
369 |
@@storage_engine
|
|
370 |
MEMORY
|
|
371 |
CREATE TABLE t1 (a int not null);
|
|
372 |
show create table t1;
|
|
373 |
Table Create Table
|
|
374 |
t1 CREATE TABLE `t1` (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
375 |
`a` int NOT NULL
|
376 |
) ENGINE=MEMORY
|
|
1
by brian
clean slate |
377 |
drop table t1;
|
378 |
SET SESSION storage_engine="gemini";
|
|
379 |
ERROR 42000: Unknown table engine 'gemini' |
|
380 |
SELECT @@storage_engine;
|
|
381 |
@@storage_engine
|
|
382 |
MEMORY
|
|
383 |
CREATE TABLE t1 (a int not null);
|
|
384 |
show create table t1;
|
|
385 |
Table Create Table
|
|
386 |
t1 CREATE TABLE `t1` (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
387 |
`a` int NOT NULL
|
388 |
) ENGINE=MEMORY
|
|
1
by brian
clean slate |
389 |
SET SESSION storage_engine=default;
|
390 |
drop table t1;
|
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
391 |
create table t1(a int,b int,c int,d date,e char,f datetime,h blob);
|
1
by brian
clean slate |
392 |
insert into t1(a)values(1);
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
393 |
insert into t1(a,b,c,d,e,f,h)
|
394 |
values(2,-2,2,'1825-12-14','a','2003-01-01 03:02:01','binary data'); |
|
1
by brian
clean slate |
395 |
select * from t1;
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
396 |
a b c d e f h
|
397 |
1 NULL NULL NULL NULL NULL NULL
|
|
398 |
2 -2 2 1825-12-14 a 2003-01-01 03:02:01 binary data
|
|
1
by brian
clean slate |
399 |
select a,
|
722.2.15
by Monty Taylor
Fixed create.test. |
400 |
ifnull(b,-7) as b,
|
401 |
ifnull(c,7) as c,
|
|
1
by brian
clean slate |
402 |
ifnull(d,cast('2000-01-01' as date)) as d, |
403 |
ifnull(e,cast('b' as char)) as e, |
|
404 |
ifnull(f,cast('2000-01-01' as datetime)) as f, |
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
405 |
ifnull(h,cast('yet another binary data' as binary)) as h |
1
by brian
clean slate |
406 |
from t1;
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
407 |
a b c d e f h
|
408 |
1 -7 7 2000-01-01 b 2000-01-01 00:00:00 yet another binary data
|
|
409 |
2 -2 2 1825-12-14 a 2003-01-01 03:02:01 binary data
|
|
1
by brian
clean slate |
410 |
create table t2
|
411 |
select
|
|
412 |
a,
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
413 |
ifnull(b,-7) as b,
|
414 |
ifnull(c,7) as c,
|
|
1
by brian
clean slate |
415 |
ifnull(d,cast('2000-01-01' as date)) as d, |
416 |
ifnull(e,cast('b' as char)) as e, |
|
417 |
ifnull(f,cast('2000-01-01' as datetime)) as f, |
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
418 |
ifnull(h,cast('yet another binary data' as binary)) as h |
1
by brian
clean slate |
419 |
from t1;
|
420 |
explain t2;
|
|
421 |
Field Type Null Key Default Extra
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
422 |
a int YES NULL
|
896.3.6
by Stewart Smith
Read Fields out of proto instead of FRM. |
423 |
b bigint NO NULL
|
424 |
c bigint NO NULL
|
|
1
by brian
clean slate |
425 |
d date YES NULL
|
722.2.15
by Monty Taylor
Fixed create.test. |
426 |
e varchar(1) YES NULL
|
1
by brian
clean slate |
427 |
f datetime YES NULL
|
722.2.15
by Monty Taylor
Fixed create.test. |
428 |
h blob YES NULL
|
1
by brian
clean slate |
429 |
select * from t2;
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
430 |
a b c d e f h
|
431 |
1 -7 7 2000-01-01 b 2000-01-01 00:00:00 yet another binary data
|
|
432 |
2 -2 2 1825-12-14 a 2003-01-01 03:02:01 binary data
|
|
1
by brian
clean slate |
433 |
drop table t1, t2;
|
722.2.15
by Monty Taylor
Fixed create.test. |
434 |
create table t1 (a int, b int, d int, e bigint, f float(3,2), g double(4,3), h decimal(5,4), j date, k timestamp, l datetime, m enum('a','b'), o char(10)); |
435 |
create table t2 select ifnull(a,a), ifnull(b,b), ifnull(d,d), ifnull(e,e), ifnull(f,f), ifnull(g,g), ifnull(h,h), ifnull(j,j), ifnull(k,k), ifnull(l,l), ifnull(m,m), ifnull(o,o) from t1;
|
|
1
by brian
clean slate |
436 |
show create table t2;
|
437 |
Table Create Table
|
|
438 |
t2 CREATE TABLE `t2` (
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
439 |
`ifnull(a,a)` int DEFAULT NULL,
|
440 |
`ifnull(b,b)` int DEFAULT NULL,
|
|
441 |
`ifnull(d,d)` int DEFAULT NULL,
|
|
442 |
`ifnull(e,e)` bigint DEFAULT NULL,
|
|
443 |
`ifnull(f,f)` double(3,2) DEFAULT NULL,
|
|
444 |
`ifnull(g,g)` double(4,3) DEFAULT NULL,
|
|
445 |
`ifnull(h,h)` decimal(5,4) DEFAULT NULL,
|
|
446 |
`ifnull(j,j)` date DEFAULT NULL,
|
|
896.5.1
by Jay Pipes
Removes the TIME column type and related time functions. |
447 |
`ifnull(k,k)` timestamp NULL DEFAULT NULL,
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
448 |
`ifnull(l,l)` datetime DEFAULT NULL,
|
449 |
`ifnull(m,m)` varchar(1) DEFAULT NULL,
|
|
450 |
`ifnull(o,o)` varchar(10) DEFAULT NULL
|
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
451 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
452 |
drop table t1,t2;
|
453 |
create table t1(str varchar(10) default 'def',strnull varchar(10),intg int default '10',rel double default '3.14'); |
|
454 |
insert into t1 values ('','',0,0.0);
|
|
455 |
describe t1;
|
|
456 |
Field Type Null Key Default Extra
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
457 |
str varchar(10) YES def
|
1
by brian
clean slate |
458 |
strnull varchar(10) YES NULL
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
459 |
intg int YES 10
|
460 |
rel double YES 3.14
|
|
1
by brian
clean slate |
461 |
create table t2 select default(str) as str, default(strnull) as strnull, default(intg) as intg, default(rel) as rel from t1;
|
462 |
describe t2;
|
|
463 |
Field Type Null Key Default Extra
|
|
464 |
str varchar(10) YES NULL
|
|
465 |
strnull varchar(10) YES NULL
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
466 |
intg int YES NULL
|
1
by brian
clean slate |
467 |
rel double YES NULL
|
468 |
drop table t1, t2;
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
469 |
create table t1(name varchar(10), age int default -1);
|
1
by brian
clean slate |
470 |
describe t1;
|
471 |
Field Type Null Key Default Extra
|
|
472 |
name varchar(10) YES NULL
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
473 |
age int YES -1
|
722.2.15
by Monty Taylor
Fixed create.test. |
474 |
create table t2(name varchar(10), age int default - 1);
|
1
by brian
clean slate |
475 |
describe t2;
|
476 |
Field Type Null Key Default Extra
|
|
477 |
name varchar(10) YES NULL
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
478 |
age int YES -1
|
1
by brian
clean slate |
479 |
drop table t1, t2;
|
722.2.15
by Monty Taylor
Fixed create.test. |
480 |
create table t1(cenum enum('a')); |
481 |
create table t2(cenum enum('a','a')); |
|
482 |
ERROR HY000: Column 'cenum' has duplicated value 'a' in ENUM |
|
483 |
create table t3(cenum enum('a','A','a','c','c')); |
|
484 |
ERROR HY000: Column 'cenum' has duplicated value 'a' in ENUM |
|
485 |
drop table t1;
|
|
1
by brian
clean slate |
486 |
create database mysqltest;
|
487 |
use mysqltest;
|
|
488 |
select database();
|
|
489 |
database()
|
|
490 |
mysqltest
|
|
491 |
drop database mysqltest;
|
|
492 |
select database();
|
|
493 |
database()
|
|
494 |
NULL
|
|
495 |
use test;
|
|
496 |
CREATE TABLE t1(id varchar(10) NOT NULL PRIMARY KEY, dsc longtext);
|
|
497 |
INSERT INTO t1 VALUES ('5000000001', NULL),('5000000003', 'Test'),('5000000004', NULL); |
|
498 |
CREATE TABLE t2(id varchar(15) NOT NULL, proc varchar(100) NOT NULL, runID varchar(16) NOT NULL, start datetime NOT NULL, PRIMARY KEY (id,proc,runID,start));
|
|
499 |
INSERT INTO t2 VALUES ('5000000001', 'proc01', '20031029090650', '2003-10-29 13:38:40'),('5000000001', 'proc02', '20031029090650', '2003-10-29 13:38:51'),('5000000001', 'proc03', '20031029090650', '2003-10-29 13:38:11'),('5000000002', 'proc09', '20031024013310', '2003-10-24 01:33:11'),('5000000002', 'proc09', '20031024153537', '2003-10-24 15:36:04'),('5000000004', 'proc01', '20031024013641', '2003-10-24 01:37:29'),('5000000004', 'proc02', '20031024013641', '2003-10-24 01:37:39'); |
|
500 |
CREATE TABLE t3 SELECT t1.dsc,COUNT(DISTINCT t2.id) AS countOfRuns FROM t1 LEFT JOIN t2 ON (t1.id=t2.id) GROUP BY t1.id;
|
|
501 |
SELECT * FROM t3;
|
|
502 |
dsc countOfRuns
|
|
503 |
NULL 1
|
|
504 |
Test 0
|
|
505 |
NULL 1
|
|
506 |
drop table t1, t2, t3;
|
|
507 |
create table t1 (a int);
|
|
508 |
create table t1 select * from t1;
|
|
907.2.3
by Toru Maesaka
Updated the testcase and result file for bug:311046 fix |
509 |
ERROR HY000: You can't specify target table 't1' for update in FROM clause |
1
by brian
clean slate |
510 |
flush tables with read lock; |
511 |
unlock tables; |
|
512 |
drop table t1; |
|
513 |
create table t1(column.name int); |
|
514 |
ERROR 42000: Incorrect table name 'column' |
|
515 |
create table t1(test.column.name int); |
|
516 |
ERROR 42000: Incorrect table name 'column' |
|
517 |
create table t1(xyz.t1.name int); |
|
518 |
ERROR 42000: Incorrect database name 'xyz' |
|
519 |
create table t1(t1.name int); |
|
520 |
create table t2(test.t2.name int); |
|
521 |
drop table t1,t2; |
|
722.2.15
by Monty Taylor
Fixed create.test. |
522 |
CREATE TABLE t1 (f1 VARCHAR(255)); |
1
by brian
clean slate |
523 |
CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) AS f2 FROM t1; |
524 |
DESC t2; |
|
525 |
Field Type Null Key Default Extra |
|
526 |
f2 varchar(171) YES NULL |
|
527 |
DROP TABLE t1,t2; |
|
528 |
CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1; |
|
529 |
SELECT * FROM t12913; |
|
530 |
f1
|
|
531 |
a
|
|
532 |
DROP TABLE t12913; |
|
533 |
create database mysqltest; |
|
534 |
use mysqltest; |
|
535 |
drop database mysqltest; |
|
536 |
create table test.t1 like x; |
|
537 |
ERROR 3D000: No database selected |
|
538 |
drop table if exists test.t1; |
|
539 |
create database mysqltest; |
|
722.2.15
by Monty Taylor
Fixed create.test. |
540 |
create database if not exists mysqltest; |
1
by brian
clean slate |
541 |
Warnings: |
542 |
Note 1007 Can't create database 'mysqltest'; database exists |
|
543 |
show create database mysqltest;
|
|
544 |
Database Create Database
|
|
758.2.4
by Andrew Hutchings
Fix tests for modified code |
545 |
mysqltest CREATE DATABASE `mysqltest`
|
1
by brian
clean slate |
546 |
drop database mysqltest;
|
547 |
use test;
|
|
548 |
create table t1 (a int);
|
|
549 |
create table if not exists t1 (a int);
|
|
550 |
Warnings:
|
|
551 |
Note 1050 Table 't1' already exists |
|
552 |
drop table t1;
|
|
553 |
create table t1 (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
554 |
a varchar(112) collate utf8_bin not null,
|
1
by brian
clean slate |
555 |
primary key (a)
|
556 |
) select 'test' as a ; |
|
557 |
show create table t1;
|
|
558 |
Table Create Table
|
|
559 |
t1 CREATE TABLE `t1` (
|
|
560 |
`a` varchar(112) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
|
561 |
PRIMARY KEY (`a`)
|
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
562 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
563 |
drop table t1;
|
564 |
CREATE TABLE t2 (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
565 |
a int default NULL
|
1
by brian
clean slate |
566 |
);
|
567 |
insert into t2 values(111);
|
|
568 |
create table t1 (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
569 |
a varchar(12) collate utf8_bin not null,
|
1
by brian
clean slate |
570 |
b int not null, primary key (a)
|
571 |
) select a, 1 as b from t2 ;
|
|
572 |
show create table t1;
|
|
573 |
Table Create Table
|
|
574 |
t1 CREATE TABLE `t1` (
|
|
575 |
`a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
576 |
`b` int NOT NULL,
|
1
by brian
clean slate |
577 |
PRIMARY KEY (`a`)
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
578 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
579 |
drop table t1;
|
580 |
create table t1 (
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
581 |
a varchar(12) collate utf8_bin not null,
|
1
by brian
clean slate |
582 |
b int not null, primary key (a)
|
583 |
) select a, 1 as c from t2 ;
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
584 |
ERROR HY000: Field 'b' doesn't have a default value |
1
by brian
clean slate |
585 |
create table t1 ( |
722.2.15
by Monty Taylor
Fixed create.test. |
586 |
a varchar(12) collate utf8_bin not null, |
1
by brian
clean slate |
587 |
b int null, primary key (a) |
588 |
) select a, 1 as c from t2 ; |
|
589 |
show create table t1; |
|
590 |
Table Create Table |
|
591 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
592 |
`b` int DEFAULT NULL, |
722.2.15
by Monty Taylor
Fixed create.test. |
593 |
`a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, |
896.3.6
by Stewart Smith
Read Fields out of proto instead of FRM. |
594 |
`c` int NOT NULL, |
722.2.15
by Monty Taylor
Fixed create.test. |
595 |
PRIMARY KEY (`a`) |
942.3.1
by Vladimir Kolesnikov
test generalizations |
596 |
) ENGINE=DEFAULT |
722.2.15
by Monty Taylor
Fixed create.test. |
597 |
drop table t1; |
598 |
create table t1 ( |
|
599 |
a varchar(12) collate utf8_bin not null, |
|
600 |
b int not null, primary key (a) |
|
601 |
) select 'a' as a , 1 as b from t2 ; |
|
602 |
show create table t1; |
|
603 |
Table Create Table |
|
604 |
t1 CREATE TABLE `t1` ( |
|
605 |
`a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, |
|
606 |
`b` int NOT NULL, |
|
607 |
PRIMARY KEY (`a`) |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
608 |
) ENGINE=DEFAULT |
722.2.15
by Monty Taylor
Fixed create.test. |
609 |
drop table t1; |
610 |
create table t1 ( |
|
611 |
a varchar(12) collate utf8_bin, |
|
612 |
b int not null, primary key (a) |
|
613 |
) select 'a' as a , 1 as b from t2 ; |
|
614 |
show create table t1; |
|
615 |
Table Create Table |
|
616 |
t1 CREATE TABLE `t1` ( |
|
896.3.6
by Stewart Smith
Read Fields out of proto instead of FRM. |
617 |
`a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, |
722.2.15
by Monty Taylor
Fixed create.test. |
618 |
`b` int NOT NULL, |
619 |
PRIMARY KEY (`a`) |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
620 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
621 |
drop table t1, t2; |
622 |
create table t1 ( |
|
623 |
a1 int not null, |
|
624 |
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int |
|
625 |
);
|
|
626 |
insert into t1 values (1,1,1, 1,1,1, 1,1,1); |
|
627 |
create table t2 ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
628 |
a1 varchar(12) collate utf8_bin not null, |
1
by brian
clean slate |
629 |
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int, |
630 |
primary key (a1) |
|
631 |
) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1 ; |
|
632 |
drop table t2; |
|
633 |
create table t2 ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
634 |
a1 varchar(12) collate utf8_bin, |
1
by brian
clean slate |
635 |
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int |
636 |
) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1; |
|
637 |
drop table t1, t2; |
|
638 |
create table t1 ( |
|
639 |
a1 int, a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int |
|
640 |
);
|
|
641 |
insert into t1 values (1,1,1, 1,1,1, 1,1,1); |
|
642 |
create table t2 ( |
|
722.2.15
by Monty Taylor
Fixed create.test. |
643 |
a1 varchar(12) collate utf8_bin not null, |
1
by brian
clean slate |
644 |
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int, |
645 |
primary key (a1) |
|
646 |
) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1 ; |
|
647 |
drop table t2; |
|
648 |
create table t2 ( a int default 3, b int default 3) |
|
649 |
select a1,a2 from t1; |
|
650 |
show create table t2; |
|
651 |
Table Create Table |
|
652 |
t2 CREATE TABLE `t2` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
653 |
`a` int DEFAULT '3', |
654 |
`b` int DEFAULT '3', |
|
655 |
`a1` int DEFAULT NULL, |
|
656 |
`a2` int DEFAULT NULL |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
657 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
658 |
drop table t1, t2; |
659 |
create table t1 (i int) engine=myisam max_rows=100000000000; |
|
660 |
show create table t1; |
|
661 |
Table Create Table |
|
662 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
663 |
`i` int DEFAULT NULL |
896.4.9
by Stewart Smith
No longer write the FRM. just use proto. |
664 |
) ENGINE=MyISAM MAX_ROWS=100000000000 |
1
by brian
clean slate |
665 |
alter table t1 max_rows=100; |
666 |
show create table t1; |
|
667 |
Table Create Table |
|
668 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
669 |
`i` int DEFAULT NULL |
722.2.15
by Monty Taylor
Fixed create.test. |
670 |
) ENGINE=MyISAM MAX_ROWS=100 |
1
by brian
clean slate |
671 |
alter table t1 max_rows=100000000000; |
672 |
show create table t1; |
|
673 |
Table Create Table |
|
674 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
675 |
`i` int DEFAULT NULL |
896.4.9
by Stewart Smith
No longer write the FRM. just use proto. |
676 |
) ENGINE=MyISAM MAX_ROWS=100000000000 |
1
by brian
clean slate |
677 |
drop table t1; |
678 |
create table t1 select * from t2; |
|
679 |
ERROR 42S02: Table 'test.t2' doesn't exist |
|
680 |
create table t1 select * from t1;
|
|
681 |
ERROR HY000: You can't specify target table 't1' for update in FROM clause |
|
722.2.15
by Monty Taylor
Fixed create.test. |
682 |
create table t1 select coalesce('a' collate utf8_swedish_ci,'b' collate utf8_bin); |
683 |
ERROR HY000: Illegal mix of collations (utf8_swedish_ci,EXPLICIT) and (utf8_bin,EXPLICIT) for operation 'coalesce' |
|
1
by brian
clean slate |
684 |
create table t1 (primary key(a)) select "b" as b; |
685 |
ERROR 42000: Key column 'a' doesn't exist in table |
|
686 |
create table t1 (primary key (a)) (select 1 as a) union all (select 1 as a);
|
|
687 |
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' |
|
688 |
create table t1 (i int);
|
|
689 |
create table if not exists t1 select 1 as i;
|
|
907.2.3
by Toru Maesaka
Updated the testcase and result file for bug:311046 fix |
690 |
Warnings:
|
691 |
Note 1050 Table 't1' already exists |
|
722.2.15
by Monty Taylor
Fixed create.test. |
692 |
select * from t1;
|
693 |
i
|
|
907.2.3
by Toru Maesaka
Updated the testcase and result file for bug:311046 fix |
694 |
1
|
1
by brian
clean slate |
695 |
drop table t1;
|
722.2.15
by Monty Taylor
Fixed create.test. |
696 |
create table t1 select coalesce('a' collate utf8_swedish_ci,'b' collate utf8_bin); |
697 |
ERROR HY000: Illegal mix of collations (utf8_swedish_ci,EXPLICIT) and (utf8_bin,EXPLICIT) for operation 'coalesce' |
|
1
by brian
clean slate |
698 |
create temporary table t1 (j int);
|
699 |
create table if not exists t1 select 1;
|
|
700 |
Warnings:
|
|
701 |
Note 1050 Table 't1' already exists |
|
702 |
select * from t1;
|
|
703 |
j
|
|
704 |
1
|
|
705 |
drop temporary table t1;
|
|
706 |
select * from t1;
|
|
707 |
ERROR 42S02: Table 'test.t1' doesn't exist |
|
708 |
drop table t1; |
|
709 |
ERROR 42S02: Unknown table 't1' |
|
710 |
create table t1 (i int); |
|
711 |
insert into t1 values (1), (2); |
|
712 |
lock tables t1 read; |
|
713 |
create table t2 select * from t1; |
|
714 |
ERROR HY000: Table 't2' was not locked with LOCK TABLES |
|
715 |
create table if not exists t2 select * from t1; |
|
716 |
ERROR HY000: Table 't2' was not locked with LOCK TABLES |
|
717 |
unlock tables; |
|
718 |
create table t2 (j int); |
|
719 |
lock tables t1 read; |
|
720 |
create table t2 select * from t1; |
|
721 |
ERROR HY000: Table 't2' was not locked with LOCK TABLES |
|
722 |
create table if not exists t2 select * from t1; |
|
723 |
ERROR HY000: Table 't2' was not locked with LOCK TABLES |
|
724 |
unlock tables; |
|
725 |
lock table t1 read, t2 read; |
|
726 |
create table t2 select * from t1; |
|
727 |
ERROR HY000: Table 't2' was locked with a READ lock and can't be updated |
|
728 |
create table if not exists t2 select * from t1;
|
|
729 |
ERROR HY000: Table 't2' was locked with a READ lock and can't be updated |
|
730 |
unlock tables; |
|
731 |
lock table t1 read, t2 write; |
|
732 |
create table t2 select * from t1; |
|
733 |
ERROR 42S01: Table 't2' already exists |
|
734 |
create table if not exists t2 select * from t1; |
|
735 |
Warnings: |
|
736 |
Note 1050 Table 't2' already exists |
|
737 |
select * from t1; |
|
738 |
i
|
|
739 |
1
|
|
740 |
2
|
|
741 |
unlock tables; |
|
742 |
drop table t2; |
|
743 |
lock tables t1 read; |
|
744 |
create temporary table t2 select * from t1; |
|
745 |
create temporary table if not exists t2 select * from t1; |
|
746 |
Warnings: |
|
747 |
Note 1050 Table 't2' already exists |
|
748 |
select * from t2; |
|
749 |
i
|
|
750 |
1
|
|
751 |
2
|
|
752 |
1
|
|
753 |
2
|
|
754 |
unlock tables; |
|
755 |
drop table t1, t2; |
|
756 |
create table t1 (upgrade int); |
|
757 |
drop table t1; |
|
758 |
create table t1 ( |
|
759 |
c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, c8 int, |
|
760 |
c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int, |
|
761 |
key a001_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
762 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
763 |
key a002_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
764 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
765 |
key a003_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
766 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
767 |
key a004_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
768 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
769 |
key a005_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
770 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
771 |
key a006_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
772 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
773 |
key a007_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
774 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
775 |
key a008_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
776 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
777 |
key a009_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
778 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
779 |
key a010_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
780 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
781 |
key a011_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
782 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
783 |
key a012_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
784 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
785 |
key a013_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
786 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
787 |
key a014_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
788 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
789 |
key a015_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
790 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
791 |
key a016_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
792 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
793 |
key a017_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
794 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
795 |
key a018_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
796 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
797 |
key a019_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
798 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
799 |
key a020_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
800 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
801 |
key a021_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
802 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
803 |
key a022_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
804 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
805 |
key a023_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
806 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
807 |
key a024_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
808 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
809 |
key a025_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
810 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
811 |
key a026_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
812 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
813 |
key a027_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
814 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
815 |
key a028_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
816 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
817 |
key a029_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
818 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
819 |
key a030_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
820 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
821 |
key a031_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
822 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
823 |
key a032_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
824 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
825 |
key a033_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
826 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
827 |
key a034_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
828 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
829 |
key a035_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
830 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
831 |
key a036_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
832 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
833 |
key a037_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
834 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
835 |
key a038_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
836 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
837 |
key a039_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
838 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
839 |
key a040_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
840 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
841 |
key a041_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
842 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
843 |
key a042_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
844 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
845 |
key a043_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
846 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
847 |
key a044_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
848 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
849 |
key a045_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
850 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
851 |
key a046_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
852 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
853 |
key a047_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
854 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
855 |
key a048_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
856 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
857 |
key a049_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
858 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
859 |
key a050_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
860 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
861 |
key a051_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
862 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
863 |
key a052_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
864 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
865 |
key a053_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
866 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
867 |
key a054_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
868 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
869 |
key a055_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
870 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
871 |
key a056_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
872 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
873 |
key a057_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
874 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
875 |
key a058_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
876 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
877 |
key a059_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
878 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
879 |
key a060_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
880 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
881 |
key a061_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
882 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
883 |
key a062_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
884 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
885 |
key a063_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
886 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
887 |
key a064_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
888 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16) |
|
889 |
);
|
|
890 |
show create table t1; |
|
891 |
Table Create Table |
|
892 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
893 |
`c1` int DEFAULT NULL, |
894 |
`c2` int DEFAULT NULL, |
|
895 |
`c3` int DEFAULT NULL, |
|
896 |
`c4` int DEFAULT NULL, |
|
897 |
`c5` int DEFAULT NULL, |
|
898 |
`c6` int DEFAULT NULL, |
|
899 |
`c7` int DEFAULT NULL, |
|
900 |
`c8` int DEFAULT NULL, |
|
901 |
`c9` int DEFAULT NULL, |
|
902 |
`c10` int DEFAULT NULL, |
|
903 |
`c11` int DEFAULT NULL, |
|
904 |
`c12` int DEFAULT NULL, |
|
905 |
`c13` int DEFAULT NULL, |
|
906 |
`c14` int DEFAULT NULL, |
|
907 |
`c15` int DEFAULT NULL, |
|
908 |
`c16` int DEFAULT NULL, |
|
1
by brian
clean slate |
909 |
KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
910 |
KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
911 |
KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
912 |
KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
913 |
KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
914 |
KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
915 |
KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
916 |
KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
917 |
KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
918 |
KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
919 |
KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
920 |
KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
921 |
KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
922 |
KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
923 |
KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
924 |
KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
925 |
KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
926 |
KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
927 |
KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
928 |
KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
929 |
KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
930 |
KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
931 |
KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
932 |
KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
933 |
KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
934 |
KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
935 |
KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
936 |
KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
937 |
KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
938 |
KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
939 |
KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
940 |
KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
941 |
KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
942 |
KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
943 |
KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
944 |
KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
945 |
KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
946 |
KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
947 |
KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
948 |
KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
949 |
KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
950 |
KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
951 |
KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
952 |
KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
953 |
KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
954 |
KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
955 |
KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
956 |
KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
957 |
KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
958 |
KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
959 |
KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
960 |
KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
961 |
KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
962 |
KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
963 |
KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
964 |
KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
965 |
KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
966 |
KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
967 |
KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
968 |
KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
969 |
KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
970 |
KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
971 |
KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
972 |
KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`) |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
973 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
974 |
flush tables; |
975 |
show create table t1; |
|
976 |
Table Create Table |
|
977 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
978 |
`c1` int DEFAULT NULL, |
979 |
`c2` int DEFAULT NULL, |
|
980 |
`c3` int DEFAULT NULL, |
|
981 |
`c4` int DEFAULT NULL, |
|
982 |
`c5` int DEFAULT NULL, |
|
983 |
`c6` int DEFAULT NULL, |
|
984 |
`c7` int DEFAULT NULL, |
|
985 |
`c8` int DEFAULT NULL, |
|
986 |
`c9` int DEFAULT NULL, |
|
987 |
`c10` int DEFAULT NULL, |
|
988 |
`c11` int DEFAULT NULL, |
|
989 |
`c12` int DEFAULT NULL, |
|
990 |
`c13` int DEFAULT NULL, |
|
991 |
`c14` int DEFAULT NULL, |
|
992 |
`c15` int DEFAULT NULL, |
|
993 |
`c16` int DEFAULT NULL, |
|
1
by brian
clean slate |
994 |
KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
995 |
KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
996 |
KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
997 |
KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
998 |
KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
999 |
KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1000 |
KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1001 |
KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1002 |
KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1003 |
KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1004 |
KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1005 |
KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1006 |
KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1007 |
KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1008 |
KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1009 |
KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1010 |
KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1011 |
KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1012 |
KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1013 |
KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1014 |
KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1015 |
KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1016 |
KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1017 |
KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1018 |
KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1019 |
KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1020 |
KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1021 |
KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1022 |
KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1023 |
KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1024 |
KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1025 |
KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1026 |
KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1027 |
KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1028 |
KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1029 |
KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1030 |
KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1031 |
KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1032 |
KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1033 |
KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1034 |
KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1035 |
KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1036 |
KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1037 |
KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1038 |
KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1039 |
KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1040 |
KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1041 |
KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1042 |
KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1043 |
KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1044 |
KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1045 |
KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1046 |
KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1047 |
KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1048 |
KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1049 |
KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1050 |
KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1051 |
KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1052 |
KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1053 |
KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1054 |
KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1055 |
KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1056 |
KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1057 |
KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`) |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1058 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
1059 |
drop table t1; |
1060 |
create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, |
|
1061 |
c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int); |
|
1062 |
alter table t1 |
|
1063 |
add key a001_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1064 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1065 |
add key a002_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1066 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1067 |
add key a003_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1068 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1069 |
add key a004_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1070 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1071 |
add key a005_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1072 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1073 |
add key a006_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1074 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1075 |
add key a007_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1076 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1077 |
add key a008_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1078 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1079 |
add key a009_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1080 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1081 |
add key a010_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1082 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1083 |
add key a011_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1084 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1085 |
add key a012_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1086 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1087 |
add key a013_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1088 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1089 |
add key a014_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1090 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1091 |
add key a015_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1092 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1093 |
add key a016_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1094 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1095 |
add key a017_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1096 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1097 |
add key a018_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1098 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1099 |
add key a019_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1100 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1101 |
add key a020_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1102 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1103 |
add key a021_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1104 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1105 |
add key a022_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1106 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1107 |
add key a023_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1108 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1109 |
add key a024_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1110 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1111 |
add key a025_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1112 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1113 |
add key a026_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1114 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1115 |
add key a027_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1116 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1117 |
add key a028_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1118 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1119 |
add key a029_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1120 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1121 |
add key a030_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1122 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1123 |
add key a031_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1124 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1125 |
add key a032_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1126 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1127 |
add key a033_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1128 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1129 |
add key a034_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1130 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1131 |
add key a035_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1132 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1133 |
add key a036_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1134 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1135 |
add key a037_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1136 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1137 |
add key a038_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1138 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1139 |
add key a039_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1140 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1141 |
add key a040_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1142 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1143 |
add key a041_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1144 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1145 |
add key a042_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1146 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1147 |
add key a043_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1148 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1149 |
add key a044_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1150 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1151 |
add key a045_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1152 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1153 |
add key a046_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1154 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1155 |
add key a047_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1156 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1157 |
add key a048_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1158 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1159 |
add key a049_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1160 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1161 |
add key a050_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1162 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1163 |
add key a051_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1164 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1165 |
add key a052_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1166 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1167 |
add key a053_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1168 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1169 |
add key a054_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1170 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1171 |
add key a055_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1172 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1173 |
add key a056_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1174 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1175 |
add key a057_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1176 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1177 |
add key a058_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1178 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1179 |
add key a059_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1180 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1181 |
add key a060_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1182 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1183 |
add key a061_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1184 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1185 |
add key a062_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1186 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1187 |
add key a063_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1188 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16), |
|
1189 |
add key a064_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1190 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16); |
|
1191 |
show create table t1; |
|
1192 |
Table Create Table |
|
1193 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1194 |
`c1` int DEFAULT NULL, |
1195 |
`c2` int DEFAULT NULL, |
|
1196 |
`c3` int DEFAULT NULL, |
|
1197 |
`c4` int DEFAULT NULL, |
|
1198 |
`c5` int DEFAULT NULL, |
|
1199 |
`c6` int DEFAULT NULL, |
|
1200 |
`c7` int DEFAULT NULL, |
|
1201 |
`c8` int DEFAULT NULL, |
|
1202 |
`c9` int DEFAULT NULL, |
|
1203 |
`c10` int DEFAULT NULL, |
|
1204 |
`c11` int DEFAULT NULL, |
|
1205 |
`c12` int DEFAULT NULL, |
|
1206 |
`c13` int DEFAULT NULL, |
|
1207 |
`c14` int DEFAULT NULL, |
|
1208 |
`c15` int DEFAULT NULL, |
|
1209 |
`c16` int DEFAULT NULL, |
|
1
by brian
clean slate |
1210 |
KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
1211 |
KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1212 |
KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1213 |
KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1214 |
KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1215 |
KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1216 |
KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1217 |
KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1218 |
KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1219 |
KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1220 |
KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1221 |
KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1222 |
KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1223 |
KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1224 |
KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1225 |
KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1226 |
KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1227 |
KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1228 |
KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1229 |
KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1230 |
KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1231 |
KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1232 |
KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1233 |
KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1234 |
KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1235 |
KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1236 |
KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1237 |
KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1238 |
KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1239 |
KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1240 |
KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1241 |
KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1242 |
KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1243 |
KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1244 |
KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1245 |
KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1246 |
KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1247 |
KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1248 |
KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1249 |
KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1250 |
KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1251 |
KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1252 |
KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1253 |
KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1254 |
KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1255 |
KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1256 |
KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1257 |
KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1258 |
KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1259 |
KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1260 |
KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1261 |
KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1262 |
KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1263 |
KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1264 |
KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1265 |
KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1266 |
KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1267 |
KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1268 |
KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1269 |
KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1270 |
KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1271 |
KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1272 |
KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1273 |
KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`) |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1274 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
1275 |
flush tables; |
1276 |
show create table t1; |
|
1277 |
Table Create Table |
|
1278 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1279 |
`c1` int DEFAULT NULL, |
1280 |
`c2` int DEFAULT NULL, |
|
1281 |
`c3` int DEFAULT NULL, |
|
1282 |
`c4` int DEFAULT NULL, |
|
1283 |
`c5` int DEFAULT NULL, |
|
1284 |
`c6` int DEFAULT NULL, |
|
1285 |
`c7` int DEFAULT NULL, |
|
1286 |
`c8` int DEFAULT NULL, |
|
1287 |
`c9` int DEFAULT NULL, |
|
1288 |
`c10` int DEFAULT NULL, |
|
1289 |
`c11` int DEFAULT NULL, |
|
1290 |
`c12` int DEFAULT NULL, |
|
1291 |
`c13` int DEFAULT NULL, |
|
1292 |
`c14` int DEFAULT NULL, |
|
1293 |
`c15` int DEFAULT NULL, |
|
1294 |
`c16` int DEFAULT NULL, |
|
1
by brian
clean slate |
1295 |
KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
1296 |
KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1297 |
KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1298 |
KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1299 |
KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1300 |
KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1301 |
KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1302 |
KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1303 |
KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1304 |
KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1305 |
KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1306 |
KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1307 |
KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1308 |
KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1309 |
KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1310 |
KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1311 |
KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1312 |
KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1313 |
KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1314 |
KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1315 |
KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1316 |
KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1317 |
KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1318 |
KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1319 |
KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1320 |
KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1321 |
KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1322 |
KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1323 |
KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1324 |
KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1325 |
KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1326 |
KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1327 |
KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1328 |
KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1329 |
KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1330 |
KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1331 |
KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1332 |
KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1333 |
KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1334 |
KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1335 |
KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1336 |
KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1337 |
KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1338 |
KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1339 |
KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1340 |
KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1341 |
KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1342 |
KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1343 |
KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1344 |
KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1345 |
KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1346 |
KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1347 |
KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1348 |
KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1349 |
KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1350 |
KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1351 |
KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1352 |
KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1353 |
KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1354 |
KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1355 |
KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1356 |
KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1357 |
KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`), |
|
1358 |
KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`) |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1359 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
1360 |
alter table t1 add key |
1361 |
a065_long_123456789_123456789_123456789_123456789_123456789_1234 ( |
|
1362 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16); |
|
1363 |
ERROR 42000: Too many keys specified; max 64 keys allowed |
|
1364 |
drop table t1; |
|
1365 |
create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, |
|
1366 |
c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, |
|
1367 |
c16 int, c17 int); |
|
1368 |
alter table t1 add key i1 ( |
|
1369 |
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16, c17); |
|
1370 |
ERROR 42000: Too many key parts specified; max 16 parts allowed |
|
1371 |
alter table t1 add key |
|
1372 |
a001_long_123456789_123456789_123456789_123456789_123456789_12345 (c1); |
|
1373 |
ERROR 42000: Identifier name 'a001_long_123456789_123456789_123456789_123456789_123456789_12345' is too long |
|
1374 |
show create table t1; |
|
1375 |
Table Create Table |
|
1376 |
t1 CREATE TABLE `t1` ( |
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1377 |
`c1` int DEFAULT NULL, |
1378 |
`c2` int DEFAULT NULL, |
|
1379 |
`c3` int DEFAULT NULL, |
|
1380 |
`c4` int DEFAULT NULL, |
|
1381 |
`c5` int DEFAULT NULL, |
|
1382 |
`c6` int DEFAULT NULL, |
|
1383 |
`c7` int DEFAULT NULL, |
|
1384 |
`c8` int DEFAULT NULL, |
|
1385 |
`c9` int DEFAULT NULL, |
|
1386 |
`c10` int DEFAULT NULL, |
|
1387 |
`c11` int DEFAULT NULL, |
|
1388 |
`c12` int DEFAULT NULL, |
|
1389 |
`c13` int DEFAULT NULL, |
|
1390 |
`c14` int DEFAULT NULL, |
|
1391 |
`c15` int DEFAULT NULL, |
|
1392 |
`c16` int DEFAULT NULL, |
|
1393 |
`c17` int DEFAULT NULL |
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1394 |
) ENGINE=DEFAULT |
1
by brian
clean slate |
1395 |
drop table t1; |
1396 |
||
1397 |
Bug #26104 Bug on foreign key class constructor |
|
1398 |
||
1399 |
Check that ref_columns is initalized correctly in the constructor |
|
1400 |
and semantic checks in mysql_prepare_table work. |
|
1401 |
||
1402 |
We do not need a storage engine that supports foreign keys |
|
1403 |
for this test, as the checks are purely syntax-based, and the |
|
1404 |
syntax is supported for all engines. |
|
1405 |
||
1406 |
drop table if exists t1,t2; |
|
1407 |
create table t1(a int not null, b int not null, primary key (a, b)); |
|
1408 |
create table t2(a int not null, b int not null, c int not null, primary key (a), |
|
1409 |
foreign key fk_bug26104 (b,c) references t1(a)); |
|
1410 |
ERROR 42000: Incorrect foreign key definition for 'fk_bug26104': Key reference and table reference don't match |
|
1411 |
drop table t1;
|
|
1412 |
create table t1(f1 int,f2 int);
|
|
1413 |
insert into t1 value(1,1),(1,2),(1,3),(2,1),(2,2),(2,3);
|
|
1414 |
flush status;
|
|
1415 |
create table t2 select sql_big_result f1,count(f2) from t1 group by f1;
|
|
1416 |
show status like 'handler_read%'; |
|
1417 |
Variable_name Value
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
1418 |
Handler_read_first 1
|
1419 |
Handler_read_key 3
|
|
1
by brian
clean slate |
1420 |
Handler_read_next 0
|
1421 |
Handler_read_prev 0
|
|
1422 |
Handler_read_rnd 0
|
|
1423 |
Handler_read_rnd_next 7
|
|
1424 |
drop table t1,t2;
|
|
1425 |
CREATE TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1));
|
|
1426 |
DROP TABLE t1;
|
|
1427 |
CREATE TABLE t1(c1 VARCHAR(33), KEY (c1) USING BTREE);
|
|
1428 |
DROP TABLE t1;
|
|
1429 |
CREATE TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1) USING HASH) ENGINE=MEMORY;
|
|
1430 |
SHOW INDEX FROM t1;
|
|
1431 |
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
|
|
1432 |
t1 1 c1 1 c1 NULL 0 NULL NULL YES HASH
|
|
1433 |
DROP TABLE t1;
|
|
1434 |
CREATE TABLE t1(c1 VARCHAR(33), KEY USING HASH (c1) USING BTREE) ENGINE=MEMORY;
|
|
1435 |
SHOW INDEX FROM t1;
|
|
1436 |
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
|
|
1437 |
t1 1 c1 1 c1 A NULL NULL NULL YES BTREE
|
|
1438 |
DROP TABLE t1;
|
|
1439 |
End of 5.0 tests
|
|
1440 |
CREATE TABLE t1 (a int, b int);
|
|
1441 |
insert into t1 values (1,1),(1,2);
|
|
1442 |
CREATE TABLE t2 (primary key (a)) select * from t1;
|
|
1443 |
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' |
|
1444 |
drop table if exists t2;
|
|
1445 |
Warnings:
|
|
1446 |
Note 1051 Unknown table 't2' |
|
1447 |
CREATE TEMPORARY TABLE t2 (primary key (a)) select * from t1;
|
|
1448 |
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' |
|
1449 |
drop table if exists t2;
|
|
1450 |
Warnings:
|
|
1451 |
Note 1051 Unknown table 't2' |
|
1452 |
CREATE TEMPORARY TABLE t2 (a int, b int, primary key (a));
|
|
1453 |
CREATE TEMPORARY TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
|
|
1454 |
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' |
|
1455 |
SELECT * from t2;
|
|
1456 |
a b
|
|
1457 |
TRUNCATE table t2;
|
|
1458 |
INSERT INTO t2 select * from t1;
|
|
1459 |
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' |
|
1460 |
SELECT * from t2;
|
|
1461 |
a b
|
|
1462 |
drop table t1,t2;
|
|
1463 |
CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
|
|
1464 |
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
|
1465 |
DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
|
|
1466 |
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
|
1467 |
USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
|
|
1468 |
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
|
1469 |
SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
|
|
1470 |
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
|
1471 |
create database имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
|
|
1472 |
use имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
|
|
1473 |
select database();
|
|
1474 |
database()
|
|
1475 |
имя_базы_в_кодировке_утф8_длиной_больше_чем_45
|
|
1476 |
use test;
|
|
1477 |
select SCHEMA_NAME from information_schema.schemata
|
|
1478 |
where schema_name='имя_базы_в_кодировке_утф8_длиной_больше_чем_45'; |
|
1479 |
SCHEMA_NAME
|
|
1480 |
имя_базы_в_кодировке_утф8_длиной_больше_чем_45
|
|
1481 |
drop database имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
|
|
1482 |
create table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48
|
|
1483 |
(
|
|
1484 |
имя_поля_в_кодировке_утф8_длиной_больше_чем_45 int,
|
|
1485 |
index имя_индекса_в_кодировке_утф8_длиной_больше_чем_48 (имя_поля_в_кодировке_утф8_длиной_больше_чем_45)
|
|
1486 |
);
|
|
1487 |
select * from имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
|
|
1488 |
имя_поля_в_кодировке_утф8_длиной_больше_чем_45
|
|
1489 |
select TABLE_NAME from information_schema.tables where
|
|
1490 |
table_schema='test'; |
|
1491 |
TABLE_NAME
|
|
1492 |
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48
|
|
1493 |
select COLUMN_NAME from information_schema.columns where
|
|
1494 |
table_schema='test'; |
|
1495 |
COLUMN_NAME
|
|
1496 |
имя_поля_в_кодировке_утф8_длиной_больше_чем_45
|
|
1497 |
select INDEX_NAME from information_schema.statistics where
|
|
1498 |
table_schema='test'; |
|
1499 |
INDEX_NAME
|
|
1500 |
имя_индекса_в_кодировке_утф8_длиной_больше_чем_48
|
|
1501 |
show create table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
|
|
1502 |
Table Create Table
|
|
1503 |
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48 CREATE TABLE `имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48` (
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1504 |
`имя_поля_в_кодировке_утф8_длиной_больше_чем_45` int DEFAULT NULL,
|
1
by brian
clean slate |
1505 |
KEY `имя_индекса_в_кодировке_утф8_длиной_больше_чем_48` (`имя_поля_в_кодировке_утф8_длиной_больше_чем_45`)
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1506 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
1507 |
drop table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
|
1508 |
create table t1 like information_schema.processlist;
|
|
1509 |
show create table t1;
|
|
1510 |
Table Create Table
|
|
1511 |
t1 CREATE TABLE `t1` (
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1512 |
`ID` bigint NOT NULL DEFAULT '0', |
1513 |
`USER` varchar(16) NOT NULL DEFAULT '',
|
|
1514 |
`HOST` varchar(64) NOT NULL DEFAULT '',
|
|
1515 |
`DB` varchar(64) DEFAULT NULL,
|
|
1516 |
`COMMAND` varchar(16) NOT NULL DEFAULT '',
|
|
1517 |
`TIME` bigint NOT NULL DEFAULT '0', |
|
1518 |
`STATE` varchar(64) DEFAULT NULL,
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
1519 |
`INFO` text
|
1520 |
) ENGINE=MyISAM
|
|
1
by brian
clean slate |
1521 |
drop table t1;
|
1522 |
create temporary table t1 like information_schema.processlist;
|
|
1523 |
show create table t1;
|
|
1524 |
Table Create Table
|
|
1525 |
t1 CREATE TEMPORARY TABLE `t1` (
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1526 |
`ID` bigint NOT NULL DEFAULT '0', |
1527 |
`USER` varchar(16) NOT NULL DEFAULT '',
|
|
1528 |
`HOST` varchar(64) NOT NULL DEFAULT '',
|
|
1529 |
`DB` varchar(64) DEFAULT NULL,
|
|
1530 |
`COMMAND` varchar(16) NOT NULL DEFAULT '',
|
|
1531 |
`TIME` bigint NOT NULL DEFAULT '0', |
|
1532 |
`STATE` varchar(64) DEFAULT NULL,
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
1533 |
`INFO` text
|
1534 |
) ENGINE=MyISAM
|
|
1
by brian
clean slate |
1535 |
drop table t1;
|
1536 |
||
1537 |
# --
|
|
1538 |
# -- Bug#21380: DEFAULT definition not always transfered by CREATE
|
|
1539 |
# -- TABLE/SELECT to the new table.
|
|
1540 |
# --
|
|
1541 |
||
1542 |
DROP TABLE IF EXISTS t1;
|
|
1543 |
DROP TABLE IF EXISTS t2;
|
|
1544 |
||
1545 |
CREATE TABLE t1(
|
|
1546 |
c1 INT DEFAULT 12 COMMENT 'column1', |
|
1547 |
c2 INT NULL COMMENT 'column2', |
|
1548 |
c3 INT NOT NULL COMMENT 'column3', |
|
722.2.15
by Monty Taylor
Fixed create.test. |
1549 |
c4 VARCHAR(255) NOT NULL DEFAULT 'a', |
1
by brian
clean slate |
1550 |
c5 VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT 'b', |
1551 |
c6 VARCHAR(255))
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
1552 |
COLLATE utf8_bin;
|
1
by brian
clean slate |
1553 |
|
1554 |
SHOW CREATE TABLE t1;
|
|
1555 |
Table Create Table
|
|
1556 |
t1 CREATE TABLE `t1` (
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1557 |
`c1` int DEFAULT '12' COMMENT 'column1', |
1558 |
`c2` int DEFAULT NULL COMMENT 'column2', |
|
722.2.15
by Monty Taylor
Fixed create.test. |
1559 |
`c3` int NOT NULL COMMENT 'column3', |
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1560 |
`c4` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT 'a', |
1561 |
`c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b', |
|
1562 |
`c6` varchar(255) COLLATE utf8_bin DEFAULT NULL
|
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1563 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
1564 |
|
1565 |
CREATE TABLE t2 AS SELECT * FROM t1;
|
|
1566 |
||
1567 |
SHOW CREATE TABLE t2;
|
|
1568 |
Table Create Table
|
|
1569 |
t2 CREATE TABLE `t2` (
|
|
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1570 |
`c1` int DEFAULT '12' COMMENT 'column1', |
1571 |
`c2` int DEFAULT NULL COMMENT 'column2', |
|
722.2.15
by Monty Taylor
Fixed create.test. |
1572 |
`c3` int NOT NULL COMMENT 'column3', |
873.2.35
by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements. |
1573 |
`c4` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 'a', |
1574 |
`c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b', |
|
1575 |
`c6` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
|
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
1576 |
) ENGINE=DEFAULT
|
1
by brian
clean slate |
1577 |
|
1578 |
DROP TABLE t2;
|
|
1579 |
||
1580 |
# -- End of test case for Bug#21380.
|
|
1581 |
||
1582 |
# --
|
|
1583 |
# -- Bug#18834: ALTER TABLE ADD INDEX on table with two timestamp fields
|
|
1584 |
# --
|
|
1585 |
||
1586 |
DROP TABLE IF EXISTS t1;
|
|
1587 |
DROP TABLE IF EXISTS t2;
|
|
1588 |
DROP TABLE IF EXISTS t3;
|
|
1589 |
||
1590 |
CREATE TABLE t1(c1 TIMESTAMP, c2 TIMESTAMP);
|
|
1591 |
||
1592 |
||
907.1.7
by Jay Pipes
Merged in remove-timezone work |
1593 |
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP NULL);
|
722.2.15
by Monty Taylor
Fixed create.test. |
1594 |
drop table t2;
|
896.4.9
by Stewart Smith
No longer write the FRM. just use proto. |
1595 |
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP DEFAULT '1982-01-29'); |
722.2.15
by Monty Taylor
Fixed create.test. |
1596 |
drop table t2;
|
1
by brian
clean slate |
1597 |
|
1598 |
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP);
|
|
722.2.15
by Monty Taylor
Fixed create.test. |
1599 |
drop table t2;
|
1
by brian
clean slate |
1600 |
|
1601 |
# -- Check that NULL column still can be created.
|
|
1602 |
CREATE TABLE t2(c1 TIMESTAMP NULL);
|
|
1603 |
||
1604 |
# -- Check ALTER TABLE.
|
|
1605 |
ALTER TABLE t1 ADD INDEX(c1);
|
|
1606 |
||
1607 |
# -- Check DATETIME.
|
|
1608 |
||
1609 |
CREATE TABLE t3(c1 DATETIME NOT NULL);
|
|
1610 |
INSERT INTO t3 VALUES (0);
|
|
873.1.7
by Jay Pipes
Fixes Field_datetime::store(NUMBER) to throw an error when invalid |
1611 |
ERROR HY000: Received an invalid datetime value '0'. |
1
by brian
clean slate |
1612 |
|
873.1.7
by Jay Pipes
Fixes Field_datetime::store(NUMBER) to throw an error when invalid |
1613 |
ALTER TABLE t3 ADD INDEX(c1); |
1
by brian
clean slate |
1614 |
|
1615 |
# -- Cleanup. |
|
1616 |
DROP TABLE t1; |
|
1617 |
DROP TABLE t2; |
|
1618 |
DROP TABLE t3; |
|
1619 |
||
1620 |
# -- End of Bug#18834. |