ClickHouse/tests/queries/0_stateless/03161_ipv4_ipv6_equality.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
478 B
MySQL
Raw Normal View History

2024-05-23 13:05:08 +00:00
-- Equal
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.1');
SELECT toIPv6('::ffff:127.0.0.1') = toIPv4('127.0.0.1');
-- Not equal
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.2');
SELECT toIPv4('127.0.0.2') = toIPv6('::ffff:127.0.0.1');
SELECT toIPv6('::ffff:127.0.0.1') = toIPv4('127.0.0.2');
SELECT toIPv6('::ffff:127.0.0.2') = toIPv4('127.0.0.1');
SELECT toIPv4('127.0.0.1') = toIPv6('::ffef:127.0.0.1');
SELECT toIPv6('::ffef:127.0.0.1') = toIPv4('127.0.0.1');