-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
Escape underscore wildcard for pg and mysql. #584
Escape underscore wildcard for pg and mysql. #584
Conversation
+1 |
Escape underscore wildcard for pg and mysql.
Thanks! |
+1 |
FWIW, back when I built Ransack leaving wildcard matching supported was intentional. I think I even used to have a screencast demoing it. ;) |
But then, it was intended to be used for admin backends and the like. Folks seem to want to use it for more user-facing stuff than is wise. |
@ernie we faced that in LIKE statements (cont/end) when users can not match underscores, i.e Great to know origins of this gem :) With the all that form helpers I always thought it's more user-oriented. |
@ernie even if all our users would be devs they would not be possible to escape them as slash is also escaped :) |
Thanks, this provides useful perspective. My own use has been for admin backends only, and more focused on simplicity for the users and fast live response with punctuation stripped out anyway. |
Escape mysql/pg
_
wildcard character.