Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Include ESCAPE clause in LIKE SQL statements used by Advanced Message Filter Operators #6289

Open
ab-mg-23 opened this issue Aug 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ab-mg-23
Copy link

Describe your use case
I was attempting to filter on a custom metadata column for values that matched the form FOO___. I didn't initially know the filter was actually applying LIKE expressions to the SQL queries. Underscore is a wild card in LIKE expressions, so I was getting "incorrect" results back. Luckily, I am using Postgres for my backend so I could simply change the filter to FOO__ . Postgres deviates from the SQL standard regarding LIKE expressions without an explicit ESCAPE clause.

Describe the solution you'd like
Include the ESCAPE clause for operators that use LIKE expressions. Also update documentation to clearly reflect the need to escape , %, and _ when filtering to include those literal values.

Describe alternatives you've considered
Directly query the underlying tables in the database.

@ab-mg-23 ab-mg-23 added the enhancement New feature or request label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant