Please sign in to comment.
If an exception occurs while committing a transaction, attempt to rol…
…lback I believe most databases will automatically rollback if a commit fails, but at least SQLite doesn't appear to. To play it safe, always attempt to rollback on a failed commit. This fixes issues if deferred foreign key constraints are violated on SQLite.
- Loading branch information...
Showing with 12 additions and 2 deletions.