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 2019/12/12 06:50:22 UTC

[GitHub] [incubator-shardingsphere] tuohai666 commented on issue #3725: sharding-proxy cannot query data when 'max.connections.size.per.query=1' for server.yaml using springboot and mybatis framework

tuohai666 commented on issue #3725: sharding-proxy cannot query data  when 'max.connections.size.per.query=1' for server.yaml  using springboot and mybatis framework
URL: https://github.com/apache/incubator-shardingsphere/issues/3725#issuecomment-564875169
 
 
   This issue is caused by https://github.com/apache/incubator-shardingsphere/issues/3231.
   
   max.connections.size.per.query=1 means Proxy will use MemoryQueryResult in this full routing case.
   
   In MemoryQueryResult.java:
   
   `return metaData.isSigned(columnIndex) ? resultSet.getInt(columnIndex) : resultSet.getLong(columnIndex);
   `
   
   This line will anyhow return a Long Object instead an Integer Object or a Long object. Proxy will burst an exception if the data type is inconsistent.

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