You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2022/04/26 06:45:29 UTC
[shardingsphere] branch master updated: Complete command tags for schema DDL (#17113)
This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 1c894e70fe5 Complete command tags for schema DDL (#17113)
1c894e70fe5 is described below
commit 1c894e70fe5a839fd2c6416cc913496c46b43ae4
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Tue Apr 26 14:45:23 2022 +0800
Complete command tags for schema DDL (#17113)
---
.../proxy/frontend/postgresql/command/query/PostgreSQLCommand.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/main/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/PostgreSQLCommand.java b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/main/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/PostgreSQLCommand.java
index b687e0f1c6c..3d31db20582 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/main/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/PostgreSQLCommand.java
+++ b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/main/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/PostgreSQLCommand.java
@@ -27,6 +27,7 @@ import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.VacuumState
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterFunctionStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterIndexStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterProcedureStatement;
+import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterSchemaStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterSequenceStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterTableStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterTablespaceStatement;
@@ -35,6 +36,7 @@ import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateDatab
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateFunctionStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateIndexStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateProcedureStatement;
+import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateSchemaStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateSequenceStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateTableStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateTablespaceStatement;
@@ -43,6 +45,7 @@ import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropDatabas
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropFunctionStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropIndexStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropProcedureStatement;
+import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropSchemaStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropSequenceStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropTableStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropTablespaceStatement;
@@ -87,6 +90,7 @@ public enum PostgreSQLCommand {
ALTER_FUNCTION(AlterFunctionStatement.class),
ALTER_INDEX(AlterIndexStatement.class),
ALTER_PROCEDURE(AlterProcedureStatement.class),
+ ALTER_SCHEMA(AlterSchemaStatement.class),
ALTER_SEQUENCE(AlterSequenceStatement.class),
ALTER_TABLESPACE(AlterTablespaceStatement.class),
ALTER_TABLE(AlterTableStatement.class),
@@ -95,6 +99,7 @@ public enum PostgreSQLCommand {
CREATE_FUNCTION(CreateFunctionStatement.class),
CREATE_INDEX(CreateIndexStatement.class),
CREATE_PROCEDURE(CreateProcedureStatement.class),
+ CREATE_SCHEMA(CreateSchemaStatement.class),
CREATE_SEQUENCE(CreateSequenceStatement.class),
CREATE_TABLESPACE(CreateTablespaceStatement.class),
CREATE_TABLE(CreateTableStatement.class),
@@ -103,6 +108,7 @@ public enum PostgreSQLCommand {
DROP_FUNCTION(DropFunctionStatement.class),
DROP_INDEX(DropIndexStatement.class),
DROP_PROCEDURE(DropProcedureStatement.class),
+ DROP_SCHEMA(DropSchemaStatement.class),
DROP_SEQUENCE(DropSequenceStatement.class),
DROP_TABLESPACE(DropTablespaceStatement.class),
DROP_TABLE(DropTableStatement.class),