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 "Bernt M. Johnsen (JIRA)" <de...@db.apache.org> on 2005/06/29 14:03:58 UTC

[jira] Closed: (DERBY-403) NetworkClient closes resultset when next() moves the cursor beyond the last row

     [ http://issues.apache.org/jira/browse/DERBY-403?page=all ]
     
Bernt M. Johnsen closed DERBY-403:
----------------------------------

    Resolution: Duplicate

Duplicate of DERBY-213

> NetworkClient closes resultset when next() moves the cursor beyond the last row
> -------------------------------------------------------------------------------
>
>          Key: DERBY-403
>          URL: http://issues.apache.org/jira/browse/DERBY-403
>      Project: Derby
>         Type: Bug
>   Components: Network Client
>     Reporter: Bernt M. Johnsen

>
> NetworkClient closes resultset when next() moves the cursor beyond the last row
> The following stub will work in EmbeddedDriver but not in NetworkClient:
>         while (rs.next()) {
>         }
>         rs.getMetaData();
> In NetworkCLient, you get:
> Exception in thread "main" org.apache.derby.client.am.SqlException: Invalid operation: result set closed
>         at org.apache.derby.client.am.ResultSet.checkForClosedResultSet(ResultSet.java:3269)
>         at org.apache.derby.client.am.ResultSet.getMetaDataX(ResultSet.java:1386)
>         at org.apache.derby.client.am.ResultSet.getMetaData(ResultSet.java:1377)
> 1) this is not expected behaviour as I read the spec and the tutorial.
> 2) This causes problems for Derby NetwokClient when used with SQuirreL (http://squirrel-sql.sourceforge.net/)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira