[ 
https://issues.apache.org/jira/browse/IOTDB-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202975#comment-17202975
 ] 

Xiangdong Huang commented on IOTDB-912:
---------------------------------------

Hi Jack,

Thanks for your finding.

I think this should be considered as a "bug".

If you read getInt, getBoolean etc. functions in AbstractIoTDBJDBCResultSet, 
then you will find they will throw exception if there is null.

IT IS INCONSISTENT WITH JDBC SPECIFICATION.

e.g., getInt() requires "the column value; if the value is SQL NULL, the value 
returned is 0".

 

I think this should be fixed.

 

> implement wasNull method in AbstractIoTDBJDBCResultSet
> ------------------------------------------------------
>
>                 Key: IOTDB-912
>                 URL: https://issues.apache.org/jira/browse/IOTDB-912
>             Project: Apache IoTDB
>          Issue Type: Task
>          Components: JDBC
>            Reporter: Xiangdong Huang
>            Priority: Major
>              Labels: easy-fix
>
> wasNull() method is a standard interface in ResultSet of JDBC.
> However, current IoTDB's JDBC does not implement it.
> You can get more information from the method's javadoc or search "Java 
> ResultSet.wasNull example" to understand the behavior of the method, and then 
> implement it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to