~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/explain.result

  • Committer: Brian Aker
  • Date: 2009-06-16 00:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1094.
  • Revision ID: brian@gaz-20090616005322-w0ode4jul9z8s2y9
Partial fix for tests for tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
 
create table t1 (id int not null, str char(10), unique(str)) ENGINE=MYISAM;
 
2
create TEMPORARY 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 table t1 (a int not null) ENGINE=myisam;
 
34
create TEMPORARY 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 table ☃ (☢ int, ☣ int, key ☢ (☢), key ☣ (☢,☣)) ENGINE=MYISAM;
 
47
create TEMPORARY 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;