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

Lars Hofhansl commented on PHOENIX-5659:
----------------------------------------

Hmm... I see this in PhoenixResultSet:
{code:java}
    @Override
    public boolean next() throws SQLException {
        checkOpen();
        try {
            if (!firstRecordRead) {
                firstRecordRead = true;
                overAllQueryMetrics.startResultSetWatch();
            }
            currentRow = scanner.next();
            if (currentRow == null) {
                close();
            }else{
...
{code}
So looks like it is at least supposed to call close.

> Support Statement#closeOnCompletion()
> -------------------------------------
>
>                 Key: PHOENIX-5659
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5659
>             Project: Phoenix
>          Issue Type: Task
>            Reporter: Iwao AVE!
>            Priority: Major
>         Attachments: PHOENIX-5659-2-master.patch, PHOENIX-5659-master.patch
>
>
> I am a member of [MyBatis|https://github.com/mybatis] team and a user 
> [reported|https://github.com/mybatis/mybatis-3/issues/1351#issuecomment-569619849]
>  that Phoenix does not support java.sql.Statement#closeOnCompletion() yet.



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

Reply via email to