解决某些情况下 @raw 对 @having:value 中 value 中的外层表达式不生效

This commit is contained in:
TommyLemon 2024-01-13 17:06:34 +08:00
parent 7c9ca1b2d5
commit 5b9b34c7eb

View File

@ -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) {