-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db-postgres): query with like on id columns (#6414)
When typing into the search input on the list view of a collection, the `like` operator is used for id which causes an error for postgres. To fix this we are sanitizing the `like` for number or uuid fields to instead be an `equals` operator. An alternate solution would have been to cast the ids to text `id::text` but this would have performence implications on larger data sets. --------- Co-authored-by: James <james@trbl.design>
- Loading branch information
1 parent
bf106db
commit 12c812d
Showing
3 changed files
with
65 additions
and
37 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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