From 49c195715682eede76f00e72b48bd78e30888545 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Thu, 14 Aug 2008 18:46:22 +0000 Subject: [PATCH] Fixed CORE-2042 - Connection lost to database when used AUTONOMOUS TRANSACTION --- src/jrd/blb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jrd/blb.cpp b/src/jrd/blb.cpp index 9556a1dc72..145b298352 100644 --- a/src/jrd/blb.cpp +++ b/src/jrd/blb.cpp @@ -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);