-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-41662: Fix bugs in binding parameters in sqlite3 #21998
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-41662: Fix bugs in binding parameters in sqlite3 #21998
Conversation
* When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how common is the second case, but I think it wouldn't hurt to have a test for the first case. Other than that, it looks good to me!
@@ -0,0 +1 @@ | |||
Fixed two rare bugs in binding parameters in the :mod:`sqlite3` module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this doesn't give readers any meaningful information so if you think it's not easy to explain what we are fixing here, I'd say it's OK to not add a NEWS entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it look better now? I added two separate entries for two bugs.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
* When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``. (cherry picked from commit 0b419b7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-22289 is a backport of this pull request to the 3.9 branch. |
* When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``. (cherry picked from commit 0b419b7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-22290 is a backport of this pull request to the 3.8 branch. |
* When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``. (cherry picked from commit 0b419b7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``.
* When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``. (cherry picked from commit 0b419b7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
of changing it during iteration.
override an exception raised in
__len__()
.https://bugs.python.org/issue41662