~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/pbxt/join_outer.result

  • Committer: Brian Aker
  • Date: 2010-05-27 01:22:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1568.
  • Revision ID: brian@gaz-20100527012255-ssmjt4un8ptpg4jv
Remove dead .opt files. Removed two options from Innodb which do not relate
to drizzle (backwards compatible options for old MySQL). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
462
462
7       green
463
463
select * from t2 natural join t1;
464
464
color   count   name
465
 
black   5       grape
466
465
green   10      lime
467
466
green   7       lime
 
467
black   5       grape
468
468
select t2.count, t1.name from t2 natural join t1;
469
469
count   name
470
470
10      lime
 
471
7       lime
471
472
5       grape
472
 
7       lime
473
473
select t2.count, t1.name from t2 inner join t1 using (color);
474
474
count   name
475
475
10      lime
 
476
7       lime
476
477
5       grape
477
 
7       lime
478
478
drop table t1;
479
479
drop table t2;
480
480
CREATE TABLE t1 (
1181
1181
SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
1182
1182
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1183
1183
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    5       
1184
 
1       SIMPLE  t2      ref     idx     idx     4       test.t1.id      2       Using where; Not exists
 
1184
1       SIMPLE  t2      ref     idx     idx     4       test.t1.id      1       Using where; Not exists
1185
1185
flush status;
1186
1186
SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
1187
1187
id      a