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/10/22 14:28:03 UTC

[GitHub] [shardingsphere] tristaZero commented on pull request #13187: support XA transaction for proxy #12771

tristaZero commented on pull request #13187:
URL: https://github.com/apache/shardingsphere/pull/13187#issuecomment-949683545


   Hi, Since this thread is a little long, I do not track them all, but I'd like to give some inputs.
   
   ```sql
   set autocommit = 0;
   xa begin ...
   xa commit ...
   ```
   Actually, `set autocommit = 0` hints an implicit `COMMIT`, so you will see these coding here,
   ```java
   if (((SetAutoCommitStatement) tclStatement).isAutoCommit()) { 
            return backendConnection.getTransactionStatus().isInTransaction() 
                    ? new TransactionBackendHandler(tclStatement, TransactionOperationType.COMMIT, backendConnection) : new SkipBackendHandler(tclStatement); 
        } 
   ```
   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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