[ http://issues.apache.org/jira/browse/DERBY-403?page=all ]
Bernt M. Johnsen updated DERBY-403:
-----------------------------------
Description:
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/)
was:
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)
This causes problems for Derby NetwokClient when used with SQuirreL
(http://squirrel-sql.sourceforge.net/)
> 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