~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2010-09-22 05:33:53 UTC
  • mfrom: (1771.3.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 1785.
  • Revision ID: lbieber@orisndriz08-20100922053353-v0ys6dgdq07cg08q
Merge Paul M. - latest changes from PBXT 1.0.11-7

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
465
466
green   10      lime
466
467
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
5       grape
471
472
7       lime
472
 
5       grape
473
473
select t2.count, t1.name from t2 inner join t1 using (color);
474
474
count   name
475
475
10      lime
 
476
5       grape
476
477
7       lime
477
 
5       grape
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      1       Using where; Not exists
 
1184
1       SIMPLE  t2      ref     idx     idx     4       test.t1.id      2       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