-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested transactions and rollbacks. #534
Comments
I've encountered with the same issue, had made PR to fix this: #544 |
Hey guys, I encountered the same error. |
Fixed in master will be released soon. |
Not that I dont appreciate actual nested transaction support but it is a bit unrelated to my issue.. which is what should happen with nested exposed What I suggested something like this:
|
@spand, there are cases when you want to make Maybe additional functions like |
After working a bit with manual rollbacks and nested
transaction {}
blocks it seems that a call torollback()
will rollback the current db transaction but otherwise let db work continue in atransaction {}
block.This isnt quite what I expected. I think I would expect a transaction to be either in an open or closed state and any call to either
commit()
orrollback()
would close it requiring a new top level transaction block to start db work again (or maybe let it continue if in a top level transaction). Not let the "sub transaction" continue doing db work and certainly not the top leveltransaction {}
block after a nested one has triggered arollback
.Thoughts ?
The text was updated successfully, but these errors were encountered: