SQLite Exception: SQLite Busy

前端 未结 5 1879
青春惊慌失措
青春惊慌失措 2020-11-27 22:40

Can anyone provide any input on this error. I am trying to insert into table using Objective C.

While I am doing this, I am getting an error SQLite Busy. Why this is

5条回答
  •  眼角桃花
    2020-11-27 23:35

    In my case, I had forgotten to close database after using it. Following fixed mine:

    sqlite3_finalize(statement);
    sqlite3_close(contactDB);
    

    FMDB can also alleviate these headaches from you easily.

提交回复
热议问题