~drizzle-trunk/drizzle/development

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;
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
19
create temporary table t1 (a int not null auto_increment,primary key (a)) engine=MEMORY;
1 by brian
clean slate
20
drop table t1;
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
21
create temporary table t2 engine=MEMORY select * from t1;
1 by brian
clean slate
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'
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
31
create temporary table t1 (a int not null,b text) engine=MEMORY;
1 by brian
clean slate
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'
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
36
create temporary table t1 (ordid int not null auto_increment, ord  varchar(50) not null, primary key (ord,ordid)) engine=MEMORY;
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);
1395.1.12 by Brian Aker
Fixes failure related to Heap's hack on deletion. Also cleans up error
39
ERROR 42000: Unknown database 'not_existing_database'
1 by brian
clean slate
40
create table `a/a` (a int);
41
show create table `a/a`;
42
Table	Create Table
43
a/a	CREATE TABLE `a/a` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
44
  `a` INT DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
45
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
46
create table t1 like `a/a`;
1547 by Brian Aker
This fixes a bug where we did a full open for a temporary table for CREATE
47
show create table t1;
48
Table	Create Table
49
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
50
  `a` INT DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
51
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1547 by Brian Aker
This fixes a bug where we did a full open for a temporary table for CREATE
52
show create table `t1`;
53
Table	Create Table
54
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
55
  `a` INT DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
56
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
57
drop table `a/a`;
58
drop table `t1`;
59
create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);
60
ERROR 42000: Incorrect table name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
61
create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);
62
ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long
63
create table t1 (a datetime default now());
64
ERROR 42000: Invalid default value for 'a'
65
create table t1 (a datetime on update now());
66
ERROR HY000: Invalid ON UPDATE clause for 'a' column
67
create table t1 (a int default 100 auto_increment);
68
ERROR 42000: Invalid default value for 'a'
69
create table t1 (a varchar(5) default 'abcdef');
70
ERROR 42000: Invalid default value for 'a'
71
create table t1 (a varchar(5) default 'abcde');
72
insert into t1 values();
73
select * from t1;
74
a
75
abcde
76
alter table t1 alter column a set default 'abcdef';
77
ERROR 42000: Invalid default value for 'a'
78
drop table t1;
79
create table 1ea10 (1a20 int,1e int);
80
insert into 1ea10 values(1,1);
81
select 1ea10.1a20,1e+ 1e+10 from 1ea10;
82
1a20	1e+ 1e+10
83
1	10000000001
84
drop table 1ea10;
85
create table t1 (t1.index int);
86
drop table t1;
87
drop database if exists mysqltest;
88
Warnings:
1354.1.1 by Brian Aker
Modify ptr to reference.
89
Note	1008	Can't drop database 'mysqltest'; database doesn't exist
1 by brian
clean slate
90
create database mysqltest;
91
create table mysqltest.$test1 (a$1 int, $b int, c$ int);
92
insert into mysqltest.$test1 values (1,2,3);
93
select a$1, $b, c$ from mysqltest.$test1;
94
a$1	$b	c$
95
1	2	3
96
create table mysqltest.test2$ (a int);
97
drop table mysqltest.test2$;
98
drop database mysqltest;
99
create table `` (a int);
100
ERROR 42000: Incorrect table name ''
101
drop table if exists ``;
102
ERROR 42000: Incorrect table name ''
103
create table t1 (`` int);
104
ERROR 42000: Incorrect column name ''
105
create table t1 (i int, index `` (i));
106
ERROR 42000: Incorrect index name ''
107
create table t1 (a int auto_increment not null primary key, B CHAR(20));
108
insert into t1 (b) values ("hello"),("my"),("world");
109
create table t2 (key (b)) select * from t1;
110
explain select * from t2 where b="world";
111
id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
722.2.15 by Monty Taylor
Fixed create.test.
112
1	SIMPLE	t2	ref	B	B	83	const	1	Using where
1 by brian
clean slate
113
select * from t2 where b="world";
114
a	B
115
3	world
116
drop table t1,t2;
117
create table t1(x varchar(50) );
118
create table t2 select x from t1 where 1=2;
119
describe t1;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
120
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
121
x	VARCHAR	YES		YES	
1 by brian
clean slate
122
describe t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
123
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
124
x	VARCHAR	YES		YES	
1 by brian
clean slate
125
drop table t2;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
126
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
127
describe t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
128
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
129
a	DATETIME	YES		YES	
130
c	DATE	NO		NO	
131
d	INTEGER	NO		NO	
132
e	DECIMAL	NO		NO	
133
f	BIGINT	NO		NO	
1 by brian
clean slate
134
drop table t2;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
135
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
136
describe t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
137
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
138
d	DATE	YES		YES	
139
dt	DATETIME	YES		YES	
1 by brian
clean slate
140
drop table t1,t2;
722.2.15 by Monty Taylor
Fixed create.test.
141
create table t1 (a int);
1 by brian
clean slate
142
create table t2 (a int) select * from t1;
143
describe t1;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
144
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
145
a	INTEGER	YES		YES	
1 by brian
clean slate
146
describe t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
147
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
148
a	INTEGER	YES		YES	
1 by brian
clean slate
149
drop table if exists t2;
150
create table t2 (a int, a float) select * from t1;
151
ERROR 42S21: Duplicate column name 'a'
152
drop table if exists t2;
153
Warnings:
154
Note	1051	Unknown table 't2'
155
create table t2 (a int) select a as b, a+1 as b from t1;
156
ERROR 42S21: Duplicate column name 'b'
157
drop table if exists t2;
158
Warnings:
159
Note	1051	Unknown table 't2'
160
create table t2 (b int) select a as b, a+1 as b from t1;
161
ERROR 42S21: Duplicate column name 'b'
162
drop table if exists t1,t2;
163
Warnings:
164
Note	1051	Unknown table 't2'
165
CREATE TABLE t1 (a int not null);
166
INSERT INTO t1 values (1),(2),(1);
167
CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
168
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
169
SELECT * from t2;
170
ERROR 42S02: Table 'test.t2' doesn't exist
171
DROP TABLE t1;
172
DROP TABLE IF EXISTS t2;
173
Warnings:
174
Note	1051	Unknown table 't2'
175
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));
176
show create table t1;
177
Table	Create Table
178
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
179
  `a` INT NOT NULL,
180
  `b` INT DEFAULT NULL,
1 by brian
clean slate
181
  PRIMARY KEY (`a`),
182
  KEY `b` (`b`),
183
  KEY `b_2` (`b`),
184
  KEY `b_3` (`b`),
185
  KEY `b_4` (`b`),
186
  KEY `b_5` (`b`),
187
  KEY `b_6` (`b`),
188
  KEY `b_7` (`b`),
189
  KEY `b_8` (`b`),
190
  KEY `b_9` (`b`),
191
  KEY `b_10` (`b`),
192
  KEY `b_11` (`b`),
193
  KEY `b_12` (`b`),
194
  KEY `b_13` (`b`),
195
  KEY `b_14` (`b`),
196
  KEY `b_15` (`b`),
197
  KEY `b_16` (`b`),
198
  KEY `b_17` (`b`),
199
  KEY `b_18` (`b`),
200
  KEY `b_19` (`b`),
201
  KEY `b_20` (`b`),
202
  KEY `b_21` (`b`),
203
  KEY `b_22` (`b`),
204
  KEY `b_23` (`b`),
205
  KEY `b_24` (`b`),
206
  KEY `b_25` (`b`),
207
  KEY `b_26` (`b`),
208
  KEY `b_27` (`b`),
209
  KEY `b_28` (`b`),
210
  KEY `b_29` (`b`),
211
  KEY `b_30` (`b`),
212
  KEY `b_31` (`b`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
213
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
214
drop table t1;
215
create table t1 select if(1,'1','0'), month("2002-08-02");
216
drop table t1;
217
create table t1 select if('2002'='2002','Y','N');
218
select * from t1;
219
if('2002'='2002','Y','N')
220
Y
221
drop table if exists t1;
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
222
SET SESSION storage_engine="MEMORY";
1 by brian
clean slate
223
SELECT @@storage_engine;
224
@@storage_engine
225
MEMORY
1106.3.1 by Brian Aker
Heap is now tmp only table
226
CREATE TEMPORARY TABLE t1 (a int not null);
1 by brian
clean slate
227
show create table t1;
228
Table	Create Table
1106.3.1 by Brian Aker
Heap is now tmp only table
229
t1	CREATE TEMPORARY TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
230
  `a` INT NOT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
231
) ENGINE=MEMORY COLLATE = utf8_general_ci
1 by brian
clean slate
232
drop table t1;
233
SET SESSION storage_engine="gemini";
234
ERROR 42000: Unknown table engine 'gemini'
235
SELECT @@storage_engine;
236
@@storage_engine
237
MEMORY
1106.3.1 by Brian Aker
Heap is now tmp only table
238
CREATE TEMPORARY TABLE t1 (a int not null);
1 by brian
clean slate
239
show create table t1;
240
Table	Create Table
1106.3.1 by Brian Aker
Heap is now tmp only table
241
t1	CREATE TEMPORARY TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
242
  `a` INT NOT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
243
) ENGINE=MEMORY COLLATE = utf8_general_ci
1 by brian
clean slate
244
SET SESSION storage_engine=default;
245
drop table t1;
246
create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
247
insert into t1 values ("a", 1), ("b", 2);
248
insert into t1 values ("c", NULL);
249
ERROR 23000: Column 'k2' cannot be null
250
insert into t1 values (NULL, 3);
251
ERROR 23000: Column 'k1' cannot be null
252
insert into t1 values (NULL, NULL);
253
ERROR 23000: Column 'k1' cannot be null
254
drop table t1;
255
create table t1 select x'4132';
256
drop table t1;
257
create table t1 select 1,2,3;
258
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
259
ERROR HY000: Field '1' doesn't have a default value
1 by brian
clean slate
260
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
261
ERROR 21S01: Column count doesn't match value count at row 1
1 by brian
clean slate
262
create table if not exists t1 select 1;
907.2.3 by Toru Maesaka
Updated the testcase and result file for bug:311046 fix
263
ERROR HY000: Field '1' doesn't have a default value
1 by brian
clean slate
264
select * from t1;
265
1	2	3
266
1	2	3
267
drop table t1;
268
flush status;
269
create table t1 (a int not null, b int, primary key (a));
270
insert into t1 values (1,1);
271
select * from t1;
272
a	b
273
1	1
274
create table if not exists t1 select 3 as 'a',4 as 'b';
275
Warnings:
276
Note	1050	Table 't1' already exists
277
create table if not exists t1 select 3 as 'a',3 as 'b';
278
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
279
show warnings;
280
Level	Code	Message
281
Note	1050	Table 't1' already exists
282
Error	1062	Duplicate entry '3' for key 'PRIMARY'
1345 by Brian Aker
Corrections.
283
select * from DATA_DICTIONARY.TABLE_DEFINITION_CACHE WHERE TABLE_COUNT > 1 ORDER BY TABLE_SCHEMA, TABLE_NAME;
284
TABLE_SCHEMA	TABLE_NAME	VERSION	TABLE_COUNT	IS_NAME_LOCKED
1 by brian
clean slate
285
select * from t1;
286
a	b
287
1	1
288
3	4
289
drop table t1;
290
create table `t1 `(a int);
291
ERROR 42000: Incorrect table name 't1 '
292
create database `db1 `;
293
ERROR 42000: Incorrect database name 'db1 '
294
create table t1(`a ` int);
295
ERROR 42000: Incorrect column name 'a '
296
create table t1 (a int,);
722.2.15 by Monty Taylor
Fixed create.test.
297
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
298
create table t1 (a int,,b int);
722.2.15 by Monty Taylor
Fixed create.test.
299
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
300
create table t1 (,b int);
722.2.15 by Monty Taylor
Fixed create.test.
301
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
302
create table t1 (a int, key(a));
303
create table t2 (b int, foreign key(b) references t1(a), key(b));
304
drop table if exists t1,t2;
722.2.15 by Monty Taylor
Fixed create.test.
305
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
306
drop table if exists t2,t1;
307
Warnings:
308
Note	1051	Unknown table 't2'
1 by brian
clean slate
309
create table t1(id int not null, name char(20));
310
insert into t1 values(10,'mysql'),(20,'monty- the creator');
311
create table t2(id int not null);
312
insert into t2 values(10),(20);
313
create table t3 like t1;
314
show create table t3;
315
Table	Create Table
316
t3	CREATE TABLE `t3` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
317
  `id` INT NOT NULL,
318
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
319
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
320
select * from t3;
321
id	name
322
create table if not exists t3 like t1;
323
Warnings:
324
Note	1050	Table 't3' already exists
325
select @@warning_count;
326
@@warning_count
327
1
328
create temporary table t3 like t2;
329
show create table t3;
330
Table	Create Table
331
t3	CREATE TEMPORARY TABLE `t3` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
332
  `id` INT NOT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
333
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
334
select * from t3;
335
id
336
drop table t3;
337
show create table t3;
338
Table	Create Table
339
t3	CREATE TABLE `t3` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
340
  `id` INT NOT NULL,
341
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
342
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
343
select * from t3;
344
id	name
345
drop table t2, t3;
346
create database mysqltest;
347
create table mysqltest.t3 like t1;
348
create temporary table t3 like mysqltest.t3;
349
show create table t3;
350
Table	Create Table
351
t3	CREATE TEMPORARY TABLE `t3` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
352
  `id` INT NOT NULL,
353
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
354
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
355
create table t2 like t3;
356
show create table t2;
357
Table	Create Table
358
t2	CREATE TABLE `t2` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
359
  `id` INT NOT NULL,
360
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
361
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
362
select * from t2;
363
id	name
364
create table t3 like t1;
1273.19.11 by Brian Aker
This restores temporary tables back to being viewable via show/select.
365
ERROR 42S01: Table 't3' already exists
1 by brian
clean slate
366
create table t3 like mysqltest.t3;
367
ERROR 42S01: Table 't3' already exists
368
create table non_existing_database.t1 like t1;
1395.1.12 by Brian Aker
Fixes failure related to Heap's hack on deletion. Also cleans up error
369
ERROR 42000: Unknown database 'non_existing_database'
1 by brian
clean slate
370
create table t3 like non_existing_table;
371
ERROR 42S02: Table 'test.non_existing_table' doesn't exist
372
create temporary table t3 like t1;
373
ERROR 42S01: Table 't3' already exists
374
drop table t1, t2, t3;
375
drop database mysqltest;
1233.2.1 by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias.
376
SET SESSION storage_engine="MEMORY";
1 by brian
clean slate
377
SELECT @@storage_engine;
378
@@storage_engine
379
MEMORY
1106.3.1 by Brian Aker
Heap is now tmp only table
380
CREATE TEMPORARY TABLE t1 (a int not null);
1 by brian
clean slate
381
show create table t1;
382
Table	Create Table
1106.3.1 by Brian Aker
Heap is now tmp only table
383
t1	CREATE TEMPORARY TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
384
  `a` INT NOT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
385
) ENGINE=MEMORY COLLATE = utf8_general_ci
1 by brian
clean slate
386
drop table t1;
387
SET SESSION storage_engine="gemini";
388
ERROR 42000: Unknown table engine 'gemini'
389
SELECT @@storage_engine;
390
@@storage_engine
391
MEMORY
1106.3.1 by Brian Aker
Heap is now tmp only table
392
CREATE TEMPORARY TABLE t1 (a int not null);
1 by brian
clean slate
393
show create table t1;
394
Table	Create Table
1106.3.1 by Brian Aker
Heap is now tmp only table
395
t1	CREATE TEMPORARY TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
396
  `a` INT NOT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
397
) ENGINE=MEMORY COLLATE = utf8_general_ci
1 by brian
clean slate
398
SET SESSION storage_engine=default;
399
drop table t1;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
400
create table t1(a int,b int,c int,d date,e char,f datetime,h blob);
1 by brian
clean slate
401
insert into t1(a)values(1);
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
402
insert into t1(a,b,c,d,e,f,h)
403
values(2,-2,2,'1825-12-14','a','2003-01-01 03:02:01','binary data');
1 by brian
clean slate
404
select * from t1;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
405
a	b	c	d	e	f	h
406
1	NULL	NULL	NULL	NULL	NULL	NULL
407
2	-2	2	1825-12-14	a	2003-01-01 03:02:01	binary data
1 by brian
clean slate
408
select a, 
722.2.15 by Monty Taylor
Fixed create.test.
409
ifnull(b,-7) as b, 
410
ifnull(c,7) as c, 
1 by brian
clean slate
411
ifnull(d,cast('2000-01-01' as date)) as d, 
412
ifnull(e,cast('b' as char)) as e,
413
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.
414
ifnull(h,cast('yet another binary data' as binary)) as h
1 by brian
clean slate
415
from t1;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
416
a	b	c	d	e	f	h
417
1	-7	7	2000-01-01	b	2000-01-01 00:00:00	yet another binary data
418
2	-2	2	1825-12-14	a	2003-01-01 03:02:01	binary data
1 by brian
clean slate
419
create table t2
420
select
421
a, 
722.2.15 by Monty Taylor
Fixed create.test.
422
ifnull(b,-7)                            as b,
423
ifnull(c,7)                             as c,
1 by brian
clean slate
424
ifnull(d,cast('2000-01-01'              as date))     as d,
425
ifnull(e,cast('b'                       as char))     as e,
426
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.
427
ifnull(h,cast('yet another binary data' as binary))   as h
1 by brian
clean slate
428
from t1;
429
explain t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
430
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
431
a	INTEGER	YES		YES	
432
b	BIGINT	NO		NO	
433
c	BIGINT	NO		NO	
434
d	DATE	YES		YES	
435
e	VARCHAR	YES		YES	
436
f	DATETIME	YES		YES	
437
h	BLOB	YES		YES	
1 by brian
clean slate
438
select * from t2;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
439
a	b	c	d	e	f	h
440
1	-7	7	2000-01-01	b	2000-01-01 00:00:00	yet another binary data
441
2	-2	2	1825-12-14	a	2003-01-01 03:02:01	binary data
1 by brian
clean slate
442
drop table t1, t2;
722.2.15 by Monty Taylor
Fixed create.test.
443
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));
444
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
445
show create table t2;
446
Table	Create Table
447
t2	CREATE TABLE `t2` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
448
  `ifnull(a,a)` INT DEFAULT NULL,
449
  `ifnull(b,b)` INT DEFAULT NULL,
450
  `ifnull(d,d)` INT DEFAULT NULL,
451
  `ifnull(e,e)` BIGINT DEFAULT NULL,
452
  `ifnull(f,f)` DOUBLE(3,2) DEFAULT NULL,
453
  `ifnull(g,g)` DOUBLE(4,3) DEFAULT NULL,
454
  `ifnull(h,h)` DECIMAL(5,4) DEFAULT NULL,
455
  `ifnull(j,j)` DATE DEFAULT NULL,
456
  `ifnull(k,k)` TIMESTAMP NULL DEFAULT NULL,
457
  `ifnull(l,l)` DATETIME DEFAULT NULL,
458
  `ifnull(m,m)` VARCHAR(1) COLLATE utf8_general_ci DEFAULT NULL,
459
  `ifnull(o,o)` VARCHAR(10) COLLATE utf8_general_ci DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
460
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
461
drop table t1,t2;
462
create table t1(str varchar(10) default 'def',strnull varchar(10),intg int default '10',rel double default '3.14');
463
insert into t1 values ('','',0,0.0);
464
describe t1;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
465
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
466
str	VARCHAR	YES	def	NO	
467
strnull	VARCHAR	YES		YES	
468
intg	INTEGER	YES	10	NO	
469
rel	DOUBLE	YES	3.14	NO	
1 by brian
clean slate
470
create table t2 select default(str) as str, default(strnull) as strnull, default(intg) as intg, default(rel) as rel from t1;
471
describe t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
472
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
473
str	VARCHAR	YES		YES	
474
strnull	VARCHAR	YES		YES	
475
intg	INTEGER	YES		YES	
476
rel	DOUBLE	YES		YES	
1 by brian
clean slate
477
drop table t1, t2;
722.2.15 by Monty Taylor
Fixed create.test.
478
create table t1(name varchar(10), age int default -1);
1 by brian
clean slate
479
describe t1;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
480
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
481
name	VARCHAR	YES		YES	
482
age	INTEGER	YES	-1	NO	
722.2.15 by Monty Taylor
Fixed create.test.
483
create table t2(name varchar(10), age int default - 1);
1 by brian
clean slate
484
describe t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
485
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
486
name	VARCHAR	YES		YES	
487
age	INTEGER	YES	-1	NO	
1 by brian
clean slate
488
drop table t1, t2;
722.2.15 by Monty Taylor
Fixed create.test.
489
create table t1(cenum enum('a'));
490
create table t2(cenum enum('a','a'));
491
ERROR HY000: Column 'cenum' has duplicated value 'a' in ENUM
492
create table t3(cenum enum('a','A','a','c','c'));
493
ERROR HY000: Column 'cenum' has duplicated value 'a' in ENUM
494
drop table t1;
1 by brian
clean slate
495
create database mysqltest;
496
use mysqltest;
497
select database();
498
database()
499
mysqltest
500
drop database mysqltest;
501
select database();
502
database()
503
NULL
504
use test;
505
CREATE TABLE t1(id varchar(10) NOT NULL PRIMARY KEY, dsc longtext);
506
INSERT INTO t1 VALUES ('5000000001', NULL),('5000000003', 'Test'),('5000000004', NULL);
507
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));
508
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');
509
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;
510
SELECT * FROM t3;
511
dsc	countOfRuns
512
NULL	1
513
Test	0
514
NULL	1
515
drop table t1, t2, t3;
516
create table t1 (a int);
517
create table t1 select * from t1;
907.2.3 by Toru Maesaka
Updated the testcase and result file for bug:311046 fix
518
ERROR HY000: You can't specify target table 't1' for update in FROM clause
1 by brian
clean slate
519
flush tables with read lock;
520
unlock tables;
521
drop table t1;
522
create table t1(column.name int);
523
ERROR 42000: Incorrect table name 'column'
524
create table t1(test.column.name int);
525
ERROR 42000: Incorrect table name 'column'
526
create table t1(xyz.t1.name int);
527
ERROR 42000: Incorrect database name 'xyz'
528
create table t1(t1.name int);
529
create table t2(test.t2.name int);
530
drop table t1,t2;
722.2.15 by Monty Taylor
Fixed create.test.
531
CREATE TABLE t1 (f1 VARCHAR(255));
1 by brian
clean slate
532
CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) AS f2 FROM t1;
533
DESC t2;
1309.4.3 by Brian Aker
Refactor DESC to use new table.
534
Field	Type	Null	Default	Default_is_NULL	On_Update
1660 by Brian Aker
MErge in change to do YES/NO like standard requires.
535
f2	VARCHAR	YES		YES	
1 by brian
clean slate
536
DROP TABLE t1,t2;
537
CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1;
538
SELECT * FROM t12913;
539
f1
540
a
541
DROP TABLE t12913;
542
create database mysqltest;
543
use mysqltest;
544
drop database mysqltest;
545
create table test.t1 like x;
546
ERROR 3D000: No database selected
547
drop table if exists test.t1;
548
create database mysqltest;
722.2.15 by Monty Taylor
Fixed create.test.
549
create database if not exists mysqltest;
1 by brian
clean slate
550
Warnings:
1273.19.25 by Brian Aker
createSchema() now works via SE interface.
551
Note	1007	Can't create database 'mysqltest'; database exists
1 by brian
clean slate
552
show create database mysqltest;
553
Database	Create Database
1273.19.28 by Brian Aker
More cleanup on ALTER SCHEMA. Hey! MySQL never had errors on half of it...
554
mysqltest	CREATE DATABASE `mysqltest` COLLATE = utf8_general_ci
1 by brian
clean slate
555
drop database mysqltest;
556
use test;
557
create table t1 (a int);
558
create table if not exists t1 (a int);
559
Warnings:
560
Note	1050	Table 't1' already exists
561
drop table t1;
562
create table t1 (
722.2.15 by Monty Taylor
Fixed create.test.
563
a varchar(112) collate utf8_bin not null,
1 by brian
clean slate
564
primary key (a)
565
) select 'test' as a ;
566
show create table t1;
567
Table	Create Table
568
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
569
  `a` VARCHAR(112) COLLATE utf8_bin NOT NULL,
1 by brian
clean slate
570
  PRIMARY KEY (`a`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
571
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
572
drop table t1;
573
CREATE TABLE t2 (
722.2.15 by Monty Taylor
Fixed create.test.
574
a int default NULL
1 by brian
clean slate
575
);
576
insert into t2 values(111);
577
create table t1 ( 
722.2.15 by Monty Taylor
Fixed create.test.
578
a varchar(12) collate utf8_bin not null, 
1 by brian
clean slate
579
b int not null, primary key (a)
580
) select a, 1 as b from t2 ;
581
show create table t1;
582
Table	Create Table
583
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
584
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
585
  `b` INT NOT NULL,
1 by brian
clean slate
586
  PRIMARY KEY (`a`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
587
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
588
drop table t1;
589
create table t1 ( 
722.2.15 by Monty Taylor
Fixed create.test.
590
a varchar(12) collate utf8_bin not null, 
1 by brian
clean slate
591
b int not null, primary key (a)
592
) select a, 1 as c from t2 ;
722.2.15 by Monty Taylor
Fixed create.test.
593
ERROR HY000: Field 'b' doesn't have a default value
1 by brian
clean slate
594
create table t1 ( 
722.2.15 by Monty Taylor
Fixed create.test.
595
a varchar(12) collate utf8_bin not null, 
1 by brian
clean slate
596
b int null, primary key (a)
597
) select a, 1 as c from t2 ;
598
show create table t1;
599
Table	Create Table
600
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
601
  `b` INT DEFAULT NULL,
602
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
603
  `c` INT NOT NULL,
722.2.15 by Monty Taylor
Fixed create.test.
604
  PRIMARY KEY (`a`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
605
) ENGINE=DEFAULT COLLATE = utf8_general_ci
722.2.15 by Monty Taylor
Fixed create.test.
606
drop table t1;
607
create table t1 ( 
608
a varchar(12) collate utf8_bin not null,
609
b int not null, primary key (a)
610
) select 'a' as a , 1 as b from t2 ;
611
show create table t1;
612
Table	Create Table
613
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
614
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
615
  `b` INT NOT NULL,
722.2.15 by Monty Taylor
Fixed create.test.
616
  PRIMARY KEY (`a`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
617
) ENGINE=DEFAULT COLLATE = utf8_general_ci
722.2.15 by Monty Taylor
Fixed create.test.
618
drop table t1;
619
create table t1 ( 
620
a varchar(12) collate utf8_bin,
621
b int not null, primary key (a)
622
) select 'a' as a , 1 as b from t2 ;
623
show create table t1;
624
Table	Create Table
625
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
626
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
627
  `b` INT NOT NULL,
722.2.15 by Monty Taylor
Fixed create.test.
628
  PRIMARY KEY (`a`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
629
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
630
drop table t1, t2;
631
create table t1 ( 
632
a1 int not null,
633
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int
634
);
635
insert into t1 values (1,1,1, 1,1,1, 1,1,1);
636
create table t2 ( 
722.2.15 by Monty Taylor
Fixed create.test.
637
a1 varchar(12) collate utf8_bin not null,
1 by brian
clean slate
638
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int,
639
primary key (a1)
640
) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1 ;
641
drop table t2;
642
create table t2 ( 
722.2.15 by Monty Taylor
Fixed create.test.
643
a1 varchar(12) collate utf8_bin,
1 by brian
clean slate
644
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int
645
) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1;
646
drop table t1, t2;
647
create table t1 ( 
648
a1 int, a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int
649
);
650
insert into t1 values (1,1,1, 1,1,1, 1,1,1);
651
create table t2 ( 
722.2.15 by Monty Taylor
Fixed create.test.
652
a1 varchar(12) collate utf8_bin not null,
1 by brian
clean slate
653
a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int,
654
primary key (a1)
655
) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1 ;
656
drop table t2;
657
create table t2 ( a int default 3, b int default 3)
658
select a1,a2 from t1;
659
show create table t2;
660
Table	Create Table
661
t2	CREATE TABLE `t2` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
662
  `a` INT DEFAULT '3',
663
  `b` INT DEFAULT '3',
664
  `a1` INT DEFAULT NULL,
665
  `a2` INT DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
666
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
667
drop table t1, t2;
668
create table t1 select * from t2;
669
ERROR 42S02: Table 'test.t2' doesn't exist
670
create table t1 select * from t1;
671
ERROR HY000: You can't specify target table 't1' for update in FROM clause
722.2.15 by Monty Taylor
Fixed create.test.
672
create table t1 select coalesce('a' collate utf8_swedish_ci,'b' collate utf8_bin);
673
ERROR HY000: Illegal mix of collations (utf8_swedish_ci,EXPLICIT) and (utf8_bin,EXPLICIT) for operation 'coalesce'
1 by brian
clean slate
674
create table t1 (primary key(a)) select "b" as b;
675
ERROR 42000: Key column 'a' doesn't exist in table
676
create table t1 (primary key (a)) (select 1 as a) union all (select 1 as a);
677
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
678
create table t1 (i int);
679
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
680
Warnings:
681
Note	1050	Table 't1' already exists
722.2.15 by Monty Taylor
Fixed create.test.
682
select * from t1;
683
i
907.2.3 by Toru Maesaka
Updated the testcase and result file for bug:311046 fix
684
1
1 by brian
clean slate
685
drop table t1;
722.2.15 by Monty Taylor
Fixed create.test.
686
create table t1 select coalesce('a' collate utf8_swedish_ci,'b' collate utf8_bin);
687
ERROR HY000: Illegal mix of collations (utf8_swedish_ci,EXPLICIT) and (utf8_bin,EXPLICIT) for operation 'coalesce'
1 by brian
clean slate
688
create temporary table t1 (j int);
689
create table if not exists t1 select 1;
690
Warnings:
691
Note	1050	Table 't1' already exists
692
select * from t1;
693
j
694
1
695
drop temporary table t1;
696
select * from t1;
697
ERROR 42S02: Table 'test.t1' doesn't exist
698
drop table t1;
699
ERROR 42S02: Unknown table 't1'
700
create table t1 (upgrade int);
701
drop table t1;
702
create table t1 (
703
c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, c8 int,
704
c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int,
705
key a001_long_123456789_123456789_123456789_123456789_123456789_1234 (
706
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
707
key a002_long_123456789_123456789_123456789_123456789_123456789_1234 (
708
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
709
key a003_long_123456789_123456789_123456789_123456789_123456789_1234 (
710
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
711
key a004_long_123456789_123456789_123456789_123456789_123456789_1234 (
712
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
713
key a005_long_123456789_123456789_123456789_123456789_123456789_1234 (
714
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
715
key a006_long_123456789_123456789_123456789_123456789_123456789_1234 (
716
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
717
key a007_long_123456789_123456789_123456789_123456789_123456789_1234 (
718
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
719
key a008_long_123456789_123456789_123456789_123456789_123456789_1234 (
720
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
721
key a009_long_123456789_123456789_123456789_123456789_123456789_1234 (
722
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
723
key a010_long_123456789_123456789_123456789_123456789_123456789_1234 (
724
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
725
key a011_long_123456789_123456789_123456789_123456789_123456789_1234 (
726
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
727
key a012_long_123456789_123456789_123456789_123456789_123456789_1234 (
728
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
729
key a013_long_123456789_123456789_123456789_123456789_123456789_1234 (
730
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
731
key a014_long_123456789_123456789_123456789_123456789_123456789_1234 (
732
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
733
key a015_long_123456789_123456789_123456789_123456789_123456789_1234 (
734
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
735
key a016_long_123456789_123456789_123456789_123456789_123456789_1234 (
736
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
737
key a017_long_123456789_123456789_123456789_123456789_123456789_1234 (
738
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
739
key a018_long_123456789_123456789_123456789_123456789_123456789_1234 (
740
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
741
key a019_long_123456789_123456789_123456789_123456789_123456789_1234 (
742
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
743
key a020_long_123456789_123456789_123456789_123456789_123456789_1234 (
744
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
745
key a021_long_123456789_123456789_123456789_123456789_123456789_1234 (
746
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
747
key a022_long_123456789_123456789_123456789_123456789_123456789_1234 (
748
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
749
key a023_long_123456789_123456789_123456789_123456789_123456789_1234 (
750
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
751
key a024_long_123456789_123456789_123456789_123456789_123456789_1234 (
752
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
753
key a025_long_123456789_123456789_123456789_123456789_123456789_1234 (
754
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
755
key a026_long_123456789_123456789_123456789_123456789_123456789_1234 (
756
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
757
key a027_long_123456789_123456789_123456789_123456789_123456789_1234 (
758
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
759
key a028_long_123456789_123456789_123456789_123456789_123456789_1234 (
760
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
761
key a029_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 a030_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 a031_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 a032_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 a033_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 a034_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 a035_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 a036_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 a037_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 a038_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 a039_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 a040_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 a041_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 a042_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 a043_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 a044_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 a045_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 a046_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 a047_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 a048_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 a049_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 a050_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 a051_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 a052_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 a053_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 a054_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 a055_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 a056_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 a057_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 a058_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 a059_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 a060_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 a061_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 a062_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 a063_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 a064_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
);
834
show create table t1;
835
Table	Create Table
836
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
837
  `c1` INT DEFAULT NULL,
838
  `c2` INT DEFAULT NULL,
839
  `c3` INT DEFAULT NULL,
840
  `c4` INT DEFAULT NULL,
841
  `c5` INT DEFAULT NULL,
842
  `c6` INT DEFAULT NULL,
843
  `c7` INT DEFAULT NULL,
844
  `c8` INT DEFAULT NULL,
845
  `c9` INT DEFAULT NULL,
846
  `c10` INT DEFAULT NULL,
847
  `c11` INT DEFAULT NULL,
848
  `c12` INT DEFAULT NULL,
849
  `c13` INT DEFAULT NULL,
850
  `c14` INT DEFAULT NULL,
851
  `c15` INT DEFAULT NULL,
852
  `c16` INT DEFAULT NULL,
1 by brian
clean slate
853
  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`),
854
  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`),
855
  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`),
856
  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`),
857
  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`),
858
  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`),
859
  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`),
860
  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`),
861
  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`),
862
  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`),
863
  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`),
864
  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`),
865
  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`),
866
  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`),
867
  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`),
868
  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`),
869
  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`),
870
  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`),
871
  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`),
872
  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`),
873
  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`),
874
  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`),
875
  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`),
876
  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`),
877
  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`),
878
  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`),
879
  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`),
880
  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`),
881
  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`),
882
  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`),
883
  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`),
884
  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`),
885
  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`),
886
  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`),
887
  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`),
888
  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`),
889
  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`),
890
  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`),
891
  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`),
892
  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`),
893
  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`),
894
  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`),
895
  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`),
896
  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`),
897
  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`),
898
  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`),
899
  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`),
900
  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`),
901
  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`),
902
  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`),
903
  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`),
904
  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`),
905
  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`),
906
  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`),
907
  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`),
908
  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`),
909
  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`),
910
  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`),
911
  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`),
912
  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`),
913
  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`),
914
  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`),
915
  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`),
916
  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`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
917
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
918
flush tables;
919
show create table t1;
920
Table	Create Table
921
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
922
  `c1` INT DEFAULT NULL,
923
  `c2` INT DEFAULT NULL,
924
  `c3` INT DEFAULT NULL,
925
  `c4` INT DEFAULT NULL,
926
  `c5` INT DEFAULT NULL,
927
  `c6` INT DEFAULT NULL,
928
  `c7` INT DEFAULT NULL,
929
  `c8` INT DEFAULT NULL,
930
  `c9` INT DEFAULT NULL,
931
  `c10` INT DEFAULT NULL,
932
  `c11` INT DEFAULT NULL,
933
  `c12` INT DEFAULT NULL,
934
  `c13` INT DEFAULT NULL,
935
  `c14` INT DEFAULT NULL,
936
  `c15` INT DEFAULT NULL,
937
  `c16` INT DEFAULT NULL,
1 by brian
clean slate
938
  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`),
939
  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`),
940
  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`),
941
  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`),
942
  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`),
943
  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`),
944
  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`),
945
  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`),
946
  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`),
947
  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`),
948
  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`),
949
  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`),
950
  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`),
951
  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`),
952
  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`),
953
  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`),
954
  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`),
955
  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`),
956
  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`),
957
  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`),
958
  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`),
959
  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`),
960
  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`),
961
  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`),
962
  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`),
963
  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`),
964
  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`),
965
  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`),
966
  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`),
967
  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`),
968
  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`),
969
  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`),
970
  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`),
971
  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`),
972
  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`),
973
  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`),
974
  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`),
975
  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`),
976
  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`),
977
  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`),
978
  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`),
979
  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`),
980
  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`),
981
  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`),
982
  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`),
983
  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`),
984
  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`),
985
  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`),
986
  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`),
987
  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`),
988
  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`),
989
  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`),
990
  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`),
991
  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`),
992
  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`),
993
  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`),
994
  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`),
995
  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`),
996
  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`),
997
  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`),
998
  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`),
999
  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`),
1000
  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`),
1001
  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`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1002
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
1003
drop table t1;
1004
create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, 
1005
c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int);
1006
alter table t1
1007
add key a001_long_123456789_123456789_123456789_123456789_123456789_1234 (
1008
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1009
add key a002_long_123456789_123456789_123456789_123456789_123456789_1234 (
1010
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1011
add key a003_long_123456789_123456789_123456789_123456789_123456789_1234 (
1012
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1013
add key a004_long_123456789_123456789_123456789_123456789_123456789_1234 (
1014
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1015
add key a005_long_123456789_123456789_123456789_123456789_123456789_1234 (
1016
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1017
add key a006_long_123456789_123456789_123456789_123456789_123456789_1234 (
1018
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1019
add key a007_long_123456789_123456789_123456789_123456789_123456789_1234 (
1020
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1021
add key a008_long_123456789_123456789_123456789_123456789_123456789_1234 (
1022
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1023
add key a009_long_123456789_123456789_123456789_123456789_123456789_1234 (
1024
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1025
add key a010_long_123456789_123456789_123456789_123456789_123456789_1234 (
1026
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1027
add key a011_long_123456789_123456789_123456789_123456789_123456789_1234 (
1028
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1029
add key a012_long_123456789_123456789_123456789_123456789_123456789_1234 (
1030
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1031
add key a013_long_123456789_123456789_123456789_123456789_123456789_1234 (
1032
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1033
add key a014_long_123456789_123456789_123456789_123456789_123456789_1234 (
1034
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1035
add key a015_long_123456789_123456789_123456789_123456789_123456789_1234 (
1036
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1037
add key a016_long_123456789_123456789_123456789_123456789_123456789_1234 (
1038
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1039
add key a017_long_123456789_123456789_123456789_123456789_123456789_1234 (
1040
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1041
add key a018_long_123456789_123456789_123456789_123456789_123456789_1234 (
1042
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1043
add key a019_long_123456789_123456789_123456789_123456789_123456789_1234 (
1044
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1045
add key a020_long_123456789_123456789_123456789_123456789_123456789_1234 (
1046
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1047
add key a021_long_123456789_123456789_123456789_123456789_123456789_1234 (
1048
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1049
add key a022_long_123456789_123456789_123456789_123456789_123456789_1234 (
1050
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1051
add key a023_long_123456789_123456789_123456789_123456789_123456789_1234 (
1052
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1053
add key a024_long_123456789_123456789_123456789_123456789_123456789_1234 (
1054
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1055
add key a025_long_123456789_123456789_123456789_123456789_123456789_1234 (
1056
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1057
add key a026_long_123456789_123456789_123456789_123456789_123456789_1234 (
1058
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1059
add key a027_long_123456789_123456789_123456789_123456789_123456789_1234 (
1060
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1061
add key a028_long_123456789_123456789_123456789_123456789_123456789_1234 (
1062
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
1063
add key a029_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 a030_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 a031_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 a032_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 a033_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 a034_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 a035_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 a036_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 a037_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 a038_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 a039_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 a040_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 a041_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 a042_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 a043_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 a044_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 a045_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 a046_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 a047_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 a048_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 a049_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 a050_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 a051_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 a052_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 a053_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 a054_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 a055_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 a056_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 a057_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 a058_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 a059_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 a060_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 a061_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 a062_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 a063_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 a064_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
show create table t1;
1136
Table	Create Table
1137
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1138
  `c1` INT DEFAULT NULL,
1139
  `c2` INT DEFAULT NULL,
1140
  `c3` INT DEFAULT NULL,
1141
  `c4` INT DEFAULT NULL,
1142
  `c5` INT DEFAULT NULL,
1143
  `c6` INT DEFAULT NULL,
1144
  `c7` INT DEFAULT NULL,
1145
  `c8` INT DEFAULT NULL,
1146
  `c9` INT DEFAULT NULL,
1147
  `c10` INT DEFAULT NULL,
1148
  `c11` INT DEFAULT NULL,
1149
  `c12` INT DEFAULT NULL,
1150
  `c13` INT DEFAULT NULL,
1151
  `c14` INT DEFAULT NULL,
1152
  `c15` INT DEFAULT NULL,
1153
  `c16` INT DEFAULT NULL,
1 by brian
clean slate
1154
  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`),
1155
  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`),
1156
  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`),
1157
  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`),
1158
  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`),
1159
  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`),
1160
  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`),
1161
  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`),
1162
  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`),
1163
  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`),
1164
  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`),
1165
  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`),
1166
  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`),
1167
  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`),
1168
  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`),
1169
  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`),
1170
  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`),
1171
  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`),
1172
  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`),
1173
  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`),
1174
  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`),
1175
  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`),
1176
  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`),
1177
  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`),
1178
  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`),
1179
  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`),
1180
  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`),
1181
  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`),
1182
  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`),
1183
  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`),
1184
  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`),
1185
  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`),
1186
  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`),
1187
  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`),
1188
  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`),
1189
  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`),
1190
  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`),
1191
  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`),
1192
  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`),
1193
  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`),
1194
  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`),
1195
  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`),
1196
  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`),
1197
  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`),
1198
  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`),
1199
  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`),
1200
  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`),
1201
  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`),
1202
  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`),
1203
  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`),
1204
  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`),
1205
  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`),
1206
  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`),
1207
  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`),
1208
  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`),
1209
  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`),
1210
  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`),
1211
  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`),
1212
  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`),
1213
  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`),
1214
  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`),
1215
  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`),
1216
  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`),
1217
  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`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1218
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
1219
flush tables;
1220
show create table t1;
1221
Table	Create Table
1222
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1223
  `c1` INT DEFAULT NULL,
1224
  `c2` INT DEFAULT NULL,
1225
  `c3` INT DEFAULT NULL,
1226
  `c4` INT DEFAULT NULL,
1227
  `c5` INT DEFAULT NULL,
1228
  `c6` INT DEFAULT NULL,
1229
  `c7` INT DEFAULT NULL,
1230
  `c8` INT DEFAULT NULL,
1231
  `c9` INT DEFAULT NULL,
1232
  `c10` INT DEFAULT NULL,
1233
  `c11` INT DEFAULT NULL,
1234
  `c12` INT DEFAULT NULL,
1235
  `c13` INT DEFAULT NULL,
1236
  `c14` INT DEFAULT NULL,
1237
  `c15` INT DEFAULT NULL,
1238
  `c16` INT DEFAULT NULL,
1 by brian
clean slate
1239
  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`),
1240
  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`),
1241
  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`),
1242
  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`),
1243
  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`),
1244
  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`),
1245
  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`),
1246
  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`),
1247
  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`),
1248
  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`),
1249
  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`),
1250
  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`),
1251
  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`),
1252
  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`),
1253
  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`),
1254
  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`),
1255
  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`),
1256
  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`),
1257
  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`),
1258
  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`),
1259
  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`),
1260
  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`),
1261
  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`),
1262
  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`),
1263
  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`),
1264
  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`),
1265
  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`),
1266
  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`),
1267
  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`),
1268
  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`),
1269
  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`),
1270
  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`),
1271
  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`),
1272
  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`),
1273
  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`),
1274
  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`),
1275
  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`),
1276
  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`),
1277
  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`),
1278
  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`),
1279
  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`),
1280
  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`),
1281
  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`),
1282
  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`),
1283
  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`),
1284
  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`),
1285
  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`),
1286
  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`),
1287
  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`),
1288
  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`),
1289
  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`),
1290
  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`),
1291
  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`),
1292
  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`),
1293
  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`),
1294
  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`),
1295
  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`),
1296
  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`),
1297
  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`),
1298
  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`),
1299
  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`),
1300
  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`),
1301
  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`),
1302
  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`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1303
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
1304
alter table t1 add key 
1305
a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
1306
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
1307
ERROR 42000: Too many keys specified; max 64 keys allowed
1308
drop table t1;
1309
create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, 
1310
c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, 
1311
c16 int, c17 int);
1312
alter table t1 add key i1 (
1313
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16, c17);
1314
ERROR 42000: Too many key parts specified; max 16 parts allowed
1315
alter table t1 add key 
1316
a001_long_123456789_123456789_123456789_123456789_123456789_12345 (c1);
1317
ERROR 42000: Identifier name 'a001_long_123456789_123456789_123456789_123456789_123456789_12345' is too long
1318
show create table t1;
1319
Table	Create Table
1320
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1321
  `c1` INT DEFAULT NULL,
1322
  `c2` INT DEFAULT NULL,
1323
  `c3` INT DEFAULT NULL,
1324
  `c4` INT DEFAULT NULL,
1325
  `c5` INT DEFAULT NULL,
1326
  `c6` INT DEFAULT NULL,
1327
  `c7` INT DEFAULT NULL,
1328
  `c8` INT DEFAULT NULL,
1329
  `c9` INT DEFAULT NULL,
1330
  `c10` INT DEFAULT NULL,
1331
  `c11` INT DEFAULT NULL,
1332
  `c12` INT DEFAULT NULL,
1333
  `c13` INT DEFAULT NULL,
1334
  `c14` INT DEFAULT NULL,
1335
  `c15` INT DEFAULT NULL,
1336
  `c16` INT DEFAULT NULL,
1337
  `c17` INT DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1338
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
1339
drop table t1;
1340
1341
Bug #26104 Bug on foreign key class constructor
1342
1343
Check that ref_columns is initalized correctly in the constructor
1344
and semantic checks in mysql_prepare_table work.
1345
1346
We do not need a storage engine that supports foreign keys
1347
for this test, as the checks are purely syntax-based, and the
1348
syntax is supported for all engines.
1349
1350
drop table if exists t1,t2;
1351
create table t1(a int not null, b int not null, primary key (a, b));
1352
create table t2(a int not null, b int not null, c int not null, primary key (a),
1353
foreign key fk_bug26104 (b,c) references t1(a));
1354
ERROR 42000: Incorrect foreign key definition for 'fk_bug26104': Key reference and table reference don't match
1355
drop table t1;
1356
create table t1(f1 int,f2 int);
1357
insert into t1 value(1,1),(1,2),(1,3),(2,1),(2,2),(2,3);
1358
flush status;
1359
create table t2 select sql_big_result f1,count(f2) from t1 group by f1;
1360
show status like 'handler_read%';
1361
Variable_name	Value
722.2.15 by Monty Taylor
Fixed create.test.
1362
Handler_read_first	1
1363
Handler_read_key	3
1 by brian
clean slate
1364
Handler_read_next	0
1365
Handler_read_prev	0
1366
Handler_read_rnd	0
1561.3.11 by Joe Daly
get tests working
1367
Handler_read_rnd_next	7
1 by brian
clean slate
1368
drop table t1,t2;
1369
CREATE TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1));
1370
DROP TABLE t1;
1371
CREATE TABLE t1(c1 VARCHAR(33), KEY (c1) USING BTREE);
1372
DROP TABLE t1;
1106.3.1 by Brian Aker
Heap is now tmp only table
1373
CREATE TEMPORARY TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1) USING HASH) ENGINE=MEMORY;
1 by brian
clean slate
1374
DROP TABLE t1;
1106.3.1 by Brian Aker
Heap is now tmp only table
1375
CREATE TEMPORARY TABLE t1(c1 VARCHAR(33), KEY USING HASH (c1) USING BTREE) ENGINE=MEMORY;
1 by brian
clean slate
1376
DROP TABLE t1;
1377
End of 5.0 tests
1378
CREATE TABLE t1 (a int, b int);
1379
insert into t1 values (1,1),(1,2);
1380
CREATE TABLE t2 (primary key (a)) select * from t1;
1381
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
1382
drop table if exists t2;
1383
Warnings:
1384
Note	1051	Unknown table 't2'
1385
CREATE TEMPORARY TABLE t2 (primary key (a)) select * from t1;
1386
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
1387
drop table if exists t2;
1388
Warnings:
1389
Note	1051	Unknown table 't2'
1390
CREATE TEMPORARY TABLE t2 (a int, b int, primary key (a));
1391
CREATE TEMPORARY TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
1392
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
1393
SELECT * from t2;
1394
a	b
1395
TRUNCATE table t2;
1396
INSERT INTO t2 select * from t1;
1397
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
1398
SELECT * from t2;
1399
a	b
1400
drop table t1,t2;
1401
CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1402
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1403
DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1404
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1405
USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1406
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1407
SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1408
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1309.1.4 by Brian Aker
Re-enabling test for OSX.
1409
create database имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1410
use имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1411
select database();
1412
database()
1413
имя_базы_в_кодировке_утф8_длиной_больше_чем_45
1414
use test;
1415
select SCHEMA_NAME from data_dictionary.schemas
1416
where schema_name='имя_базы_в_кодировке_утф8_длиной_больше_чем_45';
1417
SCHEMA_NAME
1418
имя_базы_в_кодировке_утф8_длиной_больше_чем_45
1419
drop database имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1420
create table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48
1421
(
1422
имя_поля_в_кодировке_утф8_длиной_больше_чем_45 int,
1423
index имя_индекса_в_кодировке_утф8_длиной_больше_чем_48 (имя_поля_в_кодировке_утф8_длиной_больше_чем_45)
1424
);
1425
select * from имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
1426
имя_поля_в_кодировке_утф8_длиной_больше_чем_45
1427
select TABLE_NAME from data_dictionary.tables where
1428
table_schema='test';
1429
TABLE_NAME
1430
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48
1431
select COLUMN_NAME from data_dictionary.columns where
1432
table_schema='test';
1433
COLUMN_NAME
1434
имя_поля_в_кодировке_утф8_длиной_больше_чем_45
1435
select INDEX_NAME from data_dictionary.indexes where
1436
table_schema='test';
1437
INDEX_NAME
1438
имя_индекса_в_кодировке_утф8_длиной_больше_чем_48
1439
show create table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
1440
Table	Create Table
1441
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48	CREATE TABLE `имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1442
  `имя_поля_в_кодировке_утф8_длиной_больше_чем_45` INT DEFAULT NULL,
1309.1.4 by Brian Aker
Re-enabling test for OSX.
1443
  KEY `имя_индекса_в_кодировке_утф8_длиной_больше_чем_48` (`имя_поля_в_кодировке_утф8_длиной_больше_чем_45`)
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1444
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1309.1.4 by Brian Aker
Re-enabling test for OSX.
1445
drop table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
1273.13.35 by Brian Aker
Remove processlist from old I_S.
1446
create table t1 like data_dictionary.processlist;
1447
ERROR HY000: Can't create table 'test.t1' (errno: 1)
1448
create table t1 like data_dictionary.processlist engine=innodb;
1 by brian
clean slate
1449
show create table t1;
1450
Table	Create Table
1451
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1452
  `ID` BIGINT NOT NULL,
1453
  `USER` VARCHAR(16) NOT NULL,
1454
  `HOST` VARCHAR(1025) NOT NULL,
1455
  `DB` VARCHAR(256) NOT NULL,
1456
  `COMMAND` VARCHAR(16) NOT NULL,
1457
  `TIME` BIGINT NOT NULL,
1726.3.8 by Andrew Hutchings
Fix tests
1458
  `STATE` VARCHAR(256) DEFAULT NULL,
1459
  `INFO` VARCHAR(100) DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1460
) ENGINE=InnoDB COLLATE = utf8_general_ci
1 by brian
clean slate
1461
drop table t1;
1273.13.35 by Brian Aker
Remove processlist from old I_S.
1462
create temporary table t1 like data_dictionary.processlist;
1395.1.6 by Brian Aker
Modified TableIdentifier output for errors.
1463
ERROR HY000: Can't create table 'test.#t1' (errno: 138)
1273.13.35 by Brian Aker
Remove processlist from old I_S.
1464
create temporary table t1 like data_dictionary.processlist engine=myisam;
1 by brian
clean slate
1465
show create table t1;
1466
Table	Create Table
1467
t1	CREATE TEMPORARY TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1468
  `ID` BIGINT NOT NULL,
1469
  `USER` VARCHAR(16) NOT NULL,
1470
  `HOST` VARCHAR(1025) NOT NULL,
1471
  `DB` VARCHAR(256) NOT NULL,
1472
  `COMMAND` VARCHAR(16) NOT NULL,
1473
  `TIME` BIGINT NOT NULL,
1726.3.8 by Andrew Hutchings
Fix tests
1474
  `STATE` VARCHAR(256) DEFAULT NULL,
1475
  `INFO` VARCHAR(100) DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1476
) ENGINE=MyISAM COLLATE = utf8_general_ci
1 by brian
clean slate
1477
drop table t1;
1478
1479
# --
1480
# -- Bug#21380: DEFAULT definition not always transfered by CREATE
1481
# -- TABLE/SELECT to the new table.
1482
# --
1483
1484
DROP TABLE IF EXISTS t1;
1485
DROP TABLE IF EXISTS t2;
1486
1487
CREATE TABLE t1(
1488
c1 INT DEFAULT 12 COMMENT 'column1',
1489
c2 INT NULL COMMENT 'column2',
1490
c3 INT NOT NULL COMMENT 'column3',
722.2.15 by Monty Taylor
Fixed create.test.
1491
c4 VARCHAR(255) NOT NULL DEFAULT 'a',
1 by brian
clean slate
1492
c5 VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT 'b',
1493
c6 VARCHAR(255))
1245.3.4 by Stewart Smith
make the equals of KEY=VALUE required for CREATE TABLE options
1494
COLLATE=utf8_bin;
1 by brian
clean slate
1495
1496
SHOW CREATE TABLE t1;
1497
Table	Create Table
1498
t1	CREATE TABLE `t1` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1499
  `c1` INT DEFAULT '12' COMMENT 'column1',
1500
  `c2` INT DEFAULT NULL COMMENT 'column2',
1501
  `c3` INT NOT NULL COMMENT 'column3',
1502
  `c4` VARCHAR(255) COLLATE utf8_bin NOT NULL DEFAULT 'a',
1503
  `c5` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT 'b',
1504
  `c6` VARCHAR(255) COLLATE utf8_bin DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1505
) ENGINE=DEFAULT COLLATE = utf8_bin
1 by brian
clean slate
1506
1507
CREATE TABLE t2 AS SELECT * FROM t1;
1508
1509
SHOW CREATE TABLE t2;
1510
Table	Create Table
1511
t2	CREATE TABLE `t2` (
1743.5.2 by LinuxJedi
Alter many test cases for the new SHOW CREATE TABLE output
1512
  `c1` INT DEFAULT '12' COMMENT 'column1',
1513
  `c2` INT DEFAULT NULL COMMENT 'column2',
1514
  `c3` INT NOT NULL COMMENT 'column3',
1515
  `c4` VARCHAR(255) COLLATE utf8_bin NOT NULL DEFAULT 'a',
1516
  `c5` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT 'b',
1517
  `c6` VARCHAR(255) COLLATE utf8_bin DEFAULT NULL
1638.10.63 by Stewart Smith
create.result with explicit COLLATE in SHOW CREATE TABLE
1518
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1 by brian
clean slate
1519
1520
DROP TABLE t2;
1521
1522
# -- End of test case for Bug#21380.
1523
1524
# --
1525
# -- Bug#18834: ALTER TABLE ADD INDEX on table with two timestamp fields
1526
# --
1527
1528
DROP TABLE IF EXISTS t1;
1529
DROP TABLE IF EXISTS t2;
1530
DROP TABLE IF EXISTS t3;
1531
1532
CREATE TABLE t1(c1 TIMESTAMP, c2 TIMESTAMP);
1533
1534
907.1.7 by Jay Pipes
Merged in remove-timezone work
1535
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP NULL);
722.2.15 by Monty Taylor
Fixed create.test.
1536
drop table t2;
896.4.9 by Stewart Smith
No longer write the FRM. just use proto.
1537
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP DEFAULT '1982-01-29');
722.2.15 by Monty Taylor
Fixed create.test.
1538
drop table t2;
1 by brian
clean slate
1539
1540
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP);
722.2.15 by Monty Taylor
Fixed create.test.
1541
drop table t2;
1 by brian
clean slate
1542
1543
# -- Check that NULL column still can be created.
1544
CREATE TABLE t2(c1 TIMESTAMP NULL);
1545
1546
# -- Check ALTER TABLE.
1547
ALTER TABLE t1 ADD INDEX(c1);
1548
1549
# -- Check DATETIME.
1550
1551
CREATE TABLE t3(c1 DATETIME NOT NULL);
1552
INSERT INTO t3 VALUES (0);
873.1.7 by Jay Pipes
Fixes Field_datetime::store(NUMBER) to throw an error when invalid
1553
ERROR HY000: Received an invalid datetime value '0'.
1 by brian
clean slate
1554
873.1.7 by Jay Pipes
Fixes Field_datetime::store(NUMBER) to throw an error when invalid
1555
ALTER TABLE t3 ADD INDEX(c1);
1 by brian
clean slate
1556
1557
# -- Cleanup.
1558
DROP TABLE t1;
1559
DROP TABLE t2;
1560
DROP TABLE t3;
1561
1562
# -- End of Bug#18834.