mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
XA (not completely polished out yet)
This commit is contained in:
@@ -26,7 +26,7 @@ insert into t2 select * from t1;
|
||||
commit;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -39,7 +39,7 @@ insert into t2 select * from t1;
|
||||
rollback;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -54,7 +54,7 @@ rollback to savepoint my_savepoint;
|
||||
commit;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -71,7 +71,7 @@ commit;
|
||||
select a from t1 order by a; # check that savepoints work :)
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
# and when ROLLBACK is not explicit?
|
||||
delete from t1;
|
||||
@@ -92,7 +92,7 @@ connection con2;
|
||||
# logging has been done, we use a user lock.
|
||||
select get_lock("a",10);
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
# and when not in a transact1on?
|
||||
delete from t1;
|
||||
@@ -103,7 +103,7 @@ insert into t1 values(9);
|
||||
insert into t2 select * from t1;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
# Check that when the query updat1ng the MyISAM table is the first in the
|
||||
# transaction, we log it immediately.
|
||||
@@ -115,12 +115,12 @@ insert into t1 values(10); # first make t1 non-empty
|
||||
begin;
|
||||
insert into t2 select * from t1;
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
insert into t1 values(11);
|
||||
commit;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
|
||||
# Check that things work like before this BEGIN/ROLLBACK code was added,
|
||||
@@ -138,7 +138,7 @@ insert into t2 select * from t1;
|
||||
commit;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -150,7 +150,7 @@ insert into t2 select * from t1;
|
||||
rollback;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -165,7 +165,7 @@ rollback to savepoint my_savepoint;
|
||||
commit;
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -182,7 +182,7 @@ commit;
|
||||
select a from t1 order by a; # check that savepoints work :)
|
||||
|
||||
--replace_column 5 #
|
||||
show binlog events from 95;
|
||||
show binlog events from 96;
|
||||
|
||||
# Test for BUG#5714, where a MyISAM update in the transaction used to
|
||||
# release row-level locks in InnoDB
|
||||
|
||||
Reference in New Issue
Block a user