~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/t/union.test

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
474
474
insert t1 select a+1, a+b from t1;
475
475
insert t1 select a+1, a+b from t1;
476
476
FLUSH STATUS;
 
477
--replace_column 2 #
477
478
show status like 'Slow_queries';
478
479
select count(*) from t1 where a=7;
 
480
--replace_column 2 #
479
481
show status like 'Slow_queries';
480
482
select count(*) from t1 where b=13;
 
483
--replace_column 2 #
481
484
show status like 'Slow_queries';
482
485
select count(*) from t1 where b=13 union select count(*) from t1 where a=7;
 
486
--replace_column 2 #
483
487
show status like 'Slow_queries';
484
488
select count(*) from t1 where a=7 union select count(*) from t1 where b=13;
 
489
--replace_column 2 #
485
490
show status like 'Slow_queries';
486
491
# additional test for examined rows
487
492
flush status;
488
493
select a from t1 where b not in (1,2,3) union select a from t1 where b not in (4,5,6); 
 
494
--replace_column 2 #
489
495
show status like 'Slow_queries';
490
496
drop table t1;
491
497