[
https://issues.apache.org/jira/browse/CALCITE-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sivaramakrishnan Narayanan updated CALCITE-352:
-----------------------------------------------
Attachment: CALCITE-352-1.patch
Attaching patch that checks for closed cursor and throws SQLException with
appropriate error code.
I'm not sure how to test this, though.
> Calling next() on closed AvaticaResultSet gives NPE
> ---------------------------------------------------
>
> Key: CALCITE-352
> URL: https://issues.apache.org/jira/browse/CALCITE-352
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Labels: newbie
> Attachments: CALCITE-352-1.patch
>
>
> If you call close() on an AvaticaResultSet then call next(), it gives a
> NullPointerException (due to the cursor field being null). It should give a
> SQLException (per the Javadoc of the ResultSet.next method).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)