错误代码门户
SQLiteSQLite错误代码

SQLITE_MISMATCH

mismatch

其他表示形式:20

代码 SQLITE_MISMATCH · SQLite 报告的问题。

SQLITE_MISMATCH 错误代码指示数据类型不匹配。 SQLite 通常非常宽容值的类型与存储该值的容器的声明类型之间的不匹配。例如,SQLite 允许应用程序将大型 BLOB 存储在声明类型为 BOOLEAN 的列中。但在某些情况下,SQLite 对类型很严格。当类型不匹配时,在少数情况下会返回 SQLITE_MISMATCH 错误。 表的 rowid 必须是整数。尝试将 rowid 设置为整数以外的任何值(或 NULL,它将自动转换为下一个可用的整数 rowid)会导致 SQLITE_MISMATCH 错误。

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

The SQLITE_MISMATCH error code indicates a datatype mismatch. SQLite is normally very forgiving about mismatches between the type of a value and the declared type of the container in which that value is to be stored. For example, SQLite allows the application to store a large BLOB in a column with a declared type of BOOLEAN. But in a few cases, SQLite is strict about types. The SQLITE_MISMATCH error is returned in those few cases when the types do not match. The rowid of a table must be an integer. Attempt to set the rowid to anything other than an integer (or a NULL which will be automatically converted into the next available integer rowid) results in an SQLITE_MISMATCH error.

故障排除与诊断链接

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

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