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
Fix For: 0.8.3
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