-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ISEs in constant detection for
fts::with_options
(#7192)
`fts::with_options` checks `irutils.is_const` to validate whether language and weight_category are constant, but its notion of constant (that it doesn't access the database) is not the one we need here. Instead, skip doing a separate check, and just try to extract the constant directly. We could do this with `as_const`, but I decided to delete `as_const` and use `staeval` instead. This makes it work with simple SELECT expressions also. (Hitting this in an experimental branch is what caused me to run into this.) TODO: Probably we should also get rid of `is_const` too, and do volatility checks in the places it is used.
- Loading branch information
Showing
3 changed files
with
49 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters