Why do I get a SQLITE_MISUSE : Out of Memory error?

后端 未结 2 1089
醉梦人生
醉梦人生 2021-01-03 12:26

I am writing an iOS application that directly accesses SQLite. I have done this sort of thing many times on Android, so I\'m struggling to see

2条回答
  •  太阳男子
    2021-01-03 12:44

    You're not checking the value of the sqlite3_prepare_v2 statement. If it's not SQLITE_OK then there's an issue.

    Also, does the database file already exist? If not, you need to create it or load it from the bundle.

提交回复
热议问题