Commit 6a6aa1c0 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-21764 CONNECT table with INET6 field produces warnings upon SELECT

parent 35cbbd4d
......@@ -2203,7 +2203,7 @@ int ha_connect::MakeRecord(char *buf)
case TYPE_DECIM:
p= value->GetCharString(val);
charset= tdbp->data_charset();
rc= fp->store(p, strlen(p), charset, CHECK_FIELD_WARN);
rc= fp->store_text(p, strlen(p), charset, CHECK_FIELD_WARN);
break;
case TYPE_BIN:
p= value->GetCharValue();
......
#
# MDEV-21764 CONNECT table with INET6 field produces warnings upon SELECT
#
CREATE TABLE t1 (a INET6) ENGINE=CONNECT TABLE_TYPE=DOS;
Warnings:
Warning 1105 No file name. Table will use t1.dos
INSERT INTO t1 VALUES ('::');
INSERT INTO t1 VALUES ('::ffff');
INSERT INTO t1 VALUES ('ffff::ffff');
SELECT * FROM t1;
a
::
::ffff
ffff::ffff
DROP TABLE t1;
--echo #
--echo # MDEV-21764 CONNECT table with INET6 field produces warnings upon SELECT
--echo #
CREATE TABLE t1 (a INET6) ENGINE=CONNECT TABLE_TYPE=DOS;
INSERT INTO t1 VALUES ('::');
INSERT INTO t1 VALUES ('::ffff');
INSERT INTO t1 VALUES ('ffff::ffff');
SELECT * FROM t1;
DROP TABLE t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment