Fix isIPv6String function

This commit is contained in:
Nikolay Degterinsky 2023-03-22 13:42:35 +00:00
parent 44531e5f85
commit c28b97881c
3 changed files with 5 additions and 1 deletions

View File

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

View File

@ -0,0 +1 @@
0

View File

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