[sqlite] SQLITE_MISUE returned from sqlite3_step with inconsistent errMsg

2012-08-30 Thread Daniel Dawson
Hey Guys, I am calling sqlite3_step and checking the return value, Usually I get an SQLITE_DONE, or an SQLITE_BUSY which I handle. However, sometimes I get an SQLITE_MISUSE return code. If I call sqlite3_errmsg straight after receiving the code then I get Database is Locked - The

[sqlite] sqlite wrapper .dll - best way to store result set and expose it to user

2012-08-27 Thread Daniel Dawson
I am writing a .dll-based wrapper for sqlite3 in C++. I am planning on providing functions to do inserts and selects and other things, it is mostly centred around usability for whoever uses the .dll. For example my select function looks like this void* SQL_singleSelect(char *query,