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

Set transaction handle to NULL after successful commit or rollback

This commit is contained in:
hvlad 2008-03-28 09:18:39 +00:00
parent 4ddc446ed5
commit 5e6a939197

View File

@ -5968,6 +5968,7 @@ void JRD_commit_transaction(thread_db* tdbb, jrd_tra** transaction)
* *
**************************************/ **************************************/
commit(tdbb, *transaction, false); commit(tdbb, *transaction, false);
*transaction = NULL;
} }
@ -6000,6 +6001,7 @@ void JRD_rollback_transaction(thread_db* tdbb, jrd_tra** transaction)
* *
**************************************/ **************************************/
rollback(tdbb, *transaction, false); rollback(tdbb, *transaction, false);
*transaction = NULL;
} }