CREATE TABLE default.ipv4_test\n(\n `ipv4_` IPv4\n)\nENGINE = Memory 0.0.0.0 00 8.8.8.8 08080808 127.0.0.1 7F000001 192.168.0.91 C0A8005B 255.255.255.255 FFFFFFFF < 127.0.0.1 0.0.0.0 < 127.0.0.1 8.8.8.8 > 127.0.0.1 192.168.0.91 > 127.0.0.1 255.255.255.255 = 127.0.0.1 127.0.0.1 euqality of IPv4-mapped IPv6 value and IPv4 promoted to IPv6 with function: 1 CREATE TABLE default.ipv6_test\n(\n `ipv6_` IPv6\n)\nENGINE = Memory :: 00000000000000000000000000000000 :: 00000000000000000000000000000000 ::ffff:8.8.8.8 00000000000000000000FFFF08080808 ::ffff:127.0.0.1 00000000000000000000FFFF7F000001 ::ffff:193.252.17.10 00000000000000000000FFFFC1FC110A 2001:db8:ac10:fe01:feed:babe:cafe:f00d 20010DB8AC10FE01FEEDBABECAFEF00D ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF < 127.0.0.1 :: < 127.0.0.1 :: < 127.0.0.1 ::ffff:8.8.8.8 > 127.0.0.1 ::ffff:193.252.17.10 > 127.0.0.1 2001:db8:ac10:fe01:feed:babe:cafe:f00d > 127.0.0.1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff = 127.0.0.1 ::ffff:127.0.0.1 0.0.0.0 is ipv4 string: 1 255.255.255.255 is ipv4 string: 1 192.168.0.91 is ipv4 string: 1 127.0.0.1 is ipv4 string: 1 8.8.8.8 is ipv4 string: 1 hello is ipv4 string: 0 0:0:0:0:0:0:0:0 is ipv4 string: 0 0000:0000:0000:0000:0000:FFFF:C1FC:110A is ipv4 string: 0 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF is ipv4 string: 0 ::ffff:127.0.0.1 is ipv4 string: 0 ::ffff:8.8.8.8 is ipv4 string: 0 2001:0DB8:AC10:FE01:FEED:BABE:CAFE:F00D is ipv4 string: 0 0.0.0.0 is ipv6 string: 0 255.255.255.255 is ipv6 string: 0 192.168.0.91 is ipv6 string: 0 127.0.0.1 is ipv6 string: 0 8.8.8.8 is ipv6 string: 0 hello is ipv6 string: 0 0:0:0:0:0:0:0:0 is ipv6 string: 1 0000:0000:0000:0000:0000:FFFF:C1FC:110A is ipv6 string: 1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF is ipv6 string: 1 ::ffff:127.0.0.1 is ipv6 string: 1 ::ffff:8.8.8.8 is ipv6 string: 1 2001:0DB8:AC10:FE01:FEED:BABE:CAFE:F00D is ipv6 string: 1 ::ffff:0.0.0.0 ::ffff:127.0.0.1 ::ffff:127.0.0.1 ::ffff:127.0.0.0 ::ffff:127.0.0.1 ::ffff:127.0.0.2 ::ffff:127.0.0.3 ::ffff:127.0.0.4 ::ffff:127.0.0.5 ::ffff:127.0.0.6 ::ffff:127.0.0.7 ::ffff:127.0.0.8 ::ffff:127.0.0.9 ::ffff:127.0.0.10 ::ffff:127.0.0.11 ::ffff:127.0.0.12