shardingsphere
shardingsphere copied to clipboard
sharding-proxy cannot query data when 'max.connections.size.per.query=1' for server.yaml using springboot and mybatis framework
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.