8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 23:23:04 +01:00

Fixed CORE-2042 - Connection lost to database when used AUTONOMOUS TRANSACTION

This commit is contained in:
asfernandes 2008-08-14 18:46:22 +00:00
parent 47f31ea507
commit 49c1957156

View File

@ -1891,6 +1891,10 @@ static blb* allocate_blob(thread_db* tdbb, jrd_tra* transaction)
SET_TDBB(tdbb);
Database* dbb = tdbb->getDatabase();
// If we are in an autonomous transaction, link the blob on the transaction started by the user.
while (transaction->tra_outer)
transaction = transaction->tra_outer;
/* Create a blob large enough to hold a single data page */
blb* blob = FB_NEW(*transaction->tra_pool) blb(*transaction->tra_pool, dbb->dbb_page_size);