mardi 29 septembre 2015

sqlite3_step returns SQLITE_BUSY

I am using sqlite3 on Linux using C++. Calling sqlite3_step, returns SQLITE_BUSY. Going through the documentation of sqlite about this error code, it tells that multiple processes should be involved in this case (http://ift.tt/1r8z37x).

Yes, in my case multiple processes are involved to access the db. It appears the problem can be resolved using the interface calls sqlite3_busy_handler and sqlite3_busy_timeout. http://ift.tt/1rayA4n http://ift.tt/1KHt3zf

Is there any document/working example for the usage of these calls? Please add reference if you have any. Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire