Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingo-xp committed Dec 25, 2024
1 parent f7f906e commit 5a2671c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/com/alibaba/druid/sql/PagerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static boolean limitQueryBlock(SQLSelect select, DbType dbType, int offs
case hive:
case odps:
case presto:
case supersql:
case supersql:
return limitSQLQueryBlock(queryBlock, dbType, offset, count, check);
case oracle:
case oceanbase_oracle:
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/alibaba/druid/sql/SQLUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public static SQLASTOutputVisitor createFormatOutputVisitor(
return new SparkOutputVisitor(out);
case presto:
case trino:
case supersql:
case supersql:
return new PrestoOutputVisitor(out);
case athena:
return new AthenaOutputVisitor(out);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public SQLMethodInvokeExpr ifnull(SQLExpr expr1, SQLExpr expr2) {
case presto:
case trino:
case odps:
case supersql:
case supersql:
return new SQLMethodInvokeExpr("coalesce", null, expr1, expr2);
case oracle:
return new SQLMethodInvokeExpr("nvl", null, expr1, expr2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,7 @@ private MySqlExplainStatement parseExplain(MySqlExplainStatement explain) {
switch (dbType) {
case mysql:
case ads:
case supersql:
case supersql:
case presto:
case trino:
Lexer.SavePoint mark = lexer.mark();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static SQLStatementParser createSQLStatementParser(String sql, DbType dbT
return new HiveStatementParser(sql, features);
case presto:
case trino:
case supersql:
case supersql:
return new PrestoStatementParser(sql, features);
case athena:
return new AthenaStatementParser(sql, features);
Expand Down Expand Up @@ -256,7 +256,7 @@ public static SQLExprParser createExprParser(String sql, DbType dbType, SQLParse
return new PhoenixExprParser(sql, features);
case presto:
case trino:
case supersql:
case supersql:
return new PrestoExprParser(sql, features);
case athena:
return new AthenaExprParser(sql, features);
Expand Down Expand Up @@ -324,7 +324,7 @@ public static Lexer createLexer(String sql, DbType dbType, SQLParserFeature... f
return new PhoenixLexer(sql, features);
case presto:
case trino:
case supersql:
case supersql:
return new PrestoLexer(sql, features);
case athena:
return new AthenaLexer(sql, features);
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/alibaba/druid/wall/WallFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static WallProvider initWallProviderInternal(DataSourceProxy dataSource, String
case lealone:
case presto:
case trino:
case supersql:
case supersql:
case polardbx:
if (config == null) {
config = new WallConfig(MySqlWallProvider.DEFAULT_CONFIG_DIR);
Expand Down

0 comments on commit 5a2671c

Please sign in to comment.