エラーコードポータル
SQLiteSQLiteエラーコード

SQLITE_MISMATCH

mismatch

別表記: 20

コード SQLITE_MISMATCH · SQLiteが報告した問題です。

SQLITE_MISMATCH エラー コードは、データ型の不一致を示します。 SQLite は通常、値の型と、その値が格納されるコンテナーの宣言された型との間の不一致を非常に許容します。たとえば、SQLite を使用すると、アプリケーションは宣言された型 BOOLEAN を持つ列に大きな BLOB を格納できます。ただし、場合によっては、SQLite は型について厳密です。 SQLITE_MISMATCH エラーは、型が一致しない場合に返されます。 テーブルの ROWID は整数である必要があります。 rowid を整数 (または、次に使用可能な整数 rowid に自動的に変換される NULL) 以外に設定しようとすると、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.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。

この項目には公式のコード参考文書のみを掲載しています。個別の解決手順は検証していません。