mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 06:20:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user