~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/join.test

  • Committer: lbieber
  • Date: 2010-08-23 22:45:16 UTC
  • mfrom: (1727.2.1 staging)
  • Revision ID: lbieber@orisndriz03-20100823224516-k12j5r4znqnznr9d
Merge Vijay - bug 621866 - Changed --transaction-log.sync-method to --transaction-log.flush-frequency
Merge Lee - bug 622005 updateing test results that need to sorted by adding --sorted_result - 
Merge Andrew - bug #617537 re-connect connectionID is wrong 
Merge Andrew - bug #617534 incorrect error when reconnecting

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
  PRIMARY KEY  (id)
249
249
) ENGINE=MyISAM;
250
250
INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5');
 
251
--sorted_result
251
252
select t1.*, t2.*  from t1, t2 where t2.id=t1.t2_id limit 2;
252
253
drop table t1,t2;
253
254
 
400
401
from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
401
402
 
402
403
# Views with bigger natural join
 
404
--sorted_result
403
405
select * from t1 natural join (t2 natural join t3);
404
406
 
405
407
# Nested natural/using joins.
 
408
--sorted_result
406
409
select * from (t1 natural join t2) natural join (t3 natural join t4);
407
410
select * from (t1 natural join t2) natural left join (t3 natural join t4);
408
411
select * from (t3 natural join t4) natural right join (t1 natural join t2);
443
446
select * from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
444
447
select * from (t2 join t4 on b + 1 = y) join t1 on t1.c = t4.c;
445
448
select * from t1 natural join (t2 join t4 on b + 1 = y);
 
449
--sorted_result
446
450
select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);
447
451
 
448
452
# MySQL extension - 'join ... on' over nested comma operator
 
453
--sorted_result
449
454
select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);
450
455
select * from (t1 natural join t2) join (t3 natural join t4) on a = y;
 
456
--sorted_result
451
457
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;
452
458
 
453
459
# MySQL extension - refererence qualified coalesced columns
456
462
select * from (t4 natural join t5) natural join t1 where t4.y > 7;
457
463
select * from t1 natural left join (t4 natural join t5) where t4.y > 7;
458
464
select * from (t4 natural join t5) natural right join t1 where t4.y > 7;
 
465
--sorted_result
459
466
select * from (t1 natural join t2) join (t3 natural join t4) on t1.b = t3.b;
460
467
 
461
468
# MySQL extension - select qualified columns of NJ columns