On 7/24/18, J Decker <d3c...@gmail.com> wrote:
>
> I have a callback configured on SQLITE_CONFIG_LOG
> sqlite3_config( SQLITE_CONFIG_LOG, errorLogCallback, 0);
>
> Which is global, and does not identify the instance.  I figured, I could
> just easily register the same callback on the db connection object....
>
> sqlite3_db_config( odbc->db, SQLITE_CONFIG_LOG, dbErrorLogCallback, odbc );
>
> But that's not supported per connection.
> So how do I know which connection is executing a statement that failed?

There is no way to do that.  The reason is that these errors are often
dispatched from way down inside the I/O routines which have no
knowledge of which database connection they are servicing.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to