~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/multi_update.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
585
585
UPDATE t2,t1 SET t2.a=t1.a+2;
586
586
# check
587
587
select * from t2 /* must be (3,1), (4,4) */;
588
 
show master status /* there must be the UPDATE query event */;
 
588
let wait_binlog_event= UPDATE;
 
589
source include/wait_for_binlog_event.inc;
589
590
 
590
591
# B. testing multi_update::send_error() ineffective update
591
592
# (as there is a policy described at mysql_update() still go to binlog)
596
597
reset master;
597
598
--error ER_DUP_ENTRY
598
599
UPDATE t2,t1  SET t2.a=t2.b where t2.a=t1.a;
599
 
show master status /* there must be the UPDATE query event */;
 
600
let wait_binlog_event= UPDATE;
 
601
source include/wait_for_binlog_event.inc;
600
602
 
601
603
# cleanup
602
604
drop table t1, t2;