Merge pull request #47895 from evillique/fix-isipv6-function

Fix isIPv6String function
This commit is contained in:
Nikolay Degterinsky 2023-03-30 01:45:08 +02:00 committed by GitHub
commit 1bc5489e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -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];
}

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
SELECT isIPv6String('1234::1234:');