#
# Start of 10.10 tests
#
#
# MDEV-23287 The INET4 data type
# MDEV-20831 Table partitioned by LIST/RANGE COLUMNS(inet6) can be created, but not inserted into
#
SET NAMES utf8;
CREATE TABLE t1 (a INET4)
PARTITION BY LIST COLUMNS(a)
(PARTITION p00 VALUES IN (10));
ERROR HY000: Partition column values of incorrect type
CREATE TABLE t1 (a INET4)
PARTITION BY LIST COLUMNS(a)
(PARTITION p00 VALUES IN (TIME'10:20:30'));
ERROR HY000: Partition column values of incorrect type
CREATE TABLE t1 (a INET4)
PARTITION BY LIST COLUMNS(a)
(PARTITION p00 VALUES IN ('€'));
ERROR 22007: Incorrect inet4 value: '€'
CREATE TABLE t1 (a INET4)
PARTITION BY LIST COLUMNS(a)
(PARTITION p00 VALUES IN ('0.0.0.0'),
PARTITION pFF VALUES IN (0xFFFFFFFF));
INSERT INTO t1 VALUES ('0.0.0.0');
INSERT INTO t1 VALUES ('255.255.255.255');
SELECT * FROM t1 PARTITION (p00);
a
0.0.0.0
SELECT * FROM t1 PARTITION (pFF);
a
255.255.255.255
DROP TABLE t1;
#
# End of 10.10 tests
#
