This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch rel/0.10
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.10 by this push:
     new 97976c8  [To rel/0.10] Incorrect result returned by `getFloat` in 
JDBC.  (#2167)
97976c8 is described below

commit 97976c82705a0f04baef6563b6daff884d2470b4
Author: Xiangwei Wei <[email protected]>
AuthorDate: Thu Dec 3 10:53:42 2020 +0800

    [To rel/0.10] Incorrect result returned by `getFloat` in JDBC.  (#2167)
---
 .../src/main/java/org/apache/iotdb/jdbc/AbstractIoTDBJDBCResultSet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/jdbc/src/main/java/org/apache/iotdb/jdbc/AbstractIoTDBJDBCResultSet.java 
b/jdbc/src/main/java/org/apache/iotdb/jdbc/AbstractIoTDBJDBCResultSet.java
index 941212e..28e63fd 100644
--- a/jdbc/src/main/java/org/apache/iotdb/jdbc/AbstractIoTDBJDBCResultSet.java
+++ b/jdbc/src/main/java/org/apache/iotdb/jdbc/AbstractIoTDBJDBCResultSet.java
@@ -323,7 +323,7 @@ public abstract class AbstractIoTDBJDBCResultSet implements 
ResultSet {
   @Override
   public float getFloat(int columnIndex) throws SQLException {
     try {
-      return getInt(ioTDBRpcDataSet.findColumnNameByIndex(columnIndex));
+      return getFloat(ioTDBRpcDataSet.findColumnNameByIndex(columnIndex));
     } catch (StatementExecutionException e) {
       throw new SQLException(e.getMessage());
     }

Reply via email to