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/03/22 03:44:59 UTC

[GitHub] [shardingsphere] yoloz removed a comment on issue #5531: Failed to switch schema, please terminate current transaction.

yoloz removed a comment on issue #5531:
URL: https://github.com/apache/shardingsphere/issues/5531#issuecomment-759192957


   ```java
   package org.apache.shardingsphere.proxy.backend.communication.jdbc.connection;
   public final class BackendConnection implements JDBCExecutionConnection {
    /**
        * Change schema of current channel.
        *
        * @param schemaName schema name
        */
      public void setCurrentSchema(final String schemaName) {
           //todo 临时处理
           if (!Strings.isNullOrEmpty(this.schemaName) && this.schemaName.equals(schemaName)) return;
           if (transactionStatus.isInTransaction()) {
               throw new ShardingSphereException("Failed to switch schema, please terminate current transaction.");
           }
           this.schemaName = schemaName;
       }
   }
   ```
   temporary,as the same schema return directly
   @cherrylzhao 


-- 
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