NJCrazyRen opened a new issue #16379:
URL: https://github.com/apache/shardingsphere/issues/16379


   
我有一个MySQL库,里面有一些数据表字段是加密的,所以希望使用ShardingSphere-proxy作为中间件来实现对应用透明的自动加解密。然而在测试过程中发现同样的查询SQL,通过JDBC发到后端真实库中执行得到的结果集(ResultSet)与发到ShardingSphere-proxy执行得到的结果集,它们的MetaData里的列数据类型并不完全一致,甚至再Decimal类型上还发生了精度缩减的情况,导致应用程序发生异常报错。
   例如:
   真实库中字段类型为 decimal(5, 2)
   JDBC直接访问真实库查询得到的结果集MetaData中也是 decimal(5, 2)
   但是JDBC访问ShardingSphere-proxy查询得到的结果MetaData中却是 decimal(3, 2)
   其它decimal类型的字段也是同样,看起来都是 precision 莫名少了 2


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to