This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Enhance error handling in the sqlite module
Type: Stage:
Components: Versions: Python 3.4, Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: python-dev, vstinner
Priority: normal Keywords: patch

Created on 2014-06-24 09:50 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
sqlite_error_handling-wip.patch vstinner, 2014-06-24 09:50 review
Messages (2)
msg221445 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-06-24 09:50
The _sqlite module doesn't handle correctly Python errors. It may loose the current Python exception: test_sqlite fails when the patch of the issue #21857 is applied.

Attached patch is a work-in-progress patch to fail earlier when Python raises an exception.
msg221651 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-06-26 21:34
New changeset 62612b195cb5 by Victor Stinner in branch '3.4':
Issue #21858: Better handling of Python exceptions in the sqlite3 module.

New changeset 169171da66fa by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21858: Better handling of Python exceptions in the sqlite3
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 66057
2014-06-26 21:48:27vstinnersetversions: + Python 3.4
2014-06-26 21:48:24vstinnersetstatus: open -> closed
resolution: fixed
2014-06-26 21:34:24python-devsetnosy: + python-dev
messages: + msg221651
2014-06-24 09:50:54vstinnercreate