This commit is contained in:
Denny Crane 2023-01-07 14:07:36 -04:00
parent 1f32ffedf8
commit 0dfe4e0835
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
2600:1011:b104:a86f:2832:b9c6:6d45:237b 2600:1011:b104:a86f:2832:b9c6:6d45:237b 2600:1011:b104:: 2600:1011:b104:: true 2600:1011:b104::

View File

@ -0,0 +1,16 @@
drop table if exists ipv6_test26473;
CREATE TABLE ipv6_test26473 (
`ip` String,
`ipv6` IPv6 MATERIALIZED toIPv6(ip),
`is_ipv6` Boolean MATERIALIZED isIPv6String(ip),
`cblock` IPv6 MATERIALIZED cutIPv6(ipv6, 10, 1),
`cblock1` IPv6 MATERIALIZED toIPv6(cutIPv6(ipv6, 10, 1))
)
ENGINE = Memory;
insert into ipv6_test26473 values ('2600:1011:b104:a86f:2832:b9c6:6d45:237b');
select ip, ipv6,cblock, cblock1,is_ipv6, cutIPv6(ipv6, 10, 1) from ipv6_test26473;
drop table ipv6_test26473;