mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Merge pull request #47895 from evillique/fix-isipv6-function
Fix isIPv6String function
This commit is contained in:
commit
1bc5489e04
@ -1129,7 +1129,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