You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik (JIRA)" <ji...@apache.org> on 2011/01/13 18:27:48 UTC

[jira] Closed: (DERBY-4362) Client returns -1 on Statement.getUpdateCount when a procedure is called, embedded returns 0.

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

Dag H. Wanvik closed DERBY-4362.
--------------------------------


> Client returns -1 on Statement.getUpdateCount when a procedure is called, embedded returns 0.
> ---------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4362
>                 URL: https://issues.apache.org/jira/browse/DERBY-4362
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>            Reporter: Dag H. Wanvik
>         Attachments: Derby4316Repro.java
>
>
> I think embedded is correct here, -1 should be used for when there are no more results left,
> cf Javadoc http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html#getUpdateCount():
> "if the result is a ResultSet object or there are no more results, -1 is returned."
>  I attach a repro in the form of a Derby Junit test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.