解决某些情况下 @raw 对 @having:value 中 value 中的外层表达式不生效
This commit is contained in:
parent
7c9ca1b2d5
commit
5b9b34c7eb
@ -2032,6 +2032,16 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
|
||||
* @return
|
||||
*/
|
||||
public String parseSQLExpression(String key, String expression, boolean containRaw, boolean allowAlias, String example) {
|
||||
if (containRaw) {
|
||||
String s = RAW_MAP.get(expression);
|
||||
if ("".equals(s)) {
|
||||
return expression;
|
||||
}
|
||||
if (s != null) {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
String quote = getQuote();
|
||||
int start = expression.indexOf('(');
|
||||
if (start < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user