You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FTS4 triggers fail when indexed rows are updated or deleted #922
Deleting the indexed row also raises the error. The same update and delete work with fts_version="FTS5". I reproduced this with sqlite-utils 4.2.1, Python 3.12.14 and SQLite 3.53.1 on Windows, and also checked the current db.py at 9c66bafa with the installed support modules.
The generated FTS4 update/delete triggers use the FTS5-style INSERT ... VALUES('delete', ...) command after the content row changes. SQLite's FTS4 external-content documentation instead shows deleting the index entry before the content row changes, with the new entry inserted afterward. This is separate from the iterator issue in #902. Codex assisted with the investigation and checks.
Activity