Skip to content

fix: quote search queries to prevent FTS5 special-char crashes#1

Open
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:fix/fts5-hyphen-quoting
Open

fix: quote search queries to prevent FTS5 special-char crashes#1
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:fix/fts5-hyphen-quoting

Conversation

@JessicaMulein

Copy link
Copy Markdown

Cymbal FTS5 interprets hyphens as NOT operators causing SQL crashes. Wraps queries in quotes when they contain special chars.

Cymbal's SQLite FTS5 index interprets hyphens, plus signs, and other
special characters as query operators. When users search for terms like
'vault-store' or 'home-entry', the unquoted hyphen is parsed as a NOT
operator, causing 'no such column' SQL errors.

Fix: wrap all search/investigate/find_references queries in double quotes
when they contain FTS5 special characters (-+*~). Quoted terms are treated
as literal phrase matches by FTS5, preventing the SQL interpretation.

Affects: search(), investigate(), find_references() in CymbalSubprocess.
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.

1 participant