You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by kr...@apache.org on 2008/04/23 10:38:13 UTC

svn commit: r650783 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java

Author: kristwaa
Date: Wed Apr 23 01:38:11 2008
New Revision: 650783

URL: http://svn.apache.org/viewvc?rev=650783&view=rev
Log:
DERBY-3397: Derby 10.3.1.4 and 10.3.2.1 break scrollable result sets? Hibernate Query.setFirstResult and/or setMaxResults.
This change makes setMaxRows take effect by resetting the value in the result set object to the value held in the activation.
Patch file: derby-3397.diff

Patch contributed by Dag H. Wanvik.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java?rev=650783&r1=650782&r2=650783&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java Wed Apr 23 01:38:11 2008
@@ -245,6 +245,7 @@
 		positionInSource = 0;
 		seenFirst = false;
 		seenLast = false;
+		maxRows = activation.getMaxRows();
 
 		openTime += getElapsedMillis(beginTime);
 		setBeforeFirstRow();