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/08 08:10:26 UTC

[GitHub] [shardingsphere] yunqian-c9 commented on issue #12759: Failed to switch schema, please terminate current transaction.

yunqian-c9 commented on issue #12759:
URL: https://github.com/apache/shardingsphere/issues/12759#issuecomment-938436717


   您好,这次使用的是git克隆,编译后的源码:
   ![image](https://user-images.githubusercontent.com/30698152/136520688-fe20af6c-56f8-46a1-a476-ea8b2d2e75d3.png)
   
   在使用 **sqlalchemy** 的 **flush**方法预提交数据,还是直接提交到数据库中了,并不是在一个事务中,回退失效:
   ![image](https://user-images.githubusercontent.com/30698152/136521339-a87e1676-59f8-49bc-9a8f-a630e4f89fb5.png)
   
   **code:**
   ![image](https://user-images.githubusercontent.com/30698152/136521040-531a8ec9-dc0d-43e8-b999-f363a0587405.png)
   
   **sql:**
   ![image](https://user-images.githubusercontent.com/30698152/136521236-ef33f3db-2399-41d2-be28-5ba91c2e20d6.png)
   
   **log:**
   ![image](https://user-images.githubusercontent.com/30698152/136521272-513c3890-5728-4db9-9c21-22ffabf1976d.png)
   
   


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