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

--echo #
--echo # Start of 10.10 tests
--echo #

--echo #
--echo # MDEV-23287 The INET4 data type
--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 INET4);

--sync_slave_with_master
ALTER TABLE t1 MODIFY a BINARY(4);

--connection master
INSERT INTO t1 VALUES ('0.0.0.0');
INSERT INTO t1 VALUES ('192.168.0.1');
INSERT INTO t1 VALUES ('255.0.0.0');
INSERT INTO t1 VALUES ('255.0.0.1');
SELECT a FROM t1 ORDER BY a;
--sync_slave_with_master
SELECT CAST(a AS INET4) FROM t1 ORDER BY a;

--connection master
DROP TABLE t1;

--echo #
--echo # End of 10.10 tests
--echo #

--source include/rpl_end.inc