~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key.result

  • Committer: Brian Aker
  • Date: 2010-03-02 16:42:01 UTC
  • mto: (1309.2.12 build)
  • mto: This revision was merged to the branch mainline in revision 1318.
  • Revision ID: brian@gaz-20100302164201-awr2f9pjjk3z1cnf
Refactor DESC to use new table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
UNIQUE i1idx (i1),
302
302
UNIQUE i2idx (i2));
303
303
desc t1;
304
 
Field   Type    Null    Default Default is NULL On Update
 
304
Field   Type    Null    Default Default_is_NULL On_Update
305
305
i1      INTEGER FALSE           FALSE   
306
306
i2      INTEGER FALSE           FALSE   
307
307
show create table t1;
357
357
drop table t1;
358
358
create table t1 (a int not null primary key, b varchar(20) not null unique);
359
359
desc t1;
360
 
Field   Type    Null    Default Default is NULL On Update
 
360
Field   Type    Null    Default Default_is_NULL On_Update
361
361
a       INTEGER FALSE           FALSE   
362
362
b       VARCHAR FALSE           FALSE   
363
363
drop table t1;
364
364
create table t1 (a int not null primary key, b int not null unique);
365
365
desc t1;
366
 
Field   Type    Null    Default Default is NULL On Update
 
366
Field   Type    Null    Default Default_is_NULL On_Update
367
367
a       INTEGER FALSE           FALSE   
368
368
b       INTEGER FALSE           FALSE   
369
369
drop table t1;
370
370
create table t1 (a int not null primary key, b varchar(20) not null, unique (b(10)));
371
371
desc t1;
372
 
Field   Type    Null    Default Default is NULL On Update
 
372
Field   Type    Null    Default Default_is_NULL On_Update
373
373
a       INTEGER FALSE           FALSE   
374
374
b       VARCHAR FALSE           FALSE   
375
375
drop table t1;
376
376
create table t1 (a int not null primary key, b varchar(20) not null, c varchar(20) not null, unique(b(10),c(10)));
377
377
desc t1;
378
 
Field   Type    Null    Default Default is NULL On Update
 
378
Field   Type    Null    Default Default_is_NULL On_Update
379
379
a       INTEGER FALSE           FALSE   
380
380
b       VARCHAR FALSE           FALSE   
381
381
c       VARCHAR FALSE           FALSE   
493
493
b char(10) not null, unique key bb(b(1)), 
494
494
c char(4) not null, unique key cc(c));
495
495
desc t1;
496
 
Field   Type    Null    Default Default is NULL On Update
 
496
Field   Type    Null    Default Default_is_NULL On_Update
497
497
a       INTEGER FALSE           FALSE   
498
498
b       VARCHAR FALSE           FALSE   
499
499
c       VARCHAR FALSE           FALSE   
512
512
b char(10) not null, unique key bb(b(1)),
513
513
c char(4) not null);
514
514
desc t1;
515
 
Field   Type    Null    Default Default is NULL On Update
 
515
Field   Type    Null    Default Default_is_NULL On_Update
516
516
a       INTEGER FALSE           FALSE   
517
517
b       VARCHAR FALSE           FALSE   
518
518
c       VARCHAR FALSE           FALSE   
519
519
alter table t1 add unique key cc(c);
520
520
desc t1;
521
 
Field   Type    Null    Default Default is NULL On Update
 
521
Field   Type    Null    Default Default_is_NULL On_Update
522
522
a       INTEGER FALSE           FALSE   
523
523
b       VARCHAR FALSE           FALSE   
524
524
c       VARCHAR FALSE           FALSE