8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00
This commit is contained in:
asfernandes 2014-02-02 01:02:57 +00:00
parent 4651901db5
commit 787f3fd8aa
2 changed files with 4 additions and 3 deletions

View File

@ -526,7 +526,7 @@ static bool startTransaction(Firebird::ITransaction** t, unsigned len = 0, const
return false;
}
return DB;
return DB != NULL;
}
static bool M_Transaction()

View File

@ -668,13 +668,14 @@ static bool copy_blob( qli_nod* value, qli_par* parameter)
// We've got a blob copy on our hands.
if ((!from_desc) || UserBlob::blobIsNull(*(ISC_QUAD*) from_desc->dsc_address)
|| (from_desc->dsc_missing & DSC_missing))
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