fix: 修复自定义sql替换系统变量错误

This commit is contained in:
taojinlong
2025-02-26 16:44:09 +08:00
committed by taojinlong
parent f7bb4a0926
commit b18c221f1d

View File

@@ -171,7 +171,6 @@ public class SqlparserUtils {
} else {
pattern = Pattern.compile(regex2);
matcher = pattern.matcher(tmpSql);
sysParams.clear();
while (matcher.find()) {
hasVariables = true;
tmpSql = tmpSql.replace(matcher.group(), SysParamsSubstitutedParams + matcher.group().substring(1, matcher.group().length() - 1));