Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.84k stars 1.41k forks source link

引入WCDB后,原有sqlite3数据库执行报错 SQLITE_MISUSE #905

Closed TommyChangz closed 1 year ago

TommyChangz commented 1 year ago

The language of WCDB

Objective-C

The version of WCDB

v1.1.0

The platform of WCDB

iOS

The installation of WCDB

Cocoapods,

What's the issue?

  1. 由于项目里有使用基于系统sqlite3封装的数据库,在引入WCDB后,原有的数据库执行sql时报错【sqlite3_exec()函数】报错,错误code为SQLITE_MISUSE 21 / Library used incorrectly /。
  2. 不知道是不是因为WCDB改写的sqlite源码影响到了系统的sqlite3?但项目是可以正常编译运行的。
Qiuwen-chen commented 1 year ago

WCDB is configured with SQLITE_ENABLE_API_ARMOR. It will activate extra code that attempts to detect misuse of the SQLite API

jozdee commented 1 year ago

YYKit中的YYKVStorage,崩溃在sqlite3_exec调用上,请问如何解决?