mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Put isc_info_end into response buffer despite of its presence in info items.
This commit is contained in:
parent
4eefa4b17e
commit
a645790176
@ -870,6 +870,9 @@ bool RBlobInfo::getLocalInfo(unsigned int itemsLength, const unsigned char* item
|
||||
|
||||
for (auto item = items; p && (item < items + itemsLength); item++)
|
||||
{
|
||||
if (*item == isc_info_end)
|
||||
break;
|
||||
|
||||
switch (*item)
|
||||
{
|
||||
case isc_info_blob_num_segments:
|
||||
@ -888,17 +891,15 @@ bool RBlobInfo::getLocalInfo(unsigned int itemsLength, const unsigned char* item
|
||||
p = fb_utils::putInfoItemInt(*item, blob_type, p, end);
|
||||
break;
|
||||
|
||||
case isc_info_end:
|
||||
if (p < end)
|
||||
*p++ = isc_info_end;
|
||||
break;
|
||||
|
||||
default:
|
||||
// unknown info item, let remote server handle it
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (p < end)
|
||||
*p++ = isc_info_end;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user