Commit ce31f799 authored by Michael Ritter's avatar Michael Ritter
Browse files

Fix index of parameter value

parent 92926de3
...@@ -31,12 +31,17 @@ ...@@ -31,12 +31,17 @@
package edu.umiacs.ace.monitor.reporting; package edu.umiacs.ace.monitor.reporting;
import edu.umiacs.ace.monitor.log.*;
import edu.umiacs.ace.util.PersistUtil;
import edu.umiacs.ace.monitor.core.Collection; import edu.umiacs.ace.monitor.core.Collection;
import edu.umiacs.ace.monitor.log.LogEnum;
import edu.umiacs.ace.util.PersistUtil;
import edu.umiacs.sql.SQL; import edu.umiacs.sql.SQL;
import edu.umiacs.util.Argument; import edu.umiacs.util.Argument;
import edu.umiacs.util.Strings; import edu.umiacs.util.Strings;
import org.apache.log4j.Logger;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.sql.DataSource;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
...@@ -45,10 +50,6 @@ import java.sql.Timestamp; ...@@ -45,10 +50,6 @@ import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
/** /**
* Log summary generator, this will generate a report summarizing all log entries * Log summary generator, this will generate a report summarizing all log entries
...@@ -168,7 +169,7 @@ public class SummaryGenerator extends ReportItemTypes { ...@@ -168,7 +169,7 @@ public class SummaryGenerator extends ReportItemTypes {
+ "MIN(logevent.ID), logevent.LOGTYPE, count(logevent.LOGTYPE)" + "MIN(logevent.ID), logevent.LOGTYPE, count(logevent.LOGTYPE)"
+ "FROM logevent WHERE logevent.COLLECTION_ID = ? " + "FROM logevent WHERE logevent.COLLECTION_ID = ? "
+ "GROUP BY logevent.LOGTYPE"); + "GROUP BY logevent.LOGTYPE");
ps.setLong(2, collection.getId()); ps.setLong(1, collection.getId());
} }
// create entries for each result, for start date and session id // create entries for each result, for start date and session id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment