1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

SQL: UPDATE on row-based replication [closes: #94]

This commit is contained in:
kevg
2016-12-16 14:11:23 +03:00
committed by Aleksey Midenkov
parent 41d9840850
commit ef10ef98ab
7 changed files with 148 additions and 19 deletions

View File

@@ -0,0 +1,41 @@
include/master-slave.inc
[connection master]
connection slave;
connection master;
CREATE TABLE t1 (x int) with system versioning ENGINE = innodb;
insert into t1 values (1);
SELECT * FROM t1;
x
1
delete from t1;
select * from t1;
x
select * from t1 for system_time all;
x
1
connection slave;
select * from t1;
x
select * from t1 for system_time all;
x
1
connection master;
insert into t1 values (2);
connection slave;
select * from t1;
x
2
connection master;
update t1 set x = 3;
connection slave;
select * from t1;
x
3
select * from t1 for system_time all;
x
1
3
2
connection master;
drop table t1;
include/rpl_end.inc