continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1677634 - /continuum/trunk/continuum-store/src/main/java/org/apache/continuum/dao/BuildResultDaoImpl.java
Date Mon, 04 May 2015 16:45:37 GMT
Author: batkinson
Date: Mon May  4 16:45:36 2015
New Revision: 1677634

URL: http://svn.apache.org/r1677634
Log:
Dao call to get previous build result loads entire history for one record.

Modified:
    continuum/trunk/continuum-store/src/main/java/org/apache/continuum/dao/BuildResultDaoImpl.java

Modified: continuum/trunk/continuum-store/src/main/java/org/apache/continuum/dao/BuildResultDaoImpl.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-store/src/main/java/org/apache/continuum/dao/BuildResultDaoImpl.java?rev=1677634&r1=1677633&r2=1677634&view=diff
==============================================================================
--- continuum/trunk/continuum-store/src/main/java/org/apache/continuum/dao/BuildResultDaoImpl.java
(original)
+++ continuum/trunk/continuum-store/src/main/java/org/apache/continuum/dao/BuildResultDaoImpl.java
Mon May  4 16:45:36 2015
@@ -256,9 +256,9 @@ public class BuildResultDaoImpl
             Query query = pm.newQuery( extent );
 
             query.declareParameters( "int projectId, int buildDefinitionId, int buildResultId"
);
-
             query.setFilter( "this.project.id == projectId && this.buildDefinition.id
== buildDefinitionId "
                                  + "&& this.id < buildResultId" );
+            query.setRange( 0, 1 );
             query.setOrdering( "this.id descending" );
 
             Object[] params = new Object[3];



Mime
View raw message