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

wuweijie 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 759761d  delete duplicate code in createRDLBackendHandler method 
(#10602)
759761d is described below

commit 759761dcf3ccbd00495727bdadceb8b3d89391a6
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Tue Jun 1 16:31:08 2021 +0800

    delete duplicate code in createRDLBackendHandler method (#10602)
---
 .../proxy/backend/text/distsql/rdl/RDLBackendHandlerFactory.java       | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/RDLBackendHandlerFactory.java
 
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/RDLBackendHandlerFactory.java
index 63248d6..2f483cf 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/RDLBackendHandlerFactory.java
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/RDLBackendHandlerFactory.java
@@ -115,9 +115,6 @@ public final class RDLBackendHandlerFactory {
         if (sqlStatement instanceof CreateShardingTableRuleStatement) {
             return Optional.of(new 
CreateShardingTableRuleBackendHandler((CreateShardingTableRuleStatement) 
sqlStatement, backendConnection));
         }
-        if (sqlStatement instanceof CreateShardingTableRuleStatement) {
-            return Optional.of(new 
CreateShardingTableRuleBackendHandler((CreateShardingTableRuleStatement) 
sqlStatement, backendConnection));
-        }
         if (sqlStatement instanceof CreateShardingBindingTableRulesStatement) {
             return Optional.of(new 
CreateShardingBindingTableRulesBackendHandler((CreateShardingBindingTableRulesStatement)
 sqlStatement, backendConnection));
         }

Reply via email to