Merge pull request #4412 from dataease/pr@dev@pages

fix: 解析pg sql出错
This commit is contained in:
taojinlong 2023-01-30 14:59:41 +08:00 committed by GitHub
commit cff5ba2ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1090,7 +1090,7 @@ public class DataSetTableService {
if (!hasVariables && !tmpSql.contains(SubstitutedParams)) {
return tmpSql;
}
CCJSqlParserUtil.parse(tmpSql, parser -> parser.withSquareBracketQuotation(true));
Statement statement = CCJSqlParserUtil.parse(tmpSql);
Select select = (Select) statement;