Kros-sk / Kros.Libs

This repo contains Kros.Utils, Kros.Utils.MsAccess, Kros.KORM and Kros.KORM.MsAccess libraries.
MIT License
7 stars 13 forks source link

Commit transaction doesnt work after rollback of different transaction #158

Closed Michalau closed 6 years ago

Michalau commented 6 years ago

Library name and version

Description

Commit transaction doesnt work after rollback of different transaction

Steps To Reproduce

  1. Use same database connection
  2. Call Database.BeginTranscation
  3. Call Transaction.Rollback It calls _transactionHelper.EndTransaction(false). EndTransaction set _canCommit to false.
  4. Make new transaction - call Database.BeginTranscation and then call Transaction.Commit.
  5. Transaction is not commited because _canCommit is set to false - step 3. Transcation is still open.

Expected behavior

Second transaction should be commited.

Actual behavior

Transaction is not commited and it is still open.