escape '_' in like expression, that means '.' in regexp.
Showing
-
Owner
@seb has just pointed out that for consistency, the escaping should be done directly inside ZSQLCatalog, since DefaultKey only switches to LIKE on a
%
char, and I doubt we want to change DefaultKey to also switch on_
./cc @vpelletier
-
Owner
I indeed doubt we want to trigger MATCH on underscores (which is unfortunate IMHO, it should have happened from day 1, but it's harder to change since then).
About escaping it, where do you propose it to happen ? DefaultKey only ? I know I used underscore as a wildcard in the past, although not often, and I do not clearly remember using it in any script (rather in listbox filters).
Please register or sign in to comment