The ON CONFLICT Clause
(lang_conflict.html)
... FAIL
When an applicable constraint violation occurs, the FAIL
resolution algorithm aborts the current SQL statement with an
SQLITE_CONSTRAINT error. But the FAIL resolution does not
back out prior changes of the SQL statement that failed nor does
it end ...
|
C API: Last Insert Rowid
(c3ref/last_insert_rowid.html)
sqlite3_last_insert_rowid()
... Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK,
and INSERT OR ABORT make no changes to the return value of this
routine when their insertion fails. When INSERT OR REPLACE
encounters a constraint violation, it does not fail ...
|
UPSERT
(lang_upsert.html)
... A "uniqueness constraint"
is an explicit UNIQUE or PRIMARY KEY constraint within
the CREATE TABLE statement, or a unique index.
UPSERT does not intervene for failed NOT NULL, CHECK,
or foreign key constraints
or for constraints that are implemented using ...
|
SQLite Foreign Key Support
(foreignkeys.html)
4.2. Deferred Foreign Key Constraints
... For as long as the user has
an open transaction, the database is allowed to exist in a state that
violates any number of deferred foreign key constraints. However,
COMMIT will fail as long as foreign key constraints remain in ...
|
ALTER TABLE
(lang_altertable.html)
... When adding a column with a CHECK constraint, or a NOT NULL constraint
on a generated column, the added constraints are tested against all
preexisting rows in the table and the ADD COLUMN fails
if any constraint fails. The testing ...
|
Constraint Conflict Resolution in SQLite
(conflict.html)
... FAIL
When a constraint violation occurs, the command aborts with a
return code SQLITE_CONSTRAINT. But any changes to the database that
the command made prior to encountering the constraint violation
are preserved and are not backed out. For example, if ...
|
Result and Error Codes
(rescode.html)
6. Result Code Meanings
... 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 ...
|
C API: Virtual Table Configuration Options
(c3ref/c_vtab_constraint_support.html)
SQLITE_VTAB_CONSTRAINT_SUPPORT, SQLITE_VTAB_INNOCUOUS, SQLITE_VTAB_DIRECTONLY, SQLITE_VTAB_USES_ALL_SCHEMAS
... If X is non-zero, then the virtual table implementation guarantees
that if xUpdate returns SQLITE_CONSTRAINT, it will do so before
any modifications to internal or persistent data structures have been made.
If the ON CONFLICT mode is ABORT, FAIL ...
|
C API: Open A BLOB For Incremental I/O
(c3ref/blob_open.html)
sqlite3_blob_open()
... This function fails with SQLITE_ERROR if any of the following are true:
Database zDb does not exist,
Table zTable does not exist within database zDb,
Table zTable is a WITHOUT ROWID table,
Column zColumn does not exist,
Row iRow is ...
|
The INDEXED BY Clause
(lang_indexedby.html)
... the preparation of the SQL statement fails.
The "NOT INDEXED" clause specifies that no index shall be used when
accessing the preceding table, including implied indices create by
UNIQUE and PRIMARY KEY constraints. However, the rowid
can still be used ...
|
Page generated by FTS5 in about 91.62 ms.