~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key.result

  • Committer: Brian Aker
  • Date: 2010-03-01 22:24:10 UTC
  • mto: (1309.2.12 build)
  • mto: This revision was merged to the branch mainline in revision 1317.
  • Revision ID: brian@gaz-20100301222410-w509prhp73pg6z4n
Update the code so use a faster index lookup method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
drop table t1;
144
144
create table t1 (a int not null unique, b int unique, c int, d int not null primary key, key(c), e int not null unique);
145
145
show keys from t1;
146
 
Table   Key_name        Seq_in_index    Column_name
147
 
t1      PRIMARY 0       d
148
 
t1      a       0       a
149
 
t1      e       0       e
150
 
t1      b       0       b
151
 
t1      c       0       c
 
146
Table   Unique  Key_name        Seq_in_index    Column_name
 
147
t1      TRUE    PRIMARY 1       d
 
148
t1      TRUE    a       1       a
 
149
t1      TRUE    e       1       e
 
150
t1      TRUE    b       1       b
 
151
t1      FALSE   c       1       c
152
152
drop table t1;
153
153
CREATE TABLE t1 (c VARCHAR(10) NOT NULL,i INT PRIMARY KEY NOT NULL AUTO_INCREMENT, UNIQUE (c,i));
154
154
INSERT INTO t1 (c) VALUES (NULL),(NULL);