~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key.result

  • Committer: Monty Taylor
  • Date: 2009-02-17 10:00:38 UTC
  • mto: This revision was merged to the branch mainline in revision 888.
  • Revision ID: mordred@inaugust.com-20090217100038-ywlg7whtxdl9od5u
Update tests based on how Toru's latest patch changes create table statements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
show create table t1;
209
209
Table   Create Table
210
210
t1      CREATE TABLE `t1` (
211
 
  `c` varchar(30),
 
211
  `c` varchar(30) DEFAULT NULL,
212
212
  `t` text,
213
213
  UNIQUE KEY `c` (`c`()),
214
214
  UNIQUE KEY `t` (`t`())
334
334
show create table t1;
335
335
Table   Create Table
336
336
t1      CREATE TABLE `t1` (
337
 
  `a` varchar(10),
338
 
  `b` varchar(10),
 
337
  `a` varchar(10) DEFAULT NULL,
 
338
  `b` varchar(10) DEFAULT NULL,
339
339
  KEY `a` (`a`,`b`)
340
340
) ENGINE=InnoDB
341
341
alter table t1 modify b varchar(20);
342
342
show create table t1;
343
343
Table   Create Table
344
344
t1      CREATE TABLE `t1` (
345
 
  `a` varchar(10),
346
 
  `b` varchar(20),
 
345
  `a` varchar(10) DEFAULT NULL,
 
346
  `b` varchar(20) DEFAULT NULL,
347
347
  KEY `a` (`a`,`b`)
348
348
) ENGINE=InnoDB
349
349
alter table t1 modify a varchar(20);
350
350
show create table t1;
351
351
Table   Create Table
352
352
t1      CREATE TABLE `t1` (
353
 
  `a` varchar(20),
354
 
  `b` varchar(20),
 
353
  `a` varchar(20) DEFAULT NULL,
 
354
  `b` varchar(20) DEFAULT NULL,
355
355
  KEY `a` (`a`,`b`)
356
356
) ENGINE=InnoDB
357
357
drop table t1;
396
396
show create table t1;
397
397
Table   Create Table
398
398
t1      CREATE TABLE `t1` (
399
 
  `c1` int,
400
 
  `c2` varchar(12) NOT NULL,
401
 
  `c3` varchar(123) NOT NULL,
 
399
  `c1` int DEFAULT NULL,
 
400
  `c2` varchar(12) NOT NULL DEFAULT '',
 
401
  `c3` varchar(123) NOT NULL DEFAULT '',
402
402
  `c4` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
403
403
  PRIMARY KEY (`c2`,`c3`),
404
404
  UNIQUE KEY `i4` (`c4`),
429
429
show create table t1;
430
430
Table   Create Table
431
431
t1      CREATE TABLE `t1` (
432
 
  `c1` int NOT NULL,
433
 
  `c2` varchar(12) NOT NULL,
434
 
  `c3` varchar(123) NOT NULL,
 
432
  `c1` int NOT NULL DEFAULT '0',
 
433
  `c2` varchar(12) NOT NULL DEFAULT '',
 
434
  `c3` varchar(123) NOT NULL DEFAULT '',
435
435
  `c4` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
436
436
  KEY `i1` (`c1`),
437
437
  KEY `i5` (`c1`,`c2`,`c3`,`c4`),