Error Code Portal
SQLiteSQLiteError code

SQLITE_CONSTRAINT

constraint

Alternative forms: 19

Code SQLITE_CONSTRAINT · An issue reported by SQLite.

The SQLITE_CONSTRAINT error code means that an SQL constraint violation occurred while trying to process an SQL statement. Additional information about the failed constraint can be found by consulting the accompanying error message (returned via sqlite3_errmsg() or sqlite3_errmsg16()) or by looking at the extended error code. The SQLITE_CONSTRAINT code can also be used as the return value from the xBestIndex() method of a virtual table implementation. When xBestIndex() returns SQLITE_CONSTRAINT, that indicates that the particular combination of inputs submitted to xBestIndex() cannot result in a usable query plan and should not be given further consideration.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.