~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/select_safe.result

  • Committer: Brian Aker
  • Date: 2010-03-15 21:50:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1343.
  • Revision ID: brian@gaz-20100315215005-oqoblpbll9n0albj
Merge of table cache/def DD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
1       test
14
14
2       test2
15
15
update t1 set b="a" where a=1;
16
 
select 1 from t1 CROSS JOIN t1 as t2 CROSS JOIN t1 as t3;
 
16
select 1 from t1,t1 as t2,t1 as t3;
17
17
1
18
18
1
19
19
1
24
24
delete from t1;
25
25
delete from t1 where b="test";
26
26
delete from t1 where a+0=1;
27
 
select 1 from t1 CROSS JOIN t1 as t2 CROSS JOIN t1 as t3 CROSS JOIN t1 as t4 CROSS JOIN t1 as t5;
 
27
select 1 from t1,t1 as t2,t1 as t3,t1 as t4,t1 as t5;
28
28
1
29
29
update t1 set b="a" limit 1;
30
30
update t1 set b="a" where b="b" limit 2;
62
62
explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;
63
63
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
64
64
1       SIMPLE  t1      index   b       PRIMARY 4       NULL    20      
65
 
1       SIMPLE  t2      ref     b       b       83      test.t1.b       10      Using where; Using index
 
65
1       SIMPLE  t2      ref     b       b       83      test.t1.b       10      Using index
66
66
set MAX_SEEKS_FOR_KEY=1;
67
67
explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;
68
68
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
69
69
1       SIMPLE  t1      index   b       PRIMARY 4       NULL    20      
70
 
1       SIMPLE  t2      ref     b       b       83      test.t1.b       10      Using where; Using index
 
70
1       SIMPLE  t2      ref     b       b       83      test.t1.b       10      Using index
71
71
SET MAX_SEEKS_FOR_KEY=DEFAULT;
72
72
drop table t1;
73
73
create table t1 (a int);