mirror of https://github.com/apache/openjpa.git
OPENJPA-1295: fix the escape character
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7b4296c8f
commit
558446dfe9
|
@ -105,10 +105,12 @@ class MatchesExpression
|
||||||
|
|
||||||
// escape out characters by using the database's escape sequence
|
// escape out characters by using the database's escape sequence
|
||||||
DBDictionary dict = ctx.store.getDBDictionary();
|
DBDictionary dict = ctx.store.getDBDictionary();
|
||||||
if (_escape != null && _escape.equals("\\")) {
|
if (_escape != null) {
|
||||||
buf.append(" ESCAPE '").append(dict.searchStringEscape).append("'");
|
if (_escape.equals("\\"))
|
||||||
} else
|
buf.append(" ESCAPE '").append(dict.searchStringEscape).append("'");
|
||||||
buf.append(" ESCAPE '").append(_escape).append("'");
|
else
|
||||||
|
buf.append(" ESCAPE '").append(_escape).append("'");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
sel.append(buf, state.joins);
|
sel.append(buf, state.joins);
|
||||||
|
|
Loading…
Reference in New Issue