-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
[sqlite3] the trace callback does not raise exceptions on error #89252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Currently, two calls can raise exceptions in the _trace_callback() in Modules/_sqlite/connection.c:
Currently, we either PyErr_Print() the traceback, or we PyErr_Clear() it. In either case; we clear the current exception. The other SQLite callbacks pass some kind of return value back to SQLite to indicate failure (which is normally then passed to _pysqlite_seterror() via sqlite3_step() or sqlite3_finalize(), but the trace callback does not pass errors back to SQLite; we're unable to detect if the trace callback fails. |
Quoting Petr from PR 28133: Closing this issue as won't fix. |
It *would* be possible to improve the documentation, though. |
+1 |
Thanks, Erlend! ✨ 🍰 ✨ |
sqlite3
trace callback #28133sqlite3
trace callback docs #28238Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: