Skip to content

Commit 7f633b8

Browse files
committed
doc: fix SQLite changeset constant descriptions
Signed-off-by: greenhead <shren0812@gmail.com>
1 parent f46e96f commit 7f633b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎doc/api/sqlite.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,11 +1638,11 @@ conflict resolution handler passed to [`database.applyChangeset()`][]. See also
16381638
</tr>
16391639
<tr>
16401640
<td><code>SQLITE_CHANGESET_CONSTRAINT</code></td>
1641-
<td>If foreign key handling is enabled, and applying a changeset leaves the database in a state containing foreign key violations, the conflict handler is invoked with this constant exactly once before the changeset is committed. If the conflict handler returns <code>SQLITE_CHANGESET_OMIT</code>, the changes, including those that caused the foreign key constraint violation, are committed. Or, if it returns <code>SQLITE_CHANGESET_ABORT</code>, the changeset is rolled back.</td>
1641+
<td>If any other constraint violation occurs while applying a change (i.e. a UNIQUE, CHECK or NOT NULL constraint), the conflict handler is invoked with this constant.</td>
16421642
</tr>
16431643
<tr>
16441644
<td><code>SQLITE_CHANGESET_FOREIGN_KEY</code></td>
1645-
<td>If any other constraint violation occurs while applying a change (i.e. a UNIQUE, CHECK or NOT NULL constraint), the conflict handler is invoked with this constant.</td>
1645+
<td>If foreign key handling is enabled, and applying a changeset leaves the database in a state containing foreign key violations, the conflict handler is invoked with this constant exactly once before the changeset is committed. If the conflict handler returns <code>SQLITE_CHANGESET_OMIT</code>, the changes, including those that caused the foreign key constraint violation, are committed. Or, if it returns <code>SQLITE_CHANGESET_ABORT</code>, the changeset is rolled back.</td>
16461646
</tr>
16471647
</table>
16481648

0 commit comments

Comments
 (0)