~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key.result

Merged Nathan from lp:~nlws/drizzle/fix-string-c-ptr-overrun

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,
 
399
  `c1` int DEFAULT NULL,
400
400
  `c2` varchar(12) NOT NULL,
401
401
  `c3` varchar(123) NOT NULL,
402
 
  `c4` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
 
402
  `c4` timestamp NULL DEFAULT NULL,
403
403
  PRIMARY KEY (`c2`,`c3`),
404
404
  UNIQUE KEY `i4` (`c4`),
405
405
  KEY `c1` (`c1`),
432
432
  `c1` int NOT NULL,
433
433
  `c2` varchar(12) NOT NULL,
434
434
  `c3` varchar(123) NOT NULL,
435
 
  `c4` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
 
435
  `c4` timestamp NULL DEFAULT NULL,
436
436
  KEY `i1` (`c1`),
437
437
  KEY `i5` (`c1`,`c2`,`c3`,`c4`),
438
438
  KEY `c1` (`c1`),