Skip to content

Fix FTS deletion bug, better error on db open failure#20

Merged
ahyatt merged 3 commits intomainfrom
fts-fix
Mar 19, 2026
Merged

Fix FTS deletion bug, better error on db open failure#20
ahyatt merged 3 commits intomainfrom
fts-fix

Conversation

@ahyatt
Copy link
Copy Markdown
Owner

@ahyatt ahyatt commented Mar 19, 2026

No description provided.

@ahyatt ahyatt temporarily deployed to Continuous Integration March 19, 2026 03:56 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration March 19, 2026 03:56 — with GitHub Actions Inactive
@ahyatt ahyatt requested a review from Copilot March 19, 2026 03:56
@ahyatt ahyatt changed the title Fix FTS insertion missing rowid, better error on db open failure Fix FTS deletion bug, better error on db open failure Mar 19, 2026
@ahyatt ahyatt temporarily deployed to Continuous Integration March 19, 2026 03:57 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration March 19, 2026 03:57 — with GitHub Actions Inactive
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets reliability of the SQLite-backed storage by preventing FTS5 index corruption during deletes and by attempting to improve the user-facing error when opening the database fails.

Changes:

  • Add a validation/error path when opening a builtin SQLite database.
  • Fix FTS setup to avoid dropping a non-existent FTS table and include rowid in the FTS5 delete trigger.
  • Document the fixes in NEWS.org as release 0.6.2.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
triples.el Adds an extra error path intended to improve messaging when sqlite-open fails.
triples-fts.el Fixes FTS table recreation behavior and corrects the delete trigger to include rowid.
NEWS.org Adds a 0.6.2 changelog entry describing the fixes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@ahyatt ahyatt temporarily deployed to Continuous Integration March 19, 2026 04:14 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration March 19, 2026 04:14 — with GitHub Actions Inactive
@ahyatt ahyatt merged commit 2061a31 into main Mar 19, 2026
2 checks passed
@ahyatt ahyatt deleted the fts-fix branch March 19, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants