summaryrefslogtreecommitdiff
path: root/plugin/type_inet/mysql-test/type_inet/binlog_table_map_optional_metadata_type_inet6.test
blob: 63672f065a87e3694daf0402319612f7f4383718 (plain)
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
--source include/have_debug.inc
--source include/have_binlog_format_row.inc

--let $MYSQLD_DATADIR= `select @@datadir`
--let $binlog_file= $MYSQLD_DATADIR/master-bin.000001


--echo #
--echo # Start of 10.5 tests
--echo #

--echo #
--echo # MDEV-20822 INET6 crashes in combination with RBR extended metadata
--echo #

--echo # Using DEFAULT_CHARSET format

RESET MASTER;
SET GLOBAL binlog_row_metadata = NO_LOG;
CREATE TABLE t1 (a INET6);
INSERT INTO t1 VALUES('::');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = MINIMAL;
CREATE TABLE t1 (a INET6);
INSERT INTO t1 VALUES('::');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = FULL;
CREATE TABLE t1 (a INET6);
INSERT INTO t1 VALUES('::');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

--echo # Using COLUMN_CHARSET format

RESET MASTER;
SET GLOBAL binlog_row_metadata = NO_LOG;
CREATE TABLE t1 (a INET6, b CHAR(16) CHARACTER SET latin1, c CHAR(16) CHARACTER SET utf8);
INSERT INTO t1 VALUES('::','','');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = MINIMAL;
CREATE TABLE t1 (a INET6, b CHAR(16) CHARACTER SET latin1, c CHAR(16) CHARACTER SET utf8);
INSERT INTO t1 VALUES('::','','');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = FULL;
CREATE TABLE t1 (a INET6, b CHAR(16) CHARACTER SET latin1, c CHAR(16) CHARACTER SET utf8);
INSERT INTO t1 VALUES('::','','');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

SET GLOBAL binlog_row_metadata = DEFAULT;

--echo #
--echo # End of 10.5 tests
--echo #