-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix case-consistency searching sqlite history (#777)
* Fix case-consistency searching sqlite history For the `FileBackedHistory` those operations have always been case sensitive, do the same for `SqliteBackedHistory`. The insensitivity of `like` in sqlite causes nushell/nushell#10131 For substring matching for now use `glob` instead of `like`, this changes the wildcard from `%` to `*` which is more common in the Nushell context. We have so far not been performing proper escaping here. User queries may match more often in surprising ways. `Exact` should now be exact. * Add test for case-sensitive prefix search Link the relevant issue so feature fans don't reintroduce bugs * Use sqlite `instr` function for case-exact match * Remove outdated fixme
- Loading branch information
1 parent
21903cc
commit b7209b6
Showing
2 changed files
with
31 additions
and
7 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