提交 b1b5a353 编写于 作者: S serge-rider

#7214 JDBC numbers read: always read floating numbers as double

上级 ff5779cf
......@@ -99,11 +99,12 @@ public class JDBCNumberValueHandler extends JDBCAbstractValueHandler implements
switch (type.getTypeID()) {
case Types.DOUBLE:
case Types.REAL:
value = resultSet.getDouble(index);
break;
case Types.FLOAT:
value = resultSet.getFloat(index);
// Always read as double to avoid precision loose (#7214)
value = resultSet.getDouble(index);
break;
//value = resultSet.getFloat(index);
//break;
case Types.INTEGER:
try {
// Read value with maximum precision. Some drivers reports INTEGER but means long [JDBC:SQLite]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册