On 8/21/2012 3:11 PM, Marco Maggi wrote:
Unless I overlooked it, the Python binding[1] does not
even allow an app-defined function to retrieve the
connection handle.
[1] <http://docs.python.org/library/sqlite3.html>
The last parameter to Connection.create_function is a Python callable.
That could be a simple standalone function, but it could also be a class
with __call__ method. Such a class could, for example, take Connection
as a parameter in constructor, and save it off in a member variable for
later use.
So there is no indication to pass on the code and message
set by "sqlite3_step()" in case of error?
There doesn't indeed appear to be any way to set both error code and
message. You can set one or the other (with sqlite_result_error_code or
sqlite_result_error correspondingly), but not both.
--
Igor Tandetnik
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users