~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/create.result

  • Committer: Brian Aker
  • Date: 2010-11-22 00:16:44 UTC
  • mto: (1945.2.1 quick)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: brian@tangent.org-20101122001644-pi6jv0d65e82xn38
Merge in lock refactor, this just encapsulates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
create temporary table t1 (ordid int not null auto_increment, ord  varchar(50) not null, primary key (ord,ordid)) engine=MEMORY;
37
37
ERROR 42000: Incorrect table definition; there can be only one auto column and it must be defined as a key
38
38
create table not_existing_database.test (a int);
39
 
ERROR 42000: Unknown database 'not_existing_database'
 
39
ERROR 42000: Unknown schema 'not_existing_database'
40
40
create table `a/a` (a int);
41
41
show create table `a/a`;
42
42
Table   Create Table
43
43
a/a     CREATE TABLE `a/a` (
44
 
  `a` int DEFAULT NULL
45
 
) ENGINE=DEFAULT
 
44
  `a` INT DEFAULT NULL
 
45
) ENGINE=DEFAULT COLLATE = utf8_general_ci
46
46
create table t1 like `a/a`;
 
47
show create table t1;
 
48
Table   Create Table
 
49
t1      CREATE TABLE `t1` (
 
50
  `a` INT DEFAULT NULL
 
51
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
52
show create table `t1`;
 
53
Table   Create Table
 
54
t1      CREATE TABLE `t1` (
 
55
  `a` INT DEFAULT NULL
 
56
) ENGINE=DEFAULT COLLATE = utf8_general_ci
47
57
drop table `a/a`;
48
58
drop table `t1`;
49
59
create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);
76
86
drop table t1;
77
87
drop database if exists mysqltest;
78
88
Warnings:
79
 
Note    1008    Can't drop database 'mysqltest'; database doesn't exist
 
89
Note    1008    Can't drop schema 'mysqltest'; schema doesn't exist
80
90
create database mysqltest;
81
91
create table mysqltest.$test1 (a$1 int, $b int, c$ int);
82
92
insert into mysqltest.$test1 values (1,2,3);
108
118
create table t2 select x from t1 where 1=2;
109
119
describe t1;
110
120
Field   Type    Null    Default Default_is_NULL On_Update
111
 
x       VARCHAR TRUE            TRUE    
 
121
x       VARCHAR YES             YES     
112
122
describe t2;
113
123
Field   Type    Null    Default Default_is_NULL On_Update
114
 
x       VARCHAR TRUE            TRUE    
 
124
x       VARCHAR YES             YES     
115
125
drop table t2;
116
126
create table t2 select now() as a , curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f;
117
127
describe t2;
118
128
Field   Type    Null    Default Default_is_NULL On_Update
119
 
a       DATETIME        TRUE            TRUE    
120
 
c       DATE    FALSE           FALSE   
121
 
d       INTEGER FALSE           FALSE   
122
 
e       DECIMAL FALSE           FALSE   
123
 
f       BIGINT  FALSE           FALSE   
 
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      
124
134
drop table t2;
125
135
create table t2 select CAST("2001-12-29" AS DATE) as d, CAST("2001-12-29  20:45:11" AS DATETIME) as dt;
126
136
describe t2;
127
137
Field   Type    Null    Default Default_is_NULL On_Update
128
 
d       DATE    TRUE            TRUE    
129
 
dt      DATETIME        TRUE            TRUE    
 
138
d       DATE    YES             YES     
 
139
dt      DATETIME        YES             YES     
130
140
drop table t1,t2;
131
141
create table t1 (a int);
132
142
create table t2 (a int) select * from t1;
133
143
describe t1;
134
144
Field   Type    Null    Default Default_is_NULL On_Update
135
 
a       INTEGER TRUE            TRUE    
 
145
a       INTEGER YES             YES     
136
146
describe t2;
137
147
Field   Type    Null    Default Default_is_NULL On_Update
138
 
a       INTEGER TRUE            TRUE    
 
148
a       INTEGER YES             YES     
139
149
drop table if exists t2;
140
150
create table t2 (a int, a float) select * from t1;
141
151
ERROR 42S21: Duplicate column name 'a'
166
176
show create table t1;
167
177
Table   Create Table
168
178
t1      CREATE TABLE `t1` (
169
 
  `a` int NOT NULL,
170
 
  `b` int DEFAULT NULL,
 
179
  `a` INT NOT NULL,
 
180
  `b` INT DEFAULT NULL,
171
181
  PRIMARY KEY (`a`),
172
182
  KEY `b` (`b`),
173
183
  KEY `b_2` (`b`),
200
210
  KEY `b_29` (`b`),
201
211
  KEY `b_30` (`b`),
202
212
  KEY `b_31` (`b`)
203
 
) ENGINE=DEFAULT
 
213
) ENGINE=DEFAULT COLLATE = utf8_general_ci
204
214
drop table t1;
205
215
create table t1 select if(1,'1','0'), month("2002-08-02");
206
216
drop table t1;
217
227
show create table t1;
218
228
Table   Create Table
219
229
t1      CREATE TEMPORARY TABLE `t1` (
220
 
  `a` int NOT NULL
221
 
) ENGINE=MEMORY
 
230
  `a` INT NOT NULL
 
231
) ENGINE=MEMORY COLLATE = utf8_general_ci
222
232
drop table t1;
223
233
SET SESSION storage_engine="gemini";
224
234
ERROR 42000: Unknown table engine 'gemini'
229
239
show create table t1;
230
240
Table   Create Table
231
241
t1      CREATE TEMPORARY TABLE `t1` (
232
 
  `a` int NOT NULL
233
 
) ENGINE=MEMORY
 
242
  `a` INT NOT NULL
 
243
) ENGINE=MEMORY COLLATE = utf8_general_ci
234
244
SET SESSION storage_engine=default;
235
245
drop table t1;
236
246
create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
280
290
create table `t1 `(a int);
281
291
ERROR 42000: Incorrect table name 't1 '
282
292
create database `db1 `;
283
 
ERROR 42000: Incorrect database name 'db1 '
 
293
ERROR 42000: Incorrect schema name 'db1 '
284
294
create table t1(`a ` int);
285
295
ERROR 42000: Incorrect column name 'a '
286
296
create table t1 (a int,);
304
314
show create table t3;
305
315
Table   Create Table
306
316
t3      CREATE TABLE `t3` (
307
 
  `id` int NOT NULL,
308
 
  `name` varchar(20) DEFAULT NULL
309
 
) ENGINE=DEFAULT
 
317
  `id` INT NOT NULL,
 
318
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
 
319
) ENGINE=DEFAULT COLLATE = utf8_general_ci
310
320
select * from t3;
311
321
id      name
312
322
create table if not exists t3 like t1;
319
329
show create table t3;
320
330
Table   Create Table
321
331
t3      CREATE TEMPORARY TABLE `t3` (
322
 
  `id` int NOT NULL
323
 
) ENGINE=DEFAULT
 
332
  `id` INT NOT NULL
 
333
) ENGINE=DEFAULT COLLATE = utf8_general_ci
324
334
select * from t3;
325
335
id
326
336
drop table t3;
327
337
show create table t3;
328
338
Table   Create Table
329
339
t3      CREATE TABLE `t3` (
330
 
  `id` int NOT NULL,
331
 
  `name` varchar(20) DEFAULT NULL
332
 
) ENGINE=DEFAULT
 
340
  `id` INT NOT NULL,
 
341
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
 
342
) ENGINE=DEFAULT COLLATE = utf8_general_ci
333
343
select * from t3;
334
344
id      name
335
345
drop table t2, t3;
339
349
show create table t3;
340
350
Table   Create Table
341
351
t3      CREATE TEMPORARY TABLE `t3` (
342
 
  `id` int NOT NULL,
343
 
  `name` varchar(20) DEFAULT NULL
344
 
) ENGINE=DEFAULT
 
352
  `id` INT NOT NULL,
 
353
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
 
354
) ENGINE=DEFAULT COLLATE = utf8_general_ci
345
355
create table t2 like t3;
346
356
show create table t2;
347
357
Table   Create Table
348
358
t2      CREATE TABLE `t2` (
349
 
  `id` int NOT NULL,
350
 
  `name` varchar(20) DEFAULT NULL
351
 
) ENGINE=DEFAULT
 
359
  `id` INT NOT NULL,
 
360
  `name` VARCHAR(20) COLLATE utf8_general_ci DEFAULT NULL
 
361
) ENGINE=DEFAULT COLLATE = utf8_general_ci
352
362
select * from t2;
353
363
id      name
354
364
create table t3 like t1;
356
366
create table t3 like mysqltest.t3;
357
367
ERROR 42S01: Table 't3' already exists
358
368
create table non_existing_database.t1 like t1;
359
 
ERROR 42000: Unknown database 'non_existing_database'
 
369
ERROR 42000: Unknown schema 'non_existing_database'
360
370
create table t3 like non_existing_table;
361
371
ERROR 42S02: Table 'test.non_existing_table' doesn't exist
362
372
create temporary table t3 like t1;
371
381
show create table t1;
372
382
Table   Create Table
373
383
t1      CREATE TEMPORARY TABLE `t1` (
374
 
  `a` int NOT NULL
375
 
) ENGINE=MEMORY
 
384
  `a` INT NOT NULL
 
385
) ENGINE=MEMORY COLLATE = utf8_general_ci
376
386
drop table t1;
377
387
SET SESSION storage_engine="gemini";
378
388
ERROR 42000: Unknown table engine 'gemini'
383
393
show create table t1;
384
394
Table   Create Table
385
395
t1      CREATE TEMPORARY TABLE `t1` (
386
 
  `a` int NOT NULL
387
 
) ENGINE=MEMORY
 
396
  `a` INT NOT NULL
 
397
) ENGINE=MEMORY COLLATE = utf8_general_ci
388
398
SET SESSION storage_engine=default;
389
399
drop table t1;
390
400
create table t1(a int,b int,c int,d date,e char,f datetime,h blob);
418
428
from t1;
419
429
explain t2;
420
430
Field   Type    Null    Default Default_is_NULL On_Update
421
 
a       INTEGER TRUE            TRUE    
422
 
b       BIGINT  FALSE           FALSE   
423
 
c       BIGINT  FALSE           FALSE   
424
 
d       DATE    TRUE            TRUE    
425
 
e       VARCHAR TRUE            TRUE    
426
 
f       DATETIME        TRUE            TRUE    
427
 
h       BLOB    TRUE            TRUE    
 
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     
428
438
select * from t2;
429
439
a       b       c       d       e       f       h
430
440
1       -7      7       2000-01-01      b       2000-01-01 00:00:00     yet another binary data
435
445
show create table t2;
436
446
Table   Create Table
437
447
t2      CREATE TABLE `t2` (
438
 
  `ifnull(a,a)` int DEFAULT NULL,
439
 
  `ifnull(b,b)` int DEFAULT NULL,
440
 
  `ifnull(d,d)` int DEFAULT NULL,
441
 
  `ifnull(e,e)` bigint DEFAULT NULL,
442
 
  `ifnull(f,f)` double(3,2) DEFAULT NULL,
443
 
  `ifnull(g,g)` double(4,3) DEFAULT NULL,
444
 
  `ifnull(h,h)` decimal(5,4) DEFAULT NULL,
445
 
  `ifnull(j,j)` date DEFAULT NULL,
446
 
  `ifnull(k,k)` timestamp NULL DEFAULT NULL,
447
 
  `ifnull(l,l)` datetime DEFAULT NULL,
448
 
  `ifnull(m,m)` varchar(1) DEFAULT NULL,
449
 
  `ifnull(o,o)` varchar(10) DEFAULT NULL
450
 
) ENGINE=DEFAULT
 
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
 
460
) ENGINE=DEFAULT COLLATE = utf8_general_ci
451
461
drop table t1,t2;
452
462
create table t1(str varchar(10) default 'def',strnull varchar(10),intg int default '10',rel double default '3.14');
453
463
insert into t1 values ('','',0,0.0);
454
464
describe t1;
455
465
Field   Type    Null    Default Default_is_NULL On_Update
456
 
str     VARCHAR TRUE    def     FALSE   
457
 
strnull VARCHAR TRUE            TRUE    
458
 
intg    INTEGER TRUE    10      FALSE   
459
 
rel     DOUBLE  TRUE    3.14    FALSE   
 
466
str     VARCHAR YES     def     NO      
 
467
strnull VARCHAR YES             YES     
 
468
intg    INTEGER YES     10      NO      
 
469
rel     DOUBLE  YES     3.14    NO      
460
470
create table t2 select default(str) as str, default(strnull) as strnull, default(intg) as intg, default(rel) as rel from t1;
461
471
describe t2;
462
472
Field   Type    Null    Default Default_is_NULL On_Update
463
 
str     VARCHAR TRUE            TRUE    
464
 
strnull VARCHAR TRUE            TRUE    
465
 
intg    INTEGER TRUE            TRUE    
466
 
rel     DOUBLE  TRUE            TRUE    
 
473
str     VARCHAR YES             YES     
 
474
strnull VARCHAR YES             YES     
 
475
intg    INTEGER YES             YES     
 
476
rel     DOUBLE  YES             YES     
467
477
drop table t1, t2;
468
478
create table t1(name varchar(10), age int default -1);
469
479
describe t1;
470
480
Field   Type    Null    Default Default_is_NULL On_Update
471
 
name    VARCHAR TRUE            TRUE    
472
 
age     INTEGER TRUE    -1      FALSE   
 
481
name    VARCHAR YES             YES     
 
482
age     INTEGER YES     -1      NO      
473
483
create table t2(name varchar(10), age int default - 1);
474
484
describe t2;
475
485
Field   Type    Null    Default Default_is_NULL On_Update
476
 
name    VARCHAR TRUE            TRUE    
477
 
age     INTEGER TRUE    -1      FALSE   
 
486
name    VARCHAR YES             YES     
 
487
age     INTEGER YES     -1      NO      
478
488
drop table t1, t2;
479
489
create table t1(cenum enum('a'));
480
490
create table t2(cenum enum('a','a'));
514
524
create table t1(test.column.name int);
515
525
ERROR 42000: Incorrect table name 'column'
516
526
create table t1(xyz.t1.name int);
517
 
ERROR 42000: Incorrect database name 'xyz'
 
527
ERROR 42000: Incorrect schema name 'xyz'
518
528
create table t1(t1.name int);
519
529
create table t2(test.t2.name int);
520
530
drop table t1,t2;
522
532
CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) AS f2 FROM t1;
523
533
DESC t2;
524
534
Field   Type    Null    Default Default_is_NULL On_Update
525
 
f2      VARCHAR TRUE            TRUE    
 
535
f2      VARCHAR YES             YES     
526
536
DROP TABLE t1,t2;
527
537
CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1;
528
538
SELECT * FROM t12913;
533
543
use mysqltest;
534
544
drop database mysqltest;
535
545
create table test.t1 like x;
536
 
ERROR 3D000: No database selected
 
546
ERROR 3D000: No schema selected
537
547
drop table if exists test.t1;
538
548
create database mysqltest;
539
549
create database if not exists mysqltest;
540
550
Warnings:
541
 
Note    1007    Can't create database 'mysqltest'; database exists
 
551
Note    1007    Can't create schema 'mysqltest'; schema exists
542
552
show create database mysqltest;
543
553
Database        Create Database
544
554
mysqltest       CREATE DATABASE `mysqltest` COLLATE = utf8_general_ci
556
566
show create table t1;
557
567
Table   Create Table
558
568
t1      CREATE TABLE `t1` (
559
 
  `a` varchar(112) COLLATE utf8_bin NOT NULL,
 
569
  `a` VARCHAR(112) COLLATE utf8_bin NOT NULL,
560
570
  PRIMARY KEY (`a`)
561
 
) ENGINE=DEFAULT
 
571
) ENGINE=DEFAULT COLLATE = utf8_general_ci
562
572
drop table t1;
563
573
CREATE TABLE t2 (
564
574
a int default NULL
571
581
show create table t1;
572
582
Table   Create Table
573
583
t1      CREATE TABLE `t1` (
574
 
  `a` varchar(12) COLLATE utf8_bin NOT NULL,
575
 
  `b` int NOT NULL,
 
584
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
 
585
  `b` INT NOT NULL,
576
586
  PRIMARY KEY (`a`)
577
 
) ENGINE=DEFAULT
 
587
) ENGINE=DEFAULT COLLATE = utf8_general_ci
578
588
drop table t1;
579
589
create table t1 ( 
580
590
a varchar(12) collate utf8_bin not null, 
588
598
show create table t1;
589
599
Table   Create Table
590
600
t1      CREATE TABLE `t1` (
591
 
  `b` int DEFAULT NULL,
592
 
  `a` varchar(12) COLLATE utf8_bin NOT NULL,
593
 
  `c` int NOT NULL,
 
601
  `b` INT DEFAULT NULL,
 
602
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
 
603
  `c` INT NOT NULL,
594
604
  PRIMARY KEY (`a`)
595
 
) ENGINE=DEFAULT
 
605
) ENGINE=DEFAULT COLLATE = utf8_general_ci
596
606
drop table t1;
597
607
create table t1 ( 
598
608
a varchar(12) collate utf8_bin not null,
601
611
show create table t1;
602
612
Table   Create Table
603
613
t1      CREATE TABLE `t1` (
604
 
  `a` varchar(12) COLLATE utf8_bin NOT NULL,
605
 
  `b` int NOT NULL,
 
614
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
 
615
  `b` INT NOT NULL,
606
616
  PRIMARY KEY (`a`)
607
 
) ENGINE=DEFAULT
 
617
) ENGINE=DEFAULT COLLATE = utf8_general_ci
608
618
drop table t1;
609
619
create table t1 ( 
610
620
a varchar(12) collate utf8_bin,
613
623
show create table t1;
614
624
Table   Create Table
615
625
t1      CREATE TABLE `t1` (
616
 
  `a` varchar(12) COLLATE utf8_bin NOT NULL,
617
 
  `b` int NOT NULL,
 
626
  `a` VARCHAR(12) COLLATE utf8_bin NOT NULL,
 
627
  `b` INT NOT NULL,
618
628
  PRIMARY KEY (`a`)
619
 
) ENGINE=DEFAULT
 
629
) ENGINE=DEFAULT COLLATE = utf8_general_ci
620
630
drop table t1, t2;
621
631
create table t1 ( 
622
632
a1 int not null,
649
659
show create table t2;
650
660
Table   Create Table
651
661
t2      CREATE TABLE `t2` (
652
 
  `a` int DEFAULT '3',
653
 
  `b` int DEFAULT '3',
654
 
  `a1` int DEFAULT NULL,
655
 
  `a2` int DEFAULT NULL
656
 
) ENGINE=DEFAULT
 
662
  `a` INT DEFAULT '3',
 
663
  `b` INT DEFAULT '3',
 
664
  `a1` INT DEFAULT NULL,
 
665
  `a2` INT DEFAULT NULL
 
666
) ENGINE=DEFAULT COLLATE = utf8_general_ci
657
667
drop table t1, t2;
658
668
create table t1 select * from t2;
659
669
ERROR 42S02: Table 'test.t2' doesn't exist
824
834
show create table t1;
825
835
Table   Create Table
826
836
t1      CREATE TABLE `t1` (
827
 
  `c1` int DEFAULT NULL,
828
 
  `c2` int DEFAULT NULL,
829
 
  `c3` int DEFAULT NULL,
830
 
  `c4` int DEFAULT NULL,
831
 
  `c5` int DEFAULT NULL,
832
 
  `c6` int DEFAULT NULL,
833
 
  `c7` int DEFAULT NULL,
834
 
  `c8` int DEFAULT NULL,
835
 
  `c9` int DEFAULT NULL,
836
 
  `c10` int DEFAULT NULL,
837
 
  `c11` int DEFAULT NULL,
838
 
  `c12` int DEFAULT NULL,
839
 
  `c13` int DEFAULT NULL,
840
 
  `c14` int DEFAULT NULL,
841
 
  `c15` int DEFAULT NULL,
842
 
  `c16` int DEFAULT NULL,
 
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,
843
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`),
844
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`),
845
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`),
904
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`),
905
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`),
906
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`)
907
 
) ENGINE=DEFAULT
 
917
) ENGINE=DEFAULT COLLATE = utf8_general_ci
908
918
flush tables;
909
919
show create table t1;
910
920
Table   Create Table
911
921
t1      CREATE TABLE `t1` (
912
 
  `c1` int DEFAULT NULL,
913
 
  `c2` int DEFAULT NULL,
914
 
  `c3` int DEFAULT NULL,
915
 
  `c4` int DEFAULT NULL,
916
 
  `c5` int DEFAULT NULL,
917
 
  `c6` int DEFAULT NULL,
918
 
  `c7` int DEFAULT NULL,
919
 
  `c8` int DEFAULT NULL,
920
 
  `c9` int DEFAULT NULL,
921
 
  `c10` int DEFAULT NULL,
922
 
  `c11` int DEFAULT NULL,
923
 
  `c12` int DEFAULT NULL,
924
 
  `c13` int DEFAULT NULL,
925
 
  `c14` int DEFAULT NULL,
926
 
  `c15` int DEFAULT NULL,
927
 
  `c16` int DEFAULT NULL,
 
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,
928
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`),
929
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`),
930
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`),
989
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`),
990
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`),
991
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`)
992
 
) ENGINE=DEFAULT
 
1002
) ENGINE=DEFAULT COLLATE = utf8_general_ci
993
1003
drop table t1;
994
1004
create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, 
995
1005
c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int);
1125
1135
show create table t1;
1126
1136
Table   Create Table
1127
1137
t1      CREATE TABLE `t1` (
1128
 
  `c1` int DEFAULT NULL,
1129
 
  `c2` int DEFAULT NULL,
1130
 
  `c3` int DEFAULT NULL,
1131
 
  `c4` int DEFAULT NULL,
1132
 
  `c5` int DEFAULT NULL,
1133
 
  `c6` int DEFAULT NULL,
1134
 
  `c7` int DEFAULT NULL,
1135
 
  `c8` int DEFAULT NULL,
1136
 
  `c9` int DEFAULT NULL,
1137
 
  `c10` int DEFAULT NULL,
1138
 
  `c11` int DEFAULT NULL,
1139
 
  `c12` int DEFAULT NULL,
1140
 
  `c13` int DEFAULT NULL,
1141
 
  `c14` int DEFAULT NULL,
1142
 
  `c15` int DEFAULT NULL,
1143
 
  `c16` int DEFAULT NULL,
 
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,
1144
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`),
1145
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`),
1146
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`),
1205
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`),
1206
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`),
1207
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`)
1208
 
) ENGINE=DEFAULT
 
1218
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1209
1219
flush tables;
1210
1220
show create table t1;
1211
1221
Table   Create Table
1212
1222
t1      CREATE TABLE `t1` (
1213
 
  `c1` int DEFAULT NULL,
1214
 
  `c2` int DEFAULT NULL,
1215
 
  `c3` int DEFAULT NULL,
1216
 
  `c4` int DEFAULT NULL,
1217
 
  `c5` int DEFAULT NULL,
1218
 
  `c6` int DEFAULT NULL,
1219
 
  `c7` int DEFAULT NULL,
1220
 
  `c8` int DEFAULT NULL,
1221
 
  `c9` int DEFAULT NULL,
1222
 
  `c10` int DEFAULT NULL,
1223
 
  `c11` int DEFAULT NULL,
1224
 
  `c12` int DEFAULT NULL,
1225
 
  `c13` int DEFAULT NULL,
1226
 
  `c14` int DEFAULT NULL,
1227
 
  `c15` int DEFAULT NULL,
1228
 
  `c16` int DEFAULT NULL,
 
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,
1229
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`),
1230
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`),
1231
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`),
1290
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`),
1291
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`),
1292
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`)
1293
 
) ENGINE=DEFAULT
 
1303
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1294
1304
alter table t1 add key 
1295
1305
a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
1296
1306
c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
1308
1318
show create table t1;
1309
1319
Table   Create Table
1310
1320
t1      CREATE TABLE `t1` (
1311
 
  `c1` int DEFAULT NULL,
1312
 
  `c2` int DEFAULT NULL,
1313
 
  `c3` int DEFAULT NULL,
1314
 
  `c4` int DEFAULT NULL,
1315
 
  `c5` int DEFAULT NULL,
1316
 
  `c6` int DEFAULT NULL,
1317
 
  `c7` int DEFAULT NULL,
1318
 
  `c8` int DEFAULT NULL,
1319
 
  `c9` int DEFAULT NULL,
1320
 
  `c10` int DEFAULT NULL,
1321
 
  `c11` int DEFAULT NULL,
1322
 
  `c12` int DEFAULT NULL,
1323
 
  `c13` int DEFAULT NULL,
1324
 
  `c14` int DEFAULT NULL,
1325
 
  `c15` int DEFAULT NULL,
1326
 
  `c16` int DEFAULT NULL,
1327
 
  `c17` int DEFAULT NULL
1328
 
) ENGINE=DEFAULT
 
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
 
1338
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1329
1339
drop table t1;
1330
1340
 
1331
1341
Bug #26104 Bug on foreign key class constructor
1354
1364
Handler_read_next       0
1355
1365
Handler_read_prev       0
1356
1366
Handler_read_rnd        0
1357
 
Handler_read_rnd_next   13
 
1367
Handler_read_rnd_next   7
1358
1368
drop table t1,t2;
1359
1369
CREATE TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1));
1360
1370
DROP TABLE t1;
1389
1399
a       b
1390
1400
drop table t1,t2;
1391
1401
CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1392
 
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 
1402
ERROR 42000: Incorrect schema name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1393
1403
DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1394
 
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 
1404
ERROR 42000: Incorrect schema name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1395
1405
USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1396
 
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 
1406
ERROR 42000: Incorrect schema name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
1397
1407
SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1398
 
ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 
1408
Database        Create Database
1399
1409
create database имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1400
1410
use имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1401
1411
select database();
1429
1439
show create table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
1430
1440
Table   Create Table
1431
1441
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48       CREATE TABLE `имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48` (
1432
 
  `имя_поля_в_кодировке_утф8_длиной_больше_чем_45` int DEFAULT NULL,
 
1442
  `имя_поля_в_кодировке_утф8_длиной_больше_чем_45` INT DEFAULT NULL,
1433
1443
  KEY `имя_индекса_в_кодировке_утф8_длиной_больше_чем_48` (`имя_поля_в_кодировке_утф8_длиной_больше_чем_45`)
1434
 
) ENGINE=DEFAULT
 
1444
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1435
1445
drop table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
1436
1446
create table t1 like data_dictionary.processlist;
1437
1447
ERROR HY000: Can't create table 'test.t1' (errno: 1)
1439
1449
show create table t1;
1440
1450
Table   Create Table
1441
1451
t1      CREATE TABLE `t1` (
1442
 
  `ID` bigint NOT NULL DEFAULT '0',
1443
 
  `USER` varchar(16) NOT NULL DEFAULT '',
1444
 
  `HOST` varchar(1025) NOT NULL DEFAULT '',
1445
 
  `DB` varchar(64) NOT NULL DEFAULT '',
1446
 
  `COMMAND` varchar(16) NOT NULL DEFAULT '',
1447
 
  `TIME` bigint NOT NULL DEFAULT '0',
1448
 
  `STATE` varchar(64) NOT NULL DEFAULT '',
1449
 
  `INFO` varchar(100) NOT NULL DEFAULT ''
1450
 
) ENGINE=InnoDB
 
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,
 
1458
  `STATE` VARCHAR(256) DEFAULT NULL,
 
1459
  `INFO` VARCHAR(100) DEFAULT NULL
 
1460
) ENGINE=InnoDB COLLATE = utf8_general_ci
1451
1461
drop table t1;
1452
1462
create temporary table t1 like data_dictionary.processlist;
1453
1463
ERROR HY000: Can't create table 'test.#t1' (errno: 138)
1455
1465
show create table t1;
1456
1466
Table   Create Table
1457
1467
t1      CREATE TEMPORARY TABLE `t1` (
1458
 
  `ID` bigint NOT NULL DEFAULT '0',
1459
 
  `USER` varchar(16) NOT NULL DEFAULT '',
1460
 
  `HOST` varchar(1025) NOT NULL DEFAULT '',
1461
 
  `DB` varchar(64) NOT NULL DEFAULT '',
1462
 
  `COMMAND` varchar(16) NOT NULL DEFAULT '',
1463
 
  `TIME` bigint NOT NULL DEFAULT '0',
1464
 
  `STATE` varchar(64) NOT NULL DEFAULT '',
1465
 
  `INFO` varchar(100) NOT NULL DEFAULT ''
1466
 
) ENGINE=MyISAM
 
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,
 
1474
  `STATE` VARCHAR(256) DEFAULT NULL,
 
1475
  `INFO` VARCHAR(100) DEFAULT NULL
 
1476
) ENGINE=MyISAM COLLATE = utf8_general_ci
1467
1477
drop table t1;
1468
1478
 
1469
1479
# --
1481
1491
c4 VARCHAR(255) NOT NULL DEFAULT 'a',
1482
1492
c5 VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT 'b',
1483
1493
c6 VARCHAR(255))
1484
 
COLLATE utf8_bin;
 
1494
COLLATE=utf8_bin;
1485
1495
 
1486
1496
SHOW CREATE TABLE t1;
1487
1497
Table   Create Table
1488
1498
t1      CREATE TABLE `t1` (
1489
 
  `c1` int DEFAULT '12' COMMENT 'column1',
1490
 
  `c2` int DEFAULT NULL COMMENT 'column2',
1491
 
  `c3` int NOT NULL COMMENT 'column3',
1492
 
  `c4` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT 'a',
1493
 
  `c5` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'b',
1494
 
  `c6` varchar(255) COLLATE utf8_bin DEFAULT NULL
1495
 
) ENGINE=DEFAULT
 
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
 
1505
) ENGINE=DEFAULT COLLATE = utf8_bin
1496
1506
 
1497
1507
CREATE TABLE t2 AS SELECT * FROM t1;
1498
1508
 
1499
1509
SHOW CREATE TABLE t2;
1500
1510
Table   Create Table
1501
1511
t2      CREATE TABLE `t2` (
1502
 
  `c1` int DEFAULT '12' COMMENT 'column1',
1503
 
  `c2` int DEFAULT NULL COMMENT 'column2',
1504
 
  `c3` int NOT NULL COMMENT 'column3',
1505
 
  `c4` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT 'a',
1506
 
  `c5` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'b',
1507
 
  `c6` varchar(255) COLLATE utf8_bin DEFAULT NULL
1508
 
) ENGINE=DEFAULT
 
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
 
1518
) ENGINE=DEFAULT COLLATE = utf8_general_ci
1509
1519
 
1510
1520
DROP TABLE t2;
1511
1521