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/05/01 22:49:13 UTC

svn commit: r652657 - /db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java

Author: kristwaa
Date: Thu May  1 13:49:12 2008
New Revision: 652657

URL: http://svn.apache.org/viewvc?rev=652657&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.
Ported fix (r650783) from trunk to 10.3.

Patch contributed by Dag H. Wanvik.

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

Modified: db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java?rev=652657&r1=652656&r2=652657&view=diff
==============================================================================
--- db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java (original)
+++ db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java Thu May  1 13:49:12 2008
@@ -245,6 +245,7 @@
 		positionInSource = 0;
 		seenFirst = false;
 		seenLast = false;
+		maxRows = activation.getMaxRows();
 
 		openTime += getElapsedMillis(beginTime);
 		setBeforeFirstRow();