[issue44839] Convert Python exceptions to appropriate SQLite error codes

2021-08-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44839] Convert Python exceptions to appropriate SQLite error codes

2021-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7d747f26e6cac9f6891d475f3443441ce947697b by Serhiy Storchaka in branch 'main': bpo-44839: Raise more specific errors in sqlite3 (GH-27613) https://github.com/python/cpython/commit/7d747f26e6cac9f6891d475f3443441ce947697b --

[issue44839] Convert Python exceptions to appropriate SQLite error codes

2021-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was grown from bigmem tests for issue44822. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue44839] Convert Python exceptions to appropriate SQLite error codes

2021-08-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently, any exception raised in user-defined function set the general SQLITE_ERROR error which then produce sqlite3.OperationalError. For example, if the user function returns a string or bytes object larger than INT_MAX you get OperationalError, but

[issue44839] Convert Python exceptions to appropriate SQLite error codes

2021-08-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26107 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27613 ___ Python tracker ___