~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/r/join.result

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
We expect rnd_next=5, and read_key must be 0 because of short-cutting:
769
769
show status like 'Handler_read%';
770
770
Variable_name   Value
771
 
Handler_read_first      1
772
 
Handler_read_key        2
773
 
Handler_read_next       0
774
 
Handler_read_prev       0
775
 
Handler_read_rnd        0
776
 
Handler_read_rnd_next   5
 
771
Handler_read_first      #
 
772
Handler_read_key        #
 
773
Handler_read_next       #
 
774
Handler_read_prev       #
 
775
Handler_read_rnd        #
 
776
Handler_read_rnd_next   #
777
777
drop table t1, t2, t3;
778
778
create table t1 (a int);
779
779
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
792
792
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    10      
793
793
show status like '%cost%';
794
794
Variable_name   Value
795
 
Last_query_cost 1.999000
 
795
Last_query_cost #
796
796
select 'The cost of accessing t1 (dont care if it changes' '^';
797
797
The cost of accessing t1 (dont care if it changes
798
798
The cost of accessing t1 (dont care if it changes^
806
806
1       SIMPLE  B       eq_ref  PRIMARY PRIMARY 4       test.A.b        1       
807
807
show status like '%cost%';
808
808
Variable_name   Value
809
 
Last_query_cost 1.999000
 
809
Last_query_cost #
810
810
select '^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error' Z;
811
811
Z
812
812
^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error