8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Backported fix for CORE-4327: Error in QLI when copying NULL blobs between databases

This commit is contained in:
alexpeshkoff 2014-01-30 14:53:19 +00:00
parent 96f4dc94f2
commit 192d59f3a7

View File

@ -667,10 +667,14 @@ static bool copy_blob( qli_nod* value, qli_par* parameter)
// We've got a blob copy on our hands.
if (!from_desc) {
*to_desc->dsc_address = 0;
if ((!from_desc) || UserBlob::blobIsNull(*(ISC_QUAD*) from_desc->dsc_address)
|| (from_desc->dsc_missing & DSC_missing))
{
memset(to_desc->dsc_address, 0, sizeof(ISC_QUAD));
to_desc->dsc_missing |= DSC_missing;
return true;
}
to_desc->dsc_missing &= ~DSC_missing;
// Format blob parameter block for the existing blob