错误代码门户
SQLiteSQLite错误代码

SQLITE_SCHEMA

schema

其他表示形式:17

代码 SQLITE_SCHEMA · SQLite 报告的问题。

SQLITE_SCHEMA 结果代码指示数据库架构已更改。对于使用 sqlite3_prepare() 或 sqlite3_prepare16() 生成的准备好的语句,可以从 sqlite3_step() 返回此结果代码。如果在准备语句和运行语句之间数据库架构被其他进程更改,则可能会导致此错误。 如果准备好的语句是从 sqlite3_prepare_v2() 生成的,那么当模式发生更改时,该语句会自动重新准备,最多 SQLITE_MAX_SCHEMA_RETRY 次(默认值:50)。如果在多次重试后失败仍然存在,sqlite3_step() 接口只会将 SQLITE_SCHEMA 返回给应用程序。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

The SQLITE_SCHEMA result code indicates that the database schema has changed. This result code can be returned from sqlite3_step() for a prepared statement that was generated using sqlite3_prepare() or sqlite3_prepare16(). If the database schema was changed by some other process in between the time that the statement was prepared and the time the statement was run, this error can result. If a prepared statement is generated from sqlite3_prepare_v2() then the statement is automatically re-prepared if the schema changes, up to SQLITE_MAX_SCHEMA_RETRY times (default: 50). The sqlite3_step() interface will only return SQLITE_SCHEMA back to the application if the failure persists after this many retries.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。

此条目仅链接至官方代码参考文档。尚未验证单独的故障排除步骤。