~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2010-09-22 13:48:54 UTC
  • mfrom: (1784.1.3 build)
  • Revision ID: lbieber@orisndriz08-20100922134854-y7mae2taqhn73vsx
Merge Paul M. - latest changes from PBXT 1.0.11-7
Merge Paul M. - fix bug 641038 - pbxt rollback not working (tables reported as non-transactional)
Merge Andrew - fix show stoppers for new drizzledump

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
explain select t1.id,t2.id from t2 left join t1 on t1.id>=74 and t1.id<=0 where t2.id=75 and t1.id is null;
64
64
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
65
65
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    3       Using where
66
 
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    13      Using where; Not exists
 
66
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    12      Using where; Not exists
67
67
explain select t1.id, t2.id from t1, t2 where t2.id = t1.id and t1.id <0 and t1.id > 0;
68
68
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
69
69
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    3       Using where
600
600
3       1       2       2
601
601
select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);
602
602
c       b       a       b       b       c       y       c
 
603
10      1       2       1       1       10      11      3
603
604
10      1       2       1       1       3       11      3
604
 
10      1       2       1       1       10      11      3
 
605
3       1       2       1       1       10      11      3
605
606
3       1       2       1       1       3       11      3
606
 
3       1       2       1       1       10      11      3
 
607
3       2       2       1       1       10      11      3
607
608
3       2       2       1       1       3       11      3
608
 
3       2       2       1       1       10      11      3
609
609
select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);
610
610
c       b       a       b       b       c       y       c
 
611
10      1       2       1       1       10      11      3
611
612
10      1       2       1       1       3       11      3
612
 
10      1       2       1       1       10      11      3
 
613
3       1       2       1       1       10      11      3
613
614
3       1       2       1       1       3       11      3
614
 
3       1       2       1       1       10      11      3
 
615
3       2       2       1       1       10      11      3
615
616
3       2       2       1       1       3       11      3
616
 
3       2       2       1       1       10      11      3
617
617
select * from (t1 natural join t2) join (t3 natural join t4) on a = y;
618
618
b       c       a       c       b       y
619
619
1       10      2       3       1       2
620
620
1       3       2       3       1       2
621
621
select * from ((t3 join (t1 join t2 on c > a) on t3.b < t2.a) join t4 on y > t1.c) join t5 on z = t1.b + 3;
622
622
b       c       c       b       a       b       y       c       y       z
 
623
1       10      10      1       2       1       11      3       11      4
 
624
1       10      3       1       2       1       11      3       11      4
623
625
1       3       10      1       2       1       11      3       11      4
624
 
1       10      10      1       2       1       11      3       11      4
625
626
1       3       3       1       2       1       11      3       11      4
626
 
1       10      3       1       2       1       11      3       11      4
627
627
select * from t1 natural join t2 where t1.b > 0;
628
628
b       c       a
629
629
1       10      2