提交 ae23f235 编写于 作者: N Nikita Akilov

#11883 escape percent sign when constructing Java Pattern from like pattern

上级 20380815
......@@ -176,7 +176,7 @@ public final class SQLUtils {
else if (c == '\\') {
if (i < like.length() - 1) {
char nc = like.charAt(i + 1);
if (nc == '_' || nc == '*' || nc == '?' || nc == '.') {
if (nc == '_' || nc == '*' || nc == '?' || nc == '.' || nc == '%') {
result.append("\\").append(nc);
i++;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册