Merge
This commit is contained in:
parent
9777e83a5a
commit
6d83e48b87
@ -0,0 +1,6 @@
|
||||
use test; -- in both
|
||||
drop table if exists t1;
|
||||
create table t1 (id integer);
|
||||
insert into t1 values(1); -- in master
|
||||
commit;
|
||||
select count(*) from t1; -- in slave
|
@ -0,0 +1,7 @@
|
||||
-- Read from slave after implicit COMMIT
|
||||
USE test;
|
||||
START TRANSACTION;
|
||||
CREATE TABLE IF NOT EXISTS T2 (id integer);
|
||||
INSERT INTO T2 VALUES (@@server_id);
|
||||
SET AUTOCOMMIT=1;
|
||||
SELECT id from T2; -- read transaction's modifications from slave
|
Loading…
x
Reference in New Issue
Block a user