~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/explain.test

  • Committer: Monty Taylor
  • Date: 2009-03-02 23:14:32 UTC
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090302231432-i35xehp7uzo6hjjw
Updated build system to use new version numbering. Just remember to run ./config/autorun.sh before running make distcheck for release and all should be peachy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
--disable_warnings
5
5
drop table if exists t1;
6
6
--enable_warnings
7
 
create TEMPORARY table t1 (id int not null, str char(10), unique(str)) ENGINE=MYISAM;
 
7
create table t1 (id int not null, str char(10), unique(str)) ENGINE=MYISAM;
8
8
explain select * from t1;
9
9
insert into t1 values (1, null),(2, null),(3, "foo"),(4, "bar");
10
10
select * from t1 where str is null;
15
15
explain select * from t1 use key (str,str) where str="foo";
16
16
 
17
17
#The following should give errors
18
 
--error ER_KEY_DOES_NOT_EXITS
 
18
--error 1176
19
19
explain select * from t1 use key (str,str,foo) where str="foo";
20
 
--error ER_KEY_DOES_NOT_EXITS
 
20
--error 1176
21
21
explain select * from t1 ignore key (str,str,foo) where str="foo";
22
22
drop table t1;
23
23
 
24
24
explain select 1;
25
25
 
26
 
create TEMPORARY table t1 (a int not null) ENGINE=myisam;
 
26
create table t1 (a int not null) ENGINE=myisam;
27
27
explain select count(*) from t1;
28
28
insert into t1 values(1);
29
29
explain select count(*) from t1;
34
34
#
35
35
# Bug #3403 Wrong encoding in EXPLAIN SELECT output
36
36
#
37
 
create TEMPORARY table ☃ (☢ int, ☣ int, key ☢ (☢), key ☣ (☢,☣)) ENGINE=MYISAM;
 
37
create table ☃ (☢ int, ☣ int, key ☢ (☢), key ☣ (☢,☣)) ENGINE=MYISAM;
38
38
insert into ☃ (☢) values (1);
39
39
insert into ☃ (☢) values (2);
40
40
explain select ☢ from ☃ where ☢=1;