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

zhangliang 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 79cf06b9236 Replace MySQL-specific show statement classes with core 
show statement classes (#35400)
79cf06b9236 is described below

commit 79cf06b92363c1d170308797add623ac6100ee14
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Wed May 14 12:33:17 2025 +0800

    Replace MySQL-specific show statement classes with core show statement 
classes (#35400)
    
    - Replace MySQLShowTablesStatement with ShowTablesStatement
    - Replace MySQLShowTableStatusStatement with ShowTableStatusStatement
    - Replace MySQLShowCreateTableStatement with ShowCreateTableStatement
    - Update isDatabaseRequiredDALStatement to use core show statement classes
---
 .../proxy/backend/handler/data/DatabaseBackendHandlerFactory.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/data/DatabaseBackendHandlerFactory.java
 
b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/data/DatabaseBackendHandlerFactory.java
index 641872f0843..de0e1e25f87 100644
--- 
a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/data/DatabaseBackendHandlerFactory.java
+++ 
b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/data/DatabaseBackendHandlerFactory.java
@@ -28,11 +28,11 @@ import 
org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
 import 
org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
 import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dal.DALStatement;
 import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTableStatement;
+import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTableStatusStatement;
+import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTablesStatement;
 import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DoStatement;
 import 
org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement;
-import 
org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateTableStatement;
-import 
org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTableStatusStatement;
-import 
org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTablesStatement;
 
 /**
  * Database backend handler factory.
@@ -65,6 +65,6 @@ public final class DatabaseBackendHandlerFactory {
     }
     
     private static boolean isDatabaseRequiredDALStatement(final SQLStatement 
sqlStatement) {
-        return sqlStatement instanceof MySQLShowTablesStatement || 
sqlStatement instanceof MySQLShowTableStatusStatement || sqlStatement 
instanceof MySQLShowCreateTableStatement;
+        return sqlStatement instanceof ShowTablesStatement || sqlStatement 
instanceof ShowTableStatusStatement || sqlStatement instanceof 
ShowCreateTableStatement;
     }
 }

Reply via email to