~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/innodb.result

  • Committer: Brian Aker
  • Date: 2010-02-25 07:54:52 UTC
  • mfrom: (1273.13.101 build)
  • Revision ID: brian@gaz-20100225075452-19eozreshbrerypu
Merge of all patches in build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
1       1007    101
167
167
alter table t1 ENGINE=innodb;
168
168
show keys from t1;
169
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
170
 
t1      0       PRIMARY 1       id      A       #       NULL    NULL            BTREE           
171
 
t1      1       parent_id       1       parent_id       A       #       NULL    NULL            BTREE           
172
 
t1      1       level   1       level   A       #       NULL    NULL            BTREE           
 
169
Table   Key_name        Seq_in_index    Column_name
 
170
t1      PRIMARY 0       id
 
171
t1      parent_id       0       parent_id
 
172
t1      level   0       level
173
173
drop table t1;
174
174
CREATE TABLE t1 (
175
175
gesuchnr int DEFAULT '0' NOT NULL,
207
207
Table   Op      Msg_type        Msg_text
208
208
test.t1 analyze status  OK
209
209
show keys from t1;
210
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
211
 
t1      1       skr     1       a       A       #       NULL    NULL    YES     BTREE           
 
210
Table   Key_name        Seq_in_index    Column_name
 
211
t1      skr     0       a
212
212
drop table t1;
213
213
create table t1 (a int,b varchar(20),key(a)) engine=innodb;
214
214
insert into t1 values (1,""), (2,"testing");
394
394
CREATE TABLE t1 (a int not null, b int not null,c int not null,
395
395
key(a),primary key(a,b), unique(c),key(a),unique(b));
396
396
show index from t1;
397
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
398
 
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
399
 
t1      0       PRIMARY 2       b       A       #       NULL    NULL            BTREE           
400
 
t1      0       c       1       c       A       #       NULL    NULL            BTREE           
401
 
t1      0       b       1       b       A       #       NULL    NULL            BTREE           
402
 
t1      1       a       1       a       A       #       NULL    NULL            BTREE           
403
 
t1      1       a_2     1       a       A       #       NULL    NULL            BTREE           
 
397
Table   Key_name        Seq_in_index    Column_name
 
398
t1      PRIMARY 0       a
 
399
t1      PRIMARY 1       b
 
400
t1      c       0       c
 
401
t1      b       0       b
 
402
t1      a       0       a
 
403
t1      a_2     0       a
404
404
drop table t1;
405
405
create table t1 (col1 int not null, col2 char(4) not null, primary key(col1));
406
406
alter table t1 engine=innodb;
732
732
hello   1
733
733
alter table t1 engine=innodb;
734
734
show keys from t1;
735
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
736
 
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
 
735
Table   Key_name        Seq_in_index    Column_name
 
736
t1      PRIMARY 0       a
737
737
drop table t1;
738
738
create table t1 (i int, j int ) ENGINE=innodb;
739
739
insert into t1 values (1,2);
883
883
drop table t1;
884
884
create table t1 (t int not null default 1, key (t)) engine=innodb;
885
885
desc t1;
886
 
Field   Type    Null    Key     Default Extra
887
 
t       int     NO      MUL     1       
 
886
Field   Type    Null    Default Default is NULL On Update
 
887
t       INTEGER FALSE   1       FALSE   
888
888
drop table t1;
889
889
create table t1 (id int not null auto_increment, code int not null, name char(20) not null, primary key (id), key (code), unique (name)) engine=innodb;
890
890
BEGIN;