petern wrote:
> Regarding sqlite3_trace_v2(db, SQLITE_TRACE_PROFILE,...).  Calls to
> sqlite3_sql() on the third trace callback parameter (cast to sqlite_stmt*)
> do retrieve the correct part of the the original sqlite3_exec input SQL
> string except for ill formed SQL.  Apparently the SQLITE_TRACE_PROFILE
> event is not generated for the failed statement.

I don't think there is any callback that is called before the statement
is prepared.

> Do you have further thoughts on getting the parse point of the failed
> statement from sqlite3_exec on a multiple statement SQL string?

Even if you copy the sqlite3_exec implemention, the error message will
mention nothing more than a wrong token.


Regards,
Clemens
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to