-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Transaction#isOpen()
after errors
`ExplicitTransaction` has a FAILED state which is reached when fatal connection error happens or `Session#reset()` is called. In both cases corresponding transaction on server will be rolled back by the database. This commit makes sure FAILED state is changed to ROLLED_BACK when transaction is closed. It's needed to make sure `Transaction#isOpen()` does not report status incorrectly after closing of a FAILED transaction.
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters