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

Created on 2014-06-24 09:50 by haypo, last changed 2014-06-26 21:48 by haypo. This issue is now closed.

Files
File name Uploaded Description Edit
sqlite_error_handling-wip.patch haypo, 2014-06-24 09:50 review
Messages (2)
msg221445 - (view) Author: STINNER Victor (haypo) * (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) 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.
http://hg.python.org/cpython/rev/62612b195cb5

New changeset 169171da66fa by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21858: Better handling of Python exceptions in the sqlite3
http://hg.python.org/cpython/rev/169171da66fa
History
Date User Action Args
2014-06-26 21:48:27hayposetversions: + Python 3.4
2014-06-26 21:48:24hayposetstatus: open -> closed
resolution: fixed
2014-06-26 21:34:24python-devsetnosy: + python-dev
messages: + msg221651
2014-06-24 09:50:54haypocreate