~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/join_outer.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:
858
858
1       NULL
859
859
EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON a1=0;
860
860
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
861
 
1       SIMPLE  t1      system  NULL    NULL    NULL    NULL    1       
 
861
1       SIMPLE  t1      index   NULL    PRIMARY 4       NULL    1       Using index
862
862
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    2       
863
863
SELECT * FROM t1 LEFT JOIN (t2,t3) ON a1=0;
864
864
a1      a2      a3
865
865
1       NULL    NULL
866
866
EXPLAIN SELECT * FROM t1 LEFT JOIN (t2,t3) ON a1=0;
867
867
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
868
 
1       SIMPLE  t1      system  NULL    NULL    NULL    NULL    1       
 
868
1       SIMPLE  t1      index   NULL    PRIMARY 4       NULL    1       Using index
869
869
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    2       
870
870
1       SIMPLE  t3      ALL     NULL    NULL    NULL    NULL    2       
871
871
SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=0 WHERE a0=a1;
873
873
1       1       NULL    NULL
874
874
EXPLAIN SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=0 WHERE a0=a1;
875
875
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
876
 
1       SIMPLE  t0      system  PRIMARY NULL    NULL    NULL    1       
877
 
1       SIMPLE  t1      system  PRIMARY NULL    NULL    NULL    1       
 
876
1       SIMPLE  t0      index   PRIMARY PRIMARY 4       NULL    1       Using index
 
877
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t0.a0      1       Using index
878
878
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    2       
879
879
1       SIMPLE  t3      ALL     NULL    NULL    NULL    NULL    2       
880
880
INSERT INTO t0 VALUES (0);
1183
1183
SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
1184
1184
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1185
1185
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    5       
1186
 
1       SIMPLE  t2      ref     idx     idx     4       test.t1.id      2       Using where; Not exists
 
1186
1       SIMPLE  t2      ref     idx     idx     4       test.t1.id      1       Using where; Not exists
1187
1187
flush status;
1188
1188
SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
1189
1189
id      a
1191
1191
4       ddddddd
1192
1192
show status like 'Handler_read%';
1193
1193
Variable_name   Value
1194
 
Handler_read_first      0
1195
 
Handler_read_key        5
 
1194
Handler_read_first      1
 
1195
Handler_read_key        8
1196
1196
Handler_read_next       0
1197
1197
Handler_read_prev       0
1198
1198
Handler_read_rnd        0