Update docs

This commit is contained in:
Francisco Javier Jurado Moreno 2024-05-23 15:37:46 +02:00
parent cd395ef346
commit 3ea362373b
2 changed files with 25 additions and 0 deletions

View File

@ -57,6 +57,18 @@ SELECT toTypeName(from), hex(from) FROM hits LIMIT 1;
└──────────────────┴───────────┘
```
IPv4 addresses can be directly compared to IPv6 addresses:
```sql
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.1');
```
```text
┌─equals(toIPv4('127.0.0.1'), toIPv6('::ffff:127.0.0.1'))─┐
│ 1 │
└─────────────────────────────────────────────────────────┘
```
**See Also**
- [Functions for Working with IPv4 and IPv6 Addresses](../functions/ip-address-functions.md)

View File

@ -57,6 +57,19 @@ SELECT toTypeName(from), hex(from) FROM hits LIMIT 1;
└──────────────────┴──────────────────────────────────┘
```
IPv6 addresses can be directly compared to IPv4 addresses:
```sql
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.1');
```
```text
┌─equals(toIPv4('127.0.0.1'), toIPv6('::ffff:127.0.0.1'))─┐
│ 1 │
└─────────────────────────────────────────────────────────┘
```
**See Also**
- [Functions for Working with IPv4 and IPv6 Addresses](../functions/ip-address-functions.md)