bpo-44839: Raise more specific errors in sqlite3 by serhiy-storchaka · Pull Request #27613 · python/cpython

@serhiy-storchaka

MemoryError raised in user-defined function will now preserve
its type. OverflowError will now be converted to DataError.
Previously both were converted to OperationalError.

erlend-aasland

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

@serhiy-storchaka

serhiy-storchaka

@serhiy-storchaka

erlend-aasland

erlend-aasland

@serhiy-storchaka

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

erlend-aasland pushed a commit to erlend-aasland/cpython that referenced this pull request

Jan 30, 2022
pythonGH-27613 (bpo 44839) was not backported, so exceptions differ between
main (3.11) and older versions.

JelleZijlstra pushed a commit that referenced this pull request

Feb 21, 2022
…1030)

* [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642).
(cherry picked from commit 3eb3b4f)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

* Fix test_func_return_too_large_int

GH-27613 (bpo 44839) was not backported, so exceptions differ between
main (3.11) and older versions.