Condividi tramite


Conflict Enum

Definition

public enum Conflict
type Conflict = 
Inheritance
Conflict

Fields

Name Value Description
None 0

Use the following when no conflict action is specified.

Rollback 1

When a constraint violation occurs, an immediate ROLLBACK occurs, thus ending the current transaction, and the command aborts with a return code of SQLITE_CONSTRAINT.

Abort 2

When a constraint violation occurs,no ROLLBACK is executed so changes from prior commands within the same transaction are preserved.

Fail 3

When a constraint violation occurs, the command aborts with a return code SQLITE_CONSTRAINT.

Ignore 4

When a constraint violation occurs, the one row that contains the constraint violation is not inserted or changed. But the command continues executing normally.

Replace 5

When a UNIQUE constraint violation occurs, the pre-existing rows that are causing the constraint violation are removed prior to inserting or updating the current row.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to