Error code

SQLite SQLITE_MISMATCH

SQLITESQLITE_MISMATCH
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

datatype mismatch — the value type does not fit the affinity.

How to fix it

  1. Use strict table mode carefully and ensure inserted values match declared column types.
  2. Prefer dynamic typing for flexible schemas and add explicit CAST calls when type conversion is needed.
  3. Check that integer primary key columns receive only integer values.

Not affiliated with SQLite. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.