I am using SQLite (3.6.4) from a C ++ application (using standard C api). My question is: once the query has been prepared using sqlite3_prepare_v2() and related to the parameters using sqlite3_bind_xyz() - is there a way to get the row containing the original SQL query?
The reason is that something went wrong, I would like to print the request (for debugging, this is my own test application for developers).
Example:
sqlite3_prepare_v2(db, "SELECT * FROM xyz WHERE something = ? AND somethingelse = ?", -1, &myQuery, NULL); sqlite3_bind_text(myQuery, 1, mySomething); sqlite3_bind_text(myQuery, 2, mySomethingElse);
Bonus points if they can also print the actual parameters that were related. :)
c ++ sqlite
Isak savo
source share