You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Rick Shaw (JIRA)" <ji...@apache.org> on 2011/07/27 17:59:09 UTC

[jira] [Updated] (CASSANDRA-2956) JDBC ResultSet improperly handles null column values

     [ https://issues.apache.org/jira/browse/CASSANDRA-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Shaw updated CASSANDRA-2956:
---------------------------------

    Attachment: jdbc-bugfix-handling-null-values.txt

> JDBC ResultSet improperly handles null column values
> ----------------------------------------------------
>
>                 Key: CASSANDRA-2956
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2956
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Drivers
>    Affects Versions: 0.8.2
>            Reporter: Rick Shaw
>            Assignee: Rick Shaw
>            Priority: Minor
>              Labels: JDBC
>             Fix For: 0.8.3
>
>         Attachments: jdbc-bugfix-handling-null-values.txt
>
>
> JDBC {{ResultSet}} getters return built-in datatypes such as {{int, long, short, byte, boolean}} that are not capable of handling a null value. As a consequence, it provides a method: {{wasNull}} which returns true if the value was null. The spec requires a zero numeric value (or false in the case of {{boolean}} ) is returned by the getter. This was being mis-handled and a null value was being cast (boxed) to the return value. An NPE would result.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira