mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix isIPv6String function
This commit is contained in:
parent
44531e5f85
commit
c28b97881c
@ -1131,7 +1131,9 @@ public:
|
||||
|
||||
for (size_t i = 0; i < vec_res.size(); ++i)
|
||||
{
|
||||
vec_res[i] = DB::parseIPv6whole(reinterpret_cast<const char *>(&vec_src[prev_offset]), reinterpret_cast<unsigned char *>(buffer));
|
||||
vec_res[i] = DB::parseIPv6whole(reinterpret_cast<const char *>(&vec_src[prev_offset]),
|
||||
reinterpret_cast<const char *>(&vec_src[offsets_src[i] - 1]),
|
||||
reinterpret_cast<unsigned char *>(buffer));
|
||||
prev_offset = offsets_src[i];
|
||||
}
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
0
|
1
tests/queries/0_stateless/02675_is_ipv6_function_fix.sql
Normal file
1
tests/queries/0_stateless/02675_is_ipv6_function_fix.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT isIPv6String('1234::1234:');
|
Loading…
Reference in New Issue
Block a user