[
https://issues.apache.org/jira/browse/HIVE-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620532#comment-13620532
]
Navis commented on HIVE-4236:
-----------------------------
How about to share clean-up related codes by making HivePreparedStatement
extend HiveStatement?
> JDBC2 HivePreparedStatement does not release resources
> ------------------------------------------------------
>
> Key: HIVE-4236
> URL: https://issues.apache.org/jira/browse/HIVE-4236
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2, JDBC
> Affects Versions: 0.11.0
> Reporter: Chris Drome
> Assignee: Chris Drome
> Fix For: 0.11.0
>
> Attachments: HIVE-4236.patch
>
>
> HivePreparedStatement does not close the associated server-side operation
> when close() is called. Nor does it call close() on the ResultSet. When
> execute() is called the current ResultSet is not closed first it is just set
> to null.
> Similarly, HiveStatement's close() does not call close() on the ResultSet, it
> just sets it to null.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira