~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/explain.result

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-07 20:12:20 UTC
  • mto: (934.3.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 938.
  • Revision ID: osullivan.padraig@gmail.com-20090307201220-u9r93y0knyyb8ggy
Cleaning up my function object a little bit.

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;