~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/select.result

merge latest from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
3108
3108
t3.a=t2.a AND t3.c IN ('bb','ee');
3109
3109
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3110
3110
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
3111
 
1       SIMPLE  t2      range   si      si      5       NULL    4       Using index condition; Using MRR
 
3111
1       SIMPLE  t2      range   si      si      5       NULL    4       Using where; Using MRR
3112
3112
1       SIMPLE  t3      eq_ref  PRIMARY,ci      PRIMARY 4       test.t2.a       1       Using where
3113
3113
EXPLAIN
3114
3114
SELECT t3.a FROM t1,t2,t3
3124
3124
t3.c IN ('bb','ee');
3125
3125
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3126
3126
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
3127
 
1       SIMPLE  t2      range   si      si      5       NULL    2       Using index condition; Using MRR
 
3127
1       SIMPLE  t2      range   si      si      5       NULL    2       Using where; Using MRR
3128
3128
1       SIMPLE  t3      eq_ref  PRIMARY,ci      PRIMARY 4       test.t2.a       1       Using where
3129
3129
EXPLAIN 
3130
3130
SELECT t3.a FROM t1,t2,t3
3132
3132
t3.c IN ('bb','ee');
3133
3133
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3134
3134
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
3135
 
1       SIMPLE  t2      range   si,ai   si      5       NULL    2       Using index condition; Using MRR
 
3135
1       SIMPLE  t2      range   si,ai   si      5       NULL    2       Using where; Using MRR
3136
3136
1       SIMPLE  t3      eq_ref  PRIMARY,ci      PRIMARY 4       test.t2.a       1       Using where
3137
3137
DROP TABLE t1,t2,t3;
3138
3138
CREATE TABLE t1 ( f1 int primary key, f2 int, f3 int, f4 int, f5 int, f6 int, checked_out int);
3252
3252
AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
3253
3253
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3254
3254
1       SIMPLE  t2      const   PRIMARY PRIMARY 4       const   1       
3255
 
1       SIMPLE  t1      range   ts      ts      4       NULL    1       Using index condition; Using where; Using MRR
 
3255
1       SIMPLE  t1      range   ts      ts      4       NULL    1       Using where; Using MRR
3256
3256
Warnings:
3257
3257
Warning 1292    Incorrect datetime value: '2999-12-31 00:00:00' for column 'ts' at row 1
3258
3258
SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30