fix: allow ipv4_num_to_string to accept valid integers (#7994)

* fix: allow ipv4_num_to_string to accept valid integers

Signed-off-by: Johannes Sluis <joesluis51@gmail.com>

* test: update sqlness result file

Signed-off-by: Johannes Sluis <joesluis51@gmail.com>

* fix: use coercible integer signature for ipv4_num_to_string

Signed-off-by: Johannes Sluis <joesluis51@gmail.com>

---------

Signed-off-by: Johannes Sluis <joesluis51@gmail.com>
This commit is contained in:
Joe Sluis
2026-04-20 21:20:14 -07:00
committed by GitHub
parent f6851cf8d7
commit e26ce9ca32
3 changed files with 71 additions and 3 deletions

View File

@@ -84,6 +84,9 @@ SELECT
inet_ntoa(ip_numeric) AS computed_addr
FROM ip_v4_data;
-- Test IPv4 number to string conversion function without explicit cast
SELECT ipv4_num_to_string(3232235521);
-- Test IPv4 CIDR functions
-- SQLNESS SORT_RESULT 3 1
SELECT