Setting sqlite config SQLITE_CONFIG_SERIALIZED returns SQLITE_MISUSE on iOS 5

后端 未结 2 2013
夕颜
夕颜 2021-01-06 14:42

With the release of iOS 5 we are getting more and more errors when setting the serialized option for the sqlite database (so its save to be used for multithreading). We are

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 15:17

    Is the sqlite3_config() called before sqlite3_initialize()? The function returns SQLITE_MISUSE if called after sqlite3_initialize() and before sqlite3_shutdown(). See http://www.sqlite.org/c3ref/config.html for more details.

提交回复
热议问题