8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 19:23:03 +01:00
This commit is contained in:
dimitr 2009-12-25 15:37:24 +00:00
parent 6a758c40aa
commit 68f9066a51

View File

@ -601,19 +601,7 @@ void Function::parseBlr(thread_db* tdbb, bid* blob_id, CompilerScratch* csb)
{
fb_assert(blob_id && !blob_id->isEmpty());
Database* const dbb = tdbb->getDatabase();
Firebird::UCharBuffer tmp;
blb* const blob = BLB_open(tdbb, dbb->dbb_sys_trans, blob_id);
const SLONG length = blob->blb_length + 10;
UCHAR* const temp = tmp.getBuffer(length);
const ULONG realLen = BLB_get_data(tdbb, blob, temp, length);
fb_assert(realLen >= ULONG(length) - 10 && realLen <= ULONG(MAX_USHORT));
tmp.resize(realLen);
PAR_blr(tdbb, NULL, tmp.begin(), (ULONG) tmp.getCount(), NULL, &csb,
&fun_request, false, 0);
MET_parse_blob(tdbb, NULL, blob_id, &csb, &fun_request, false);
}
void Function::addRef()