Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit transaction doesnt work after rollback of different transaction #158

Closed
Michalau opened this issue Oct 25, 2018 · 0 comments
Closed
Assignees
Labels
area-Kros.KORM bug Something isn't working

Comments

@Michalau
Copy link
Contributor

Library name and version

  • Kros.KORM 3.4

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Kros.KORM bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants