Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1725] Custom filters should be added inside parenthesis
The extensions can get a single filter (e.g. "age_not_between") and create two WHERE clauses (e.g. "age < %s OR age > %s"). To avoid hard-to-track bugs related to the operator precedence in Postgres, we add every custom filter inside parenthesis.
- Loading branch information
1 parent
08e8ee1
commit f70476c
Showing
2 changed files
with
35 additions
and
4 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