~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/include/commit.inc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
502
502
--echo # 12. Read-write statement: IODKU, change 0 rows. 
503
503
--echo #
504
504
insert t1 set a=2 on duplicate key update a=2;
505
 
call p_verify_status_increment(1, 0, 1, 0);
 
505
call p_verify_status_increment(2, 2, 1, 0);
506
506
commit;
507
 
call p_verify_status_increment(1, 0, 1, 0);
 
507
call p_verify_status_increment(2, 2, 1, 0);
508
508
 
509
509
--echo # 13. Read-write statement: INSERT IGNORE, change 0 rows. 
510
510
--echo #
511
511
insert ignore t1 set a=2;
512
 
call p_verify_status_increment(1, 0, 1, 0);
 
512
call p_verify_status_increment(2, 2, 1, 0);
513
513
commit;
514
 
call p_verify_status_increment(1, 0, 1, 0);
 
514
call p_verify_status_increment(2, 2, 1, 0);
515
515
 
516
516
--echo # 14. Read-write statement: INSERT IGNORE, change 1 row. 
517
517
--echo #
725
725
alter table t3 add column (b int);
726
726
call p_verify_status_increment(2, 0, 2, 0);
727
727
alter table t3 rename t4;
728
 
call p_verify_status_increment(2, 2, 2, 2);
 
728
call p_verify_status_increment(1, 0, 1, 0);
729
729
rename table t4 to t3;
730
 
call p_verify_status_increment(2, 2, 2, 2);
 
730
call p_verify_status_increment(1, 0, 1, 0);
731
731
truncate table t3;
732
732
call p_verify_status_increment(4, 4, 4, 4);
733
733
create view v1 as select * from t2;