SQLite Exception: SQLite Busy

前端 未结 5 1885
青春惊慌失措
青春惊慌失措 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:25

    I had a similar problem with SQLITE_BUSY on sequential INSERT INTO commands. The first row inserted ok, but when the app tried to insert a second row, I got the SQLITE_BUSY status. After Google'ing around, I learned you must call sqlite3_finalize() on statements after executing them: http://www.sqlite.org/c3ref/finalize.html. Finalizing my statements fixed my problem.

提交回复
热议问题