[issue7394] sqlite3: some OperationalError exceptions should be ProgrammingError (PEP 249)

Gerhard Häring report at bugs.python.org
Fri Dec 18 14:54:39 CET 2009


Gerhard Häring <gh at ghaering.de> added the comment:

The error code SQLITE_ERROR from SQLite is used for "runtime errors".
These can either be caused by the programmer (table does not exist, SQL
contains errors) or they can be other problems like constraint
violations etc.

To differentiate these we would need to parse the error message returned
by sqlite3_errmsg(). This is a path I don't want to go: it's hard to get
this right across current and future SQLite versions.

So I'm closing this issue as wontfix.

----------
assignee:  -> ghaering
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7394>
_______________________________________


More information about the Python-bugs-list mailing list