ListenQ opened a new issue, #30300:
URL: https://github.com/apache/shardingsphere/issues/30300

   ## Question
   ```
   使用环境: shardingsphere-jdbc-core: 5.4.1,mybatis-plus:3.5.3.1,jdk8
   
   场景、问题:
   dataSources:
    ds_0: 
    ds_1: 
   
   ds_0 和 ds_1 一样的表结构
   db table: t_user,t_order_0,t_order_1
   
   没有配置 XA 或 BASE 分布式事务
   
   @Transactional(rollbackFor = Exception.class)
   public void testSave() { 
     // 保存在ds_0.t_user
      
userMapper.insert(UserPo.builder().name("王二").sex(2).companyId(1).build());
     
     // 保存ds_1.t_order_1 ,下面这行执行失败,返回错误 MysqlDataTruncation: Data truncation: 
Data too long for column 'name' at row 1
     
orderMapper.insert(OrderPo.builder().companyId(3).name("测试太太太太太他太太太太太太太太太太太太太2").number(20).build());
   }
   
   ```
   上面  testSave(), 保存t_order失败会 让t_user 回滚
   ShardingSphere Jdbc 是否默认支持 分布式事务处理?
   
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to