gxgmy521 edited a comment 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。On the User side the readOnly value is true( get from the logic 
ShardingConnection), On the datasource sider, the value is false (get from the 
physical datasource connection).

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


With regards,
Apache Git Services

Reply via email to