]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 17 Sep 2020 07:35:44 +0000 (10:35 +0300)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 07:35:44 +0000 (10:35 +0300)
commit0b419b791077414bbc011a412698ebb362b63761
treeee14bf8c868781a6d75c080acbaf110c94ae6270
parentdcfaa520c4638a67052a4ff4a2a820be68750ad7
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__()``.
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