GeezerVison is showing github.com — doc: fix SQLite changeset constant descriptions · nodejs/node@113b808
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/sqlite.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1536,11 +1536,11 @@ conflict resolution handler passed to [`database.applyChangeset()`][]. See also |
1536 | 1536 | </tr> |
1537 | 1537 | <tr> |
1538 | 1538 | <td><code>SQLITE_CHANGESET_CONSTRAINT</code></td> |
1539 | | - <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> |
| 1539 | + <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> |
1540 | 1540 | </tr> |
1541 | 1541 | <tr> |
1542 | 1542 | <td><code>SQLITE_CHANGESET_FOREIGN_KEY</code></td> |
1543 | | - <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> |
| 1543 | + <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> |
1544 | 1544 | </tr> |
1545 | 1545 | </table> |
1546 | 1546 |
|
|