#461 broke the like operator when special characters are used ,:()
#477
Labels
bug
Something isn't working
,:()
#477
Bug report
Describe the bug
Before the change in #461, the "like" query was built like this with
:value%
Since the change, it is built like this:
The reason is the called
pattern = sanitize_pattern_param(pattern)
which surrounds the value with"
whenever a "special" character,:()
is in the request.Using
"
around the value will result in an empty set to be returned instead of the actual data matching:value%
.To Reproduce
Do a select query with
and check the result returned from the database.
Expected behavior
Using the like operator and get values in return
The text was updated successfully, but these errors were encountered: