-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
bpo-27334: roll back transaction if sqlite3 context manager fails to commit #26202
Conversation
Co-authored-by: Luca Citi Co-authored-by: Berker Peksag <[email protected]>
@berkerpeksag, a couple of comments accompanying the change:
|
(cc. @pablogsal) |
Thanks for creating the PR. Sorry for not doing it myself, I almost forgot about the whole thing. It's good that a fix is eventually making its way into the code. |
Thanks for reporting, providing a reproducer, and proposing a fix! :) I've credited you in the NEWS entry and in the commit message. |
Misc/NEWS.d/next/Library/2021-05-18-00-17-21.bpo-27334.32EJZi.rst
Outdated
Show resolved
Hide resolved
You can try Example:
|
Thanks! I'll have a look at this after #26462 is resolved :) |
@erlend-aasland Does this need backports? If not, please close the issue :) |
It's a bugfix, so I'd backport to 3.10 and 3.9. (I suspect the backports must be done manually) |
Thank you so much for reviewing, Pablo and Victor! |
Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, @erlend-aasland and @pablogsal, I could not cleanly backport this to |
Sorry @erlend-aasland and @pablogsal, I had trouble checking out the |
GH-27943 is a backport of this pull request to the 3.10 branch. |
…ils to commit (pythonGH-26202) Co-authored-by: Luca Citi Co-authored-by: Berker Peksag <[email protected]>. (cherry picked from commit 7ecd342) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
GH-27944 is a backport of this pull request to the 3.9 branch. |
…ls to commit (pythonGH-26202) Co-authored-by: Luca Citi Co-authored-by: Berker Peksag <[email protected]>. (cherry picked from commit 7ecd342) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
https://bugs.python.org/issue27334