~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/explain.result

  • Committer: Brian Aker
  • Date: 2009-02-05 09:11:16 UTC
  • Revision ID: brian@tangent.org-20090205091116-iy0ersp6bhyzt1ad
Removed dead variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
 
create TEMPORARY table t1 (id int not null, str char(10), unique(str)) ENGINE=MYISAM;
 
2
create table t1 (id int not null, str char(10), unique(str)) ENGINE=MYISAM;
3
3
explain select * from t1;
4
4
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
5
5
1       SIMPLE  t1      system  NULL    NULL    NULL    NULL    0       const row not found
31
31
explain select 1;
32
32
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
33
33
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
34
 
create TEMPORARY table t1 (a int not null) ENGINE=myisam;
 
34
create table t1 (a int not null) ENGINE=myisam;
35
35
explain select count(*) from t1;
36
36
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
37
37
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    Select tables optimized away
44
44
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
45
45
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    Select tables optimized away
46
46
drop table t1;
47
 
create TEMPORARY table ☃ (☢ int, ☣ int, key ☢ (☢), key ☣ (☢,☣)) ENGINE=MYISAM;
 
47
create table ☃ (☢ int, ☣ int, key ☢ (☢), key ☣ (☢,☣)) ENGINE=MYISAM;
48
48
insert into ☃ (☢) values (1);
49
49
insert into ☃ (☢) values (2);
50
50
explain select ☢ from ☃ where ☢=1;
51
51
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
52
 
1       SIMPLE  ☃       ref     ☢,☣     ☢       5       const   1       Using where; Using index
 
52
1       SIMPLE  ☃       ref     ☢,☣     ☢       5       const   1       Using index
53
53
drop table ☃;
54
54
select 3 into @v1;
55
55
explain select 3 into @v1;
79
79
explain select 1;
80
80
Catalog Database        Table   Table_alias     Column  Column_alias    Type    Length  Max length      Is_null Flags   Decimals        Charsetnr
81
81
def                                     id      5       3       1       N       32897   0       63
82
 
def                                     select_type     8       76      6       N       1       31      45
83
 
def                                     table   8       256     0       Y       0       31      45
84
 
def                                     type    8       40      0       Y       0       31      45
85
 
def                                     possible_keys   8       16384   0       Y       0       31      45
86
 
def                                     key     8       256     0       Y       0       31      45
87
 
def                                     key_len 8       1280    0       Y       0       31      45
88
 
def                                     ref     8       4096    0       Y       0       31      45
 
82
def                                     select_type     9       76      6       N       1       31      45
 
83
def                                     table   9       256     0       Y       0       31      45
 
84
def                                     type    9       40      0       Y       0       31      45
 
85
def                                     possible_keys   9       16384   0       Y       0       31      45
 
86
def                                     key     9       256     0       Y       0       31      45
 
87
def                                     key_len 9       1280    0       Y       0       31      45
 
88
def                                     ref     9       4096    0       Y       0       31      45
89
89
def                                     rows    5       10      0       Y       32896   0       63
90
 
def                                     Extra   8       1020    14      N       1       31      45
 
90
def                                     Extra   9       1020    14      N       1       31      45
91
91
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
92
92
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
93
93
End of 5.2 tests.