Re: [sqlite] How do I check if the DB is open?

2016-12-14 Thread Jens Alfke
> On Dec 13, 2016, at 8:01 PM, Igor Korot wrote: > > Yes, you are correct. > Do you know how I can write such a code? Just move the code that looks for statements into the " if( res != SQLITE_OK )” block. —Jens ___ sqlite-users

Re: [sqlite] How do I check if the DB is open?

2016-12-14 Thread Hick Gunter
Perhaps you should change your calling sequence so that you call sqlite3_next_stmt() BEFORE sqlite3_close()? If you exclusively use sqlte3_prepare_v2() you can retrieve the text of the unfinalized statement(s), print/log that, and maybe even call sqlite3_finalize() if you like.