]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Oct 2020 05:46:10 +0000 (22:46 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 05:46:10 +0000 (14:46 +0900)
commita053a7ecfef006b834a9957468fa461dafb332db
tree036081be3c459ecc06c3b3d6f34d9b546aa660db
parentf6255a2ccb55a63194caf698f471c803c08be359
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)

* 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 0b419b791077414bbc011a412698ebb362b63761)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/sqlite3/test/dbapi.py
Lib/sqlite3/test/regression.py
Misc/NEWS.d/next/Library/2020-08-29-16-07-36.bpo-41662.Mn79zh.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2020-08-30-21-38-57.bpo-41662.6e9iZn.rst [new file with mode: 0644]
Modules/_sqlite/statement.c