[MRM-462] fix statistics query

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@569009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2007-08-23 14:19:10 +00:00
parent d9f4994c5c
commit de47399940

View File

@ -22,7 +22,7 @@
import org.apache.maven.archiva.model.RepositoryContentStatistics;
/**
* MostRecentRepositoryScanStatistics
* MostRecentRepositoryScanStatistics
*
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
* @version $Id$
@ -34,12 +34,11 @@ public class MostRecentRepositoryScanStatistics
public MostRecentRepositoryScanStatistics( String repoId )
{
sql = "SELECT FROM " + RepositoryContentStatistics.class.getName()
+ " WHERE repositoryId == repoId PARAMETERS String repoId"
+ " ORDER BY whenGathered DESCENDING"
+ " RANGE 1,1";
sql = "SELECT FROM " + RepositoryContentStatistics.class.getName() +
" WHERE repositoryId == repoId PARAMETERS String repoId" + " ORDER BY whenGathered DESCENDING" +
" RANGE 0,1";
super.params = new Object[] { repoId };
super.params = new Object[]{repoId};
}
public Class getResultClass()