~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/join.result

  • Committer: Brian Aker
  • Date: 2008-07-20 09:02:20 UTC
  • Revision ID: brian@tangent.org-20080720090220-bhrg1wemfnzutbgi
Convert default engine to Innodb

Show diffs side-by-side

added added

removed removed

Lines of Context:
764
764
We expect rnd_next=5, and read_key must be 0 because of short-cutting:
765
765
show status like 'Handler_read%';
766
766
Variable_name   Value
767
 
Handler_read_first      0
768
 
Handler_read_key        0
 
767
Handler_read_first      1
 
768
Handler_read_key        2
769
769
Handler_read_next       0
770
770
Handler_read_prev       0
771
771
Handler_read_rnd        0
778
778
insert into t2 
779
779
select @a:= A.a + 10*(B.a + 10*C.a), @a, 'filler' from t1 A, t1 B, t1 C;
780
780
insert into t3 select * from t2 where a < 800;
781
 
explain select * from t2,t3 where t2.a < 200 and t2.b=t3.b;
782
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
783
 
1       SIMPLE  t2      ALL     a,b     NULL    NULL    NULL    1000    Using where
784
 
1       SIMPLE  t3      ref     b       b       5       test.t2.b       1       
785
781
drop table t1, t2, t3;
786
782
create table t1 (a int);
787
783
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
792
788
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    10      
793
789
show status like '%cost%';
794
790
Variable_name   Value
795
 
Last_query_cost 4.016090
 
791
Last_query_cost 2.999000
796
792
select 'The cost of accessing t1 (dont care if it changes' '^';
797
793
The cost of accessing t1 (dont care if it changes
798
794
The cost of accessing t1 (dont care if it changes^
806
802
1       SIMPLE  B       eq_ref  PRIMARY PRIMARY 4       test.A.b        1       
807
803
show status like '%cost%';
808
804
Variable_name   Value
809
 
Last_query_cost 24.016090
 
805
Last_query_cost 22.999000
810
806
select '^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error' Z;
811
807
Z
812
808
^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error