Hello,
I like to recommend to use an enum for the return code of all sqlite3 functions., E.g.:
typedef enum {
SQLITE_OK = 0, /* Successful result */
SQLITE_ERROR = 1, /* SQL error or missing database */
SQLITE_INTERNAL = 2, /* An internal logic error in SQLite */
//...
} sqlite3_retcode;sqlite3_retcode sqlite3_open( const char *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb /* OUT: SQLite db handle */ );
The benefit would be that the return value would be displayed in the debugger.
best regards
Helmut Tschemernjak

