mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
Backported fix for CORE-4327: Error in QLI when copying NULL blobs between databases
This commit is contained in:
parent
96f4dc94f2
commit
192d59f3a7
@ -667,10 +667,14 @@ static bool copy_blob( qli_nod* value, qli_par* parameter)
|
|||||||
|
|
||||||
// We've got a blob copy on our hands.
|
// We've got a blob copy on our hands.
|
||||||
|
|
||||||
if (!from_desc) {
|
if ((!from_desc) || UserBlob::blobIsNull(*(ISC_QUAD*) from_desc->dsc_address)
|
||||||
*to_desc->dsc_address = 0;
|
|| (from_desc->dsc_missing & DSC_missing))
|
||||||
|
{
|
||||||
|
memset(to_desc->dsc_address, 0, sizeof(ISC_QUAD));
|
||||||
|
to_desc->dsc_missing |= DSC_missing;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
to_desc->dsc_missing &= ~DSC_missing;
|
||||||
|
|
||||||
|
|
||||||
// Format blob parameter block for the existing blob
|
// Format blob parameter block for the existing blob
|
||||||
|
Loading…
Reference in New Issue
Block a user