This is an automated email from the ASF dual-hosted git repository.

sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 059d679d17f Fix sonar issue (#31759)
059d679d17f is described below

commit 059d679d17fed8b63daecc5f22aba6fe47ca553e
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Jun 19 15:10:03 2024 +0800

    Fix sonar issue (#31759)
---
 .../sharding/route/engine/type/ShardingRouteEngineFactory.java       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/route/engine/type/ShardingRouteEngineFactory.java
 
b/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/route/engine/type/ShardingRouteEngineFactory.java
index aa21ec7a5de..61bb48bb99d 100644
--- 
a/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/route/engine/type/ShardingRouteEngineFactory.java
+++ 
b/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/route/engine/type/ShardingRouteEngineFactory.java
@@ -96,7 +96,7 @@ public final class ShardingRouteEngineFactory {
             if (sqlStatementContext instanceof CursorAvailable) {
                 return getCursorRouteEngine(shardingRule, database, 
sqlStatementContext, queryContext.getHintValueContext(), shardingConditions, 
props);
             }
-            return getDDLRoutingEngine(shardingRule, database, 
sqlStatementContext, connectionContext);
+            return getDDLRoutingEngine(shardingRule, database, 
sqlStatementContext);
         }
         if (sqlStatement instanceof DALStatement) {
             return getDALRoutingEngine(shardingRule, database, 
sqlStatementContext, connectionContext);
@@ -107,8 +107,7 @@ public final class ShardingRouteEngineFactory {
         return getDQLRoutingEngine(shardingRule, database, 
sqlStatementContext, queryContext.getHintValueContext(), shardingConditions, 
props, connectionContext);
     }
     
-    private static ShardingRouteEngine getDDLRoutingEngine(final ShardingRule 
shardingRule, final ShardingSphereDatabase database, final SQLStatementContext 
sqlStatementContext,
-                                                           final 
ConnectionContext connectionContext) {
+    private static ShardingRouteEngine getDDLRoutingEngine(final ShardingRule 
shardingRule, final ShardingSphereDatabase database, final SQLStatementContext 
sqlStatementContext) {
         SQLStatement sqlStatement = sqlStatementContext.getSqlStatement();
         boolean functionStatement = sqlStatement instanceof 
CreateFunctionStatement || sqlStatement instanceof AlterFunctionStatement || 
sqlStatement instanceof DropFunctionStatement;
         boolean procedureStatement = sqlStatement instanceof 
CreateProcedureStatement || sqlStatement instanceof AlterProcedureStatement || 
sqlStatement instanceof DropProcedureStatement;

Reply via email to