diff --git a/core/core-backend/src/main/java/io/dataease/commons/utils/SqlparserUtils.java b/core/core-backend/src/main/java/io/dataease/commons/utils/SqlparserUtils.java index 4b6ffc6c28..0c8aeb4e11 100644 --- a/core/core-backend/src/main/java/io/dataease/commons/utils/SqlparserUtils.java +++ b/core/core-backend/src/main/java/io/dataease/commons/utils/SqlparserUtils.java @@ -43,10 +43,9 @@ public class SqlparserUtils { } SqlParser.Config config = - SqlParser.configBuilder() - .setLex(Lex.JAVA) - .setIdentifierMaxLength(256) - .build(); + SqlParser.config() + .withLex(Lex.JAVA) + .withIdentifierMaxLength(256); SqlParser sqlParser = SqlParser.create(tmpSql, config); SqlNode sqlNode; try { diff --git a/core/core-backend/src/main/java/io/dataease/dataset/utils/SqlUtils.java b/core/core-backend/src/main/java/io/dataease/dataset/utils/SqlUtils.java index fb29110bc6..23a12baed7 100644 --- a/core/core-backend/src/main/java/io/dataease/dataset/utils/SqlUtils.java +++ b/core/core-backend/src/main/java/io/dataease/dataset/utils/SqlUtils.java @@ -21,10 +21,9 @@ public class SqlUtils { } SqlParser.Config config = - SqlParser.configBuilder() - .setLex(Lex.JAVA) - .setIdentifierMaxLength(256) - .build(); + SqlParser.config() + .withLex(Lex.JAVA) + .withIdentifierMaxLength(256); // 创建解析器 SqlParser sqlParser = SqlParser .create(sql, config);