File: rpl_row_jsondiff_generated_col.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (72 lines) | stat: -rw-r--r-- 3,996 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
[connection master]
######## Configure ########
[connection master]
include/begin_replace_combination.inc [BOTH.BINLOG_FORMAT=ROW,MIXED,STATEMENT -> GLOBAL.SLAVE_ROWS_SEARCH_ALGORITHMS=INDEX_SCAN,HASH_SCAN,TABLE_SCAN]
Warnings:
Warning	1287	'@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
SET @old_binlog_row_image= @@SESSION.BINLOG_ROW_IMAGE;
SET @old_binlog_row_value_options= @@SESSION.BINLOG_ROW_VALUE_OPTIONS;
SET @@SESSION.BINLOG_ROW_IMAGE= MINIMAL;
SET @@SESSION.BINLOG_ROW_VALUE_OPTIONS= PARTIAL_JSON;
[connection slave]
include/stop_slave_sql.inc
include/begin_replace_combination.inc [BOTH.BINLOG_FORMAT=ROW,MIXED,STATEMENT -> GLOBAL.SLAVE_ROWS_SEARCH_ALGORITHMS=INDEX_SCAN,HASH_SCAN,TABLE_SCAN]
Warnings:
Warning	1287	'@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
include/start_slave_sql.inc
SET @old_binlog_row_image= @@GLOBAL.BINLOG_ROW_IMAGE;
SET @old_binlog_row_value_options= @@GLOBAL.BINLOG_ROW_VALUE_OPTIONS;
SET @@GLOBAL.BINLOG_ROW_IMAGE= MINIMAL;
SET @@GLOBAL.BINLOG_ROW_VALUE_OPTIONS= PARTIAL_JSON;
include/stop_slave.inc
include/start_slave.inc
######## Initialize ########
[connection master]
CREATE TABLE t (i INT, j JSON,
v VARCHAR(256) AS (JSON_PRETTY(j)) VIRTUAL,
s VARCHAR(256) AS (JSON_PRETTY(j)) STORED);
INSERT INTO t (j) VALUES ('[{"a":"abc"},{"b":"abcd"}]'),
('{"key":[{"key":"value"},{"key":"value2"}]}');
######## Test ########
include/sync_slave_sql_with_master.inc
[connection master]
include/diff_tables.inc [master:t, slave:t]
UPDATE t SET j= JSON_REPLACE(j, '$[0].a',"a");
include/sync_slave_sql_with_master.inc
[connection master]
include/diff_tables.inc [master:t, slave:t]
UPDATE t SET j= JSON_SET(j, '$.key[0]', "a");
include/sync_slave_sql_with_master.inc
[connection master]
include/diff_tables.inc [master:t, slave:t]
UPDATE t SET j= JSON_REMOVE(j, '$.key[0].key');
include/sync_slave_sql_with_master.inc
[connection master]
include/diff_tables.inc [master:t, slave:t]
######## Clean up ########
DROP TABLE t;
SET @@SESSION.BINLOG_ROW_VALUE_OPTIONS= @old_binlog_row_value_options;
SET @@SESSION.BINLOG_ROW_IMAGE= @old_binlog_row_image;
include/end_replace_combination.inc [BOTH.BINLOG_FORMAT=ROW,MIXED,STATEMENT -> GLOBAL.SLAVE_ROWS_SEARCH_ALGORITHMS=INDEX_SCAN,HASH_SCAN,TABLE_SCAN]
Warnings:
Warning	1287	'@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
include/sync_slave_sql_with_master.inc
SET @@GLOBAL.BINLOG_ROW_VALUE_OPTIONS= @old_binlog_row_value_options;
SET @@GLOBAL.BINLOG_ROW_IMAGE= @old_binlog_row_image;
include/stop_slave_sql.inc
include/end_replace_combination.inc [BOTH.BINLOG_FORMAT=ROW,MIXED,STATEMENT -> GLOBAL.SLAVE_ROWS_SEARCH_ALGORITHMS=INDEX_SCAN,HASH_SCAN,TABLE_SCAN]
Warnings:
Warning	1287	'@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
Warning	1287	'@@binlog_format' is deprecated and will be removed in a future release.
include/rpl_end.inc