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/02/17 13:48:42 UTC
[GitHub] [incubator-shardingsphere] gxgmy521 commented on issue #4280: Why
the readOnly filed in the ShardingConnection is true.
gxgmy521 commented on issue #4280: Why the readOnly filed in the ShardingConnection is true.
URL: https://github.com/apache/incubator-shardingsphere/issues/4280#issuecomment-587002212
You can see in the https://github.com/apache/incubator-shardingsphere/blob/master/sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/adapter/AbstractConnectionAdapter.java
the ·`readOnly`value of the AbstractConnectionAdapter is set to true
```
private boolean readOnly = true;
```
However when we get a connection from the Hikari or Druid. the default value is false。
----------------------------------------------------------------
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
With regards,
Apache Git Services