| Previous | Next |
| SQLITE_E_CANTOPEN_ISDIR | SQLITE_E_NOTICE_RECOVER_ROLLBACK |
SQLITE_E_CONSTRAINT_COMMITHOOK
SQLITE_E_CONSTRAINT_COMMITHOOK corresponds to SQLITE_CONSTRAINT_COMMITHOOK. SQLite rolls back the statement when an application-supplied commit hook returns a non-zero value.
What to check
- Inspect the application commit-hook callback and its logs; this is not a declarative table-constraint failure.
- Identify why the hook vetoed the commit, including shutdown, policy, replication, or application-level validation state.
- Do not retry blindly if the callback protects an external invariant; fix the condition that caused the hook to reject the transaction.
sqlite3_commit_hook(db, callback, context);
SQLite: SQLITE_CONSTRAINT_COMMITHOOK
Looking for a different code? Search another status or error code.