~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/join.test

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

Show diffs side-by-side

added added

removed removed

Lines of Context:
576
576
select * from t1, t2, t3 where t3.a=t1.a and t2.a=t1.b;
577
577
explain select * from t1, t2, t3 where t3.a=t1.a and t2.a=t1.b;
578
578
--echo We expect rnd_next=5, and read_key must be 0 because of short-cutting:
579
 
--replace_column 2 #
580
579
show status like 'Handler_read%'; 
581
580
drop table t1, t2, t3;
582
581
 
607
606
insert into t2 select @v:=A.a+10*B.a, @v  from t1 A, t1 B;
608
607
 
609
608
explain select * from t1;
610
 
--replace_column 2 #
611
609
show status like '%cost%';
612
610
select 'The cost of accessing t1 (dont care if it changes' '^';
613
611
 
614
612
select 'vv: Following query must use ALL(t1), eq_ref(A), eq_ref(B): vv' Z;
615
613
 
616
614
explain select * from t1, t2 A, t2 B where A.a = t1.a and B.a=A.b;
617
 
--replace_column 2 #
618
615
show status like '%cost%';
619
616
select '^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error' Z;
620
617