Skip to content

Commit 91aaf05

Browse files
authored
doc: fix SQLite changeset constant descriptions
Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #65265 Refs: https://www.sqlite.org/session/c_changeset_abort.html Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2929417 commit 91aaf05

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
@@ -1675,11 +1675,11 @@ conflict resolution handler passed to [`database.applyChangeset()`][]. See also
16751675
</tr>
16761676
<tr>
16771677
<td><code>SQLITE_CHANGESET_CONSTRAINT</code></td>
1678-
<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>
1678+
<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>
16791679
</tr>
16801680
<tr>
16811681
<td><code>SQLITE_CHANGESET_FOREIGN_KEY</code></td>
1682-
<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>
1682+
<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>
16831683
</tr>
16841684
</table>
16851685

0 commit comments

Comments
 (0)