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 "Knut Anders Hatlen (JIRA)" <de...@db.apache.org> on 2006/07/14 14:22:15 UTC
[jira] Closed: (DERBY-1481) Client driver: ResultSet.beforeFirst()
gives protocol error on scrollable, updatable result sets that are
downgraded to read-only
[ http://issues.apache.org/jira/browse/DERBY-1481?page=all ]
Knut Anders Hatlen closed DERBY-1481.
-------------------------------------
Fix Version/s: 10.2.0.0
Resolution: Fixed
Thanks for fixing this bug, Fernanda! The patch looks good and I have verified that it fixes the problem. Committed revision 421887.
> Client driver: ResultSet.beforeFirst() gives protocol error on scrollable, updatable result sets that are downgraded to read-only
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1481
> URL: http://issues.apache.org/jira/browse/DERBY-1481
> Project: Derby
> Issue Type: Bug
> Components: JDBC, Network Client
> Affects Versions: 10.2.0.0
> Reporter: Knut Anders Hatlen
> Assigned To: Fernanda Pizzorno
> Fix For: 10.2.0.0
>
> Attachments: derby-1481.diff, derby-1481.stat, Repro.java
>
>
> When a statement that produces scrollable, updatable result sets executes a query which cannot produce an updatable result set (a join for instance), ResultSet.beforeFirst() fails with the following error:
> Exception in thread "main" java.sql.SQLException: A network protocol error was encountered and the connection has been terminated: Network protocol exception: DSS length not 0 at end of same id chain parse. The connection has been terminated.
> at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
> at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:344)
> at org.apache.derby.client.am.ResultSet.beforeFirst(ResultSet.java:2101)
> at Repro.main(Repro.java:16)
> Caused by: org.apache.derby.client.am.DisconnectException: A network protocol error was encountered and the connection has been terminated: Network protocol exception: DSS length not 0 at end of same id chain parse. The connection has been terminated.
> at org.apache.derby.client.am.ResultSet.flowPositioningFetch(ResultSet.java:3888)
> at org.apache.derby.client.am.ResultSet.moveToBeforeFirst(ResultSet.java:4149)
> at org.apache.derby.client.am.ResultSet.beforeFirstX(ResultSet.java:2118)
> at org.apache.derby.client.am.ResultSet.beforeFirst(ResultSet.java:2096)
> ... 1 more
--
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