]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44839: Raise more specific errors in sqlite3 (GH-27613)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 6 Aug 2021 18:28:47 +0000 (21:28 +0300)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 18:28:47 +0000 (21:28 +0300)
commit7d747f26e6cac9f6891d475f3443441ce947697b
tree2b21130c1bbc45c410cec55d13bdae26e23df10c
parent738ac00a08cb6a9d104ec85ccb1a44c2399d6baa
bpo-44839: Raise more specific errors in sqlite3 (GH-27613)

MemoryError raised in user-defined functions will now preserve
its type. OverflowError will now be converted to DataError.
Previously both were converted to OperationalError.
Lib/sqlite3/test/userfunctions.py
Misc/NEWS.d/next/Library/2021-08-05-14-59-39.bpo-44839.MURNL9.rst [new file with mode: 0644]
Modules/_sqlite/connection.c