]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 17 Sep 2020 07:57:07 +0000 (00:57 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 07:57:07 +0000 (00:57 -0700)
commitf76a3889d1fc6c5514323866a047b642c6da4e9b
treee93c1ec627a4d318f53537de3c843e96136cbb0d
parenta9ba8ba9a71f3cb8d274c354ff67b6206abeb8ac
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