开发者

sqlite3 close returns error code 5

开发者 https://www.devze.com 2022-12-18 00:42 出处:网络
While closing sqlite3 开发者_高级运维using sqlite3_close function it returns error code 5 5 - database file is busy. How to fix this issue.The sqlite3_close documenation states it clearly:

While closing sqlite3 开发者_高级运维using sqlite3_close function it returns error code 5 5 - database file is busy. How to fix this issue.


The sqlite3_close documenation states it clearly:

Applications must finalize all prepared statements and close all BLOB handles associated with the sqlite3 object prior to attempting to close the object. If sqlite3_close() is called on a database connection that still has outstanding prepared statements or BLOB handles, then it returns SQLITE_BUSY.


Answer is in the question, see if you are accessing the db externally.

0

精彩评论

暂无评论...
验证码 换一张
取 消