Skip to content

Quote every FTS5 DDL identifier - #3

Merged
ctoth merged 2 commits into
masterfrom
agent/quote-fts5-identifiers
Aug 6, 2026
Merged

ctoth merged 2 commits into
masterfrom
agent/quote-fts5-identifiers

Conversation

@ctoth

@ctoth ctoth commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • route FTS table, column, content, rowid, and derived trigger names through the active SQLite identifier preparer
  • keep identifier rendering separate from escaped FTS5 option string literals
  • broaden unit, property, and end-to-end sync coverage to reserved, spaced, punctuated, and quoted names

Root cause

FTS5 columns and sync-trigger identifiers were interpolated as raw strings. Table names happened to use SQLAlchemy's preparer, but the remaining public identifiers and derived trigger names did not.

TDD evidence

Red, before production changes:

  • focused identifier DDL and sync regressions: 3 failed

Green:

  • focused identifier DDL and sync regressions: 3 passed
  • uv run pytest: 53 passed
  • uv run pyright: 0 errors, 0 warnings, 0 informations
  • uv build: sdist and wheel built successfully

Closes #1

@ctoth
ctoth merged commit 04751ec into master Aug 6, 2026
3 checks passed
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.

Quote every identifier in FTS5 DDL and sync triggers

1 participant