summaryrefslogtreecommitdiff
path: root/plugin/type_inet/mysql-test/type_inet/rpl_row_binary_to_inet6.test
blob: f48b1c49d48e8a6dfea013ad08b35188a0ec70a7 (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
--source include/have_binlog_format_row.inc
--source include/master-slave.inc

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

--echo #
--echo # MDEV-20844 RBR from binary(16) to inet6 fails with error 171: The event was corrupt, leading to illegal data being read
--echo #

CREATE TABLE t1 (a BINARY(16));

--sync_slave_with_master
ALTER TABLE t1 MODIFY a INET6;

--connection master
INSERT INTO t1 VALUES (INET6_ATON('::'));
INSERT INTO t1 VALUES (INET6_ATON('::192.168.0.1'));
INSERT INTO t1 VALUES (INET6_ATON('ffff::'));
INSERT INTO t1 VALUES (INET6_ATON('ffff::192.168.0.1'));
SELECT INET6_NTOA(a) FROM t1 ORDER BY a;
--sync_slave_with_master
SELECT * FROM t1 ORDER BY a;

--connection master
DROP TABLE t1;

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

--source include/rpl_end.inc