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

Fixed bug CORE-3799 : with caller privileges option don't work with autonomous transaction option

This commit is contained in:
hvlad 2012-03-29 13:25:15 +00:00
parent f79900f9b7
commit 660fa3b651

View File

@ -245,8 +245,9 @@ void InternalTransaction::doStart(ISC_STATUS* status, thread_db* tdbb, ClumpletW
{
fb_assert(!m_transaction);
jrd_tra* localTran = tdbb->getTransaction();
if (m_scope == traCommon && m_IntConnection.isCurrent()) {
m_transaction = tdbb->getTransaction();
m_transaction = localTran;
}
else
{
@ -255,6 +256,8 @@ void InternalTransaction::doStart(ISC_STATUS* status, thread_db* tdbb, ClumpletW
EngineCallbackGuard guard(tdbb, *this);
jrd8_start_transaction(status, &m_transaction, 1, &att,
tpb.getBufferLength(), tpb.getBuffer());
m_transaction->tra_callback_count = localTran ? localTran->tra_callback_count : 1;
}
}