mirror of
https://github.com/apache/archiva.git
synced 2025-02-12 04:56:02 +00:00
[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:
parent
d9f4994c5c
commit
de47399940
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user