v.21.2Improvements

toIPv6 Function Enhancements for Parsing IPv4 Addresses

toIPv6 function parses IPv4 addresses. #19518 (Bharat Nallan).
The toIPv6 function now supports parsing IPv4 addresses, enabling seamless conversion and interoperability between IPv4 and IPv6 formats.

Why it matters

This feature addresses the need for converting IPv4 addresses into their corresponding IPv6 representation, simplifying handling of IP addresses in mixed network environments and enhancing query flexibility.

How to use it

To use this feature, simply call the toIPv6 function with an IPv4 address string as the argument, for example:

SELECT toIPv6('192.168.1.1')

This will return the IPv6-mapped equivalent of the given IPv4 address.