ClickHouse/tests/queries/0_stateless/02243_ipv6_long_parsing.sql

11 lines
422 B
SQL

DROP TABLE IF EXISTS test_table;
CREATE TABLE test_table (id UInt64, value IPv6) ENGINE=MergeTree ORDER BY id;
INSERT INTO test_table VALUES (0, '0000:0000:0000:0000:0000:ffff:1.12.12.12');
INSERT INTO test_table VALUES (1, '0000:0000:0000:0000:0000:ffff:123.123.123.123');
INSERT INTO test_table VALUES (2, '0000:0000:0000:0000:0000:ffff:192.168.100.228');
SELECT * FROM test_table ORDER BY id;
DROP TABLE test_table;