Sqlite3 close returns error code 5

When closing sqlite3 using the sqlite3_close function, it returns error code 5 5 - the database file is busy. How to fix this problem.

+4
source share
2 answers

sqlite3_close documenation clearly states:

Applications must complete all prepared statements and close all blob descriptors associated with the sqlite3 object before attempting to close the object. If sqlite3_close () is called in conjunction with a database that still has outstanding prepared statements or BLOB descriptors, then it returns SQLITE_BUSY.

+9
source

The answer is in the question whether you are looking at the external external db.

0
source

Source: https://habr.com/ru/post/1299512/


All Articles