Improve handling of FTS5 hidden columns #717
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
FTS5 tables have different hidden columns compared to FTS3 and FTS4: https://www.sqlite.org/fts5.html#sorting_by_auxiliary_function_results
This PR does the following:
rank,rowidand_rowid_to the list of synthesizedColumns for FTS5Fixes related problem sqldelight/sqldelight#5981
This does not prevent users from attempting to create invalid FTS5 tables using
rankorrowidas column names, but they'll get an error at runtime from sqlite anyway.Thanks to @griffio for the pointer from the linked issue!
CHANGELOG.md's "Unreleased" section has been updated, if applicable.