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 2020/08/22 10:55:07 UTC

[GitHub] [shardingsphere] cherrylzhao commented on issue #6913: the 'autoCommit' of sharding jdbc

cherrylzhao commented on issue #6913:
URL: https://github.com/apache/shardingsphere/issues/6913#issuecomment-678626051


   ShardingSphere don't care about the status of underlying datasource pool, `<mvn.dbcp.defaultAutoCommit>false</mvn.dbcp.defaultAutoCommit>` will not effective.
   I think you can get the connection from jdbcTemplate, then do the transaction control manually like that
   ```
   connection.setAutoCommit(false)
   ....
   connection.commit()
   ```


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