这是什么问题?
代码 SQLITE_ABORT · SQLite 报告的问题。
译文说明
SQLITE_ABORT 结果代码指示操作在完成之前被中止,通常是根据应用程序请求。另请参阅:SQLITE_INTERRUPT。
如果 sqlite3_exec() 的回调函数返回非零,则 sqlite3_exec() 将返回 SQLITE_ABORT。
如果 ROLLBACK 操作与挂起的读取或写入在同一数据库连接上发生,则挂起的读取或写入可能会失败,并出现 SQLITE_ABORT 或 SQLITE_ABORT_ROLLBACK 错误。
除了作为结果代码之外,SQLITE_ABORT值还用作从sqlite3_vtab_on_conflict()接口返回的冲突解决模式。
Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。
官方说明 · 原文
The SQLITE_ABORT result code indicates that an operation was aborted prior to completion, usually by application request. See also: SQLITE_INTERRUPT.
If the callback function to sqlite3_exec() returns non-zero, then sqlite3_exec() will return SQLITE_ABORT.
If a ROLLBACK operation occurs on the same database connection as a pending read or write, then the pending read or write may fail with an SQLITE_ABORT or SQLITE_ABORT_ROLLBACK error.
In addition to being a result code, the SQLITE_ABORT value is also used as a conflict resolution mode returned from the sqlite3_vtab_on_conflict() interface.