~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/show_check.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:
26
26
test.t1 check   status  OK
27
27
show index from t1;
28
28
Catalog Database        Table   Table_alias     Column  Column_alias    Type    Length  Max length      Is_null Flags   Decimals        Charsetnr
29
 
def     data_dictionary index_parts     INDEX_PARTS     TABLE_NAME      Table   8       256     2       N       1       0       45
30
 
def     data_dictionary index_parts     INDEX_PARTS     INDEX_NAME      Key_name        8       256     7       N       1       0       45
31
 
def     data_dictionary index_parts     INDEX_PARTS     SEQUENCE_IN_INDEX       Seq_in_index    5       20      1       N       32769   0       63
32
 
def     data_dictionary index_parts     INDEX_PARTS     COLUMN_NAME     Column_name     8       256     1       N       1       0       45
33
 
Table   Key_name        Seq_in_index    Column_name
34
 
t1      PRIMARY 0       a
35
 
t1      b       0       b
36
 
t1      b       1       c
 
29
def     data_dictionary show_indexes    show_indexes    Table   Table   8       256     2       N       1       0       45
 
30
def     data_dictionary show_indexes    show_indexes    Unique  Unique  8       20      5       N       1       0       45
 
31
def     data_dictionary show_indexes    show_indexes    Key_name        Key_name        8       256     7       N       1       0       45
 
32
def     data_dictionary show_indexes    show_indexes    Seq_in_index    Seq_in_index    5       20      1       N       32769   0       63
 
33
def     data_dictionary show_indexes    show_indexes    Column_name     Column_name     8       256     1       N       1       0       45
 
34
Table   Unique  Key_name        Seq_in_index    Column_name
 
35
t1      TRUE    PRIMARY 1       a
 
36
t1      FALSE   b       1       b
 
37
t1      FALSE   b       2       c
37
38
insert into t1 values (5,5,5);
38
39
ERROR 23000: Duplicate entry '5' for key 'PRIMARY'
39
40
-- Here we enable metadata just to check that the collation of the
110
111
Table   Op      Msg_type        Msg_text
111
112
test.t1 analyze status  OK
112
113
show index from t1;
113
 
Table   Key_name        Seq_in_index    Column_name
114
 
t1      PRIMARY 0       f1
115
 
t1      PRIMARY 1       f2
116
 
t1      PRIMARY 2       f3
117
 
t1      PRIMARY 3       f4
 
114
Table   Unique  Key_name        Seq_in_index    Column_name
 
115
t1      TRUE    PRIMARY 1       f1
 
116
t1      TRUE    PRIMARY 2       f2
 
117
t1      TRUE    PRIMARY 3       f3
 
118
t1      TRUE    PRIMARY 4       f4
118
119
show index from t1;
119
 
Table   Key_name        Seq_in_index    Column_name
120
 
t1      PRIMARY 0       f1
121
 
t1      PRIMARY 1       f2
122
 
t1      PRIMARY 2       f3
123
 
t1      PRIMARY 3       f4
 
120
Table   Unique  Key_name        Seq_in_index    Column_name
 
121
t1      TRUE    PRIMARY 1       f1
 
122
t1      TRUE    PRIMARY 2       f2
 
123
t1      TRUE    PRIMARY 3       f3
 
124
t1      TRUE    PRIMARY 4       f4
124
125
drop table t1;
125
126
create temporary table t1 (a int not null);
126
127
show create table t1;
453
454
);
454
455
show index from t1;
455
456
Catalog Database        Table   Table_alias     Column  Column_alias    Type    Length  Max length      Is_null Flags   Decimals        Charsetnr
456
 
def     data_dictionary index_parts     INDEX_PARTS     TABLE_NAME      Table   8       256     2       N       1       0       45
457
 
def     data_dictionary index_parts     INDEX_PARTS     INDEX_NAME      Key_name        8       256     7       N       1       0       45
458
 
def     data_dictionary index_parts     INDEX_PARTS     SEQUENCE_IN_INDEX       Seq_in_index    5       20      1       N       32769   0       63
459
 
def     data_dictionary index_parts     INDEX_PARTS     COLUMN_NAME     Column_name     8       256     6       N       1       0       45
460
 
Table   Key_name        Seq_in_index    Column_name
461
 
t1      PRIMARY 0       field1
 
457
def     data_dictionary show_indexes    show_indexes    Table   Table   8       256     2       N       1       0       45
 
458
def     data_dictionary show_indexes    show_indexes    Unique  Unique  8       20      4       N       1       0       45
 
459
def     data_dictionary show_indexes    show_indexes    Key_name        Key_name        8       256     7       N       1       0       45
 
460
def     data_dictionary show_indexes    show_indexes    Seq_in_index    Seq_in_index    5       20      1       N       32769   0       63
 
461
def     data_dictionary show_indexes    show_indexes    Column_name     Column_name     8       256     6       N       1       0       45
 
462
Table   Unique  Key_name        Seq_in_index    Column_name
 
463
t1      TRUE    PRIMARY 1       field1
462
464
drop table t1;
463
465
create table t1 (
464
466
c1 int NOT NULL,
497
499
Field   Type    Null    Default Default is NULL On Update
498
500
a       INTEGER TRUE            TRUE    
499
501
show keys from `mysqlttest\1`.`a\b`;
500
 
Table   Key_name        Seq_in_index    Column_name
 
502
Table   Unique  Key_name        Seq_in_index    Column_name
501
503
drop table `mysqlttest\1`.`a\b`;
502
504
drop database `mysqlttest\1`;
503
505
drop table if exists `été`;