Browse Source
MDEV-20806 Federated does not work with INET6, returns NULL with warning ER_TRUNCATED_WRONG_VALUE
10.5-circular-buffer
MDEV-20806 Federated does not work with INET6, returns NULL with warning ER_TRUNCATED_WRONG_VALUE
10.5-circular-buffer
9 changed files with 118 additions and 34 deletions
-
24mysql-test/suite/federated/federated_type_inet6.result
-
17mysql-test/suite/federated/federated_type_inet6.test
-
39plugin/type_inet/sql_type_inet.cc
-
17sql/field.cc
-
19sql/field.h
-
17sql/sql_class.h
-
14storage/csv/ha_tina.cc
-
2storage/federated/ha_federated.cc
-
3storage/federatedx/ha_federatedx.cc
@ -0,0 +1,24 @@ |
|||
connect master,127.0.0.1,root,,test,$MASTER_MYPORT,; |
|||
connect slave,127.0.0.1,root,,test,$SLAVE_MYPORT,; |
|||
connection master; |
|||
CREATE DATABASE federated; |
|||
connection slave; |
|||
CREATE DATABASE federated; |
|||
# |
|||
# MDEV-20806 Federated does not work with INET6, returns NULL with warning ER_TRUNCATED_WRONG_VALUE |
|||
# |
|||
connection master; |
|||
CREATE TABLE t1 (a INET6); |
|||
INSERT INTO t1 VALUES ('::'),('f::f'); |
|||
CREATE TABLE t2 (a INET6) ENGINE=Federated CONNECTION='mysql://root@127.0.0.1:MASTER_PORT/test/t1'; |
|||
SELECT * FROM t2; |
|||
a |
|||
:: |
|||
f::f |
|||
DROP TABLE t1, t2; |
|||
connection master; |
|||
DROP TABLE IF EXISTS federated.t1; |
|||
DROP DATABASE IF EXISTS federated; |
|||
connection slave; |
|||
DROP TABLE IF EXISTS federated.t1; |
|||
DROP DATABASE IF EXISTS federated; |
|||
@ -0,0 +1,17 @@ |
|||
source include/federated.inc; |
|||
|
|||
--echo # |
|||
--echo # MDEV-20806 Federated does not work with INET6, returns NULL with warning ER_TRUNCATED_WRONG_VALUE |
|||
--echo # |
|||
|
|||
connection master; |
|||
|
|||
CREATE TABLE t1 (a INET6); |
|||
INSERT INTO t1 VALUES ('::'),('f::f'); |
|||
|
|||
--replace_result $MASTER_MYPORT MASTER_PORT |
|||
eval CREATE TABLE t2 (a INET6) ENGINE=Federated CONNECTION='mysql://root@127.0.0.1:$MASTER_MYPORT/test/t1'; |
|||
SELECT * FROM t2; |
|||
DROP TABLE t1, t2; |
|||
|
|||
source include/federated_cleanup.inc; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue