Debian Codegraph @

mysql-test/suite/rpl/t/rpl_row_jsondiff_partial_to_full.test

raw
1 # ==== Implementation ====
2 #
3 # In a chain replication scenario with 3 servers, setup the first slave without
4 # partial replication. Check that replication works as expected.
5 #
6 # ==== Related Worklog ====
7 #
8 # WL#2955 RBR replication of partial JSON updates
9 #
10
11 --source include/have_binlog_format_row.inc
12 --let $rpl_topology=1->2->3
13 --source include/rpl_init.inc
14
15 --let $rpl_connection_name= server_1
16 --source include/rpl_connection.inc
17 CREATE TABLE t (i INT, j JSON);
18
19 INSERT INTO t VALUES (1, '{"name": "strawberry", "price": 1}');
20 --source include/rpl_sync.inc
21
22 UPDATE t SET j= JSON_REPLACE(j, '$.name', "apple");
23 --source include/rpl_sync.inc
24
25 --let $diff_tables= server_1:test.t, server_2:test.t, server_3:test.t
26 --source include/diff_tables.inc
27
28 DROP TABLE t;
29 --source include/rpl_sync.inc
30 --source include/rpl_end.inc