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

Support for escape char in "like" expressions #594

Closed
andrus opened this issue Dec 24, 2022 · 0 comments
Closed

Support for escape char in "like" expressions #594

andrus opened this issue Dec 24, 2022 · 0 comments
Assignees
Milestone

Comments

@andrus
Copy link
Contributor

andrus commented Dec 24, 2022

There should be a way to redefine an "escape" char in "like" expressions, so that users could build queries with '%' and '_' not treated as wildcards. E.g.:

name like 'A$%bcd%' escape '$'

// matches "A%bcde", but not "Aabcde"

Now that #582 is implemented, we are no longer relying on Cayenne expression parser (which does not support escape chars). So we can implement this now.

@stariy95 stariy95 self-assigned this Dec 29, 2022
stariy95 added a commit to stariy95/agrest that referenced this issue Dec 29, 2022
@andrus andrus added this to the 5.0.M10 milestone Dec 30, 2022
@andrus andrus closed this as completed Dec 30, 2022
andrus added a commit that referenced this issue Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants