db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r650783 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java
Date Wed, 23 Apr 2008 08:38:13 GMT
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();



Mime
View raw message