mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 08:21:09 +08:00
fix: 修复解析sql错误
This commit is contained in:
@@ -181,6 +181,9 @@ public class SqlparserUtils {
|
||||
sysParams.add(sysParam);
|
||||
}
|
||||
}
|
||||
if(!hasVariables){
|
||||
return sql;
|
||||
}
|
||||
Statement statement = CCJSqlParserUtil.parse(tmpSql);
|
||||
Select select = (Select) statement;
|
||||
if (CollectionUtils.isNotEmpty(select.getWithItemsList())) {
|
||||
|
||||
Reference in New Issue
Block a user