You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/05/26 07:56:05 UTC

[GitHub] [shardingsphere] strongduanmu commented on a change in pull request #10462: support postgresql alter table rename statement

strongduanmu commented on a change in pull request #10462:
URL: https://github.com/apache/shardingsphere/pull/10462#discussion_r639487457



##########
File path: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/refresher/type/AlterTableStatementSchemaRefresher.java
##########
@@ -42,11 +46,30 @@
     public void refresh(final ShardingSphereSchema schema, final Collection<String> routeDataSourceNames, 
                         final AlterTableStatement sqlStatement, final SchemaBuilderMaterials materials) throws SQLException {
         String tableName = sqlStatement.getTable().getTableName().getIdentifier().getValue();
+        Optional<SimpleTableSegment> renameTable = Optional.ofNullable(sqlStatement.getRenameTable());

Review comment:
       > SimpleTableSegment
   
   @tristaZero Yes, i will fix it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org