[Schmitzm-commits] r1747 - trunk/schmitzm-core/src/main/java/de/schmitzm/postgres
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Oct 3 12:15:59 CEST 2011
Author: alfonx
Date: 2011-10-03 12:15:59 +0200 (Mon, 03 Oct 2011)
New Revision: 1747
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java 2011-10-03 09:59:00 UTC (rev 1746)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java 2011-10-03 10:15:59 UTC (rev 1747)
@@ -10,8 +10,6 @@
import org.apache.log4j.Logger;
-import com.sun.tools.javac.util.Pair;
-
import de.schmitzm.lang.LangUtil;
/**
@@ -621,9 +619,9 @@
* <code>null</code> oder die zurückgegebenen Anfragen müssen
* mindestens soviele Sekunden schon laufen.
*/
- static public List<Pair<String, String>> listQueries(Connection c, String datName, Integer minSecondsRunning)
+ static public List<String[]> listQueries(Connection c, String datName, Integer minSecondsRunning)
throws SQLException {
- ArrayList<Pair<String, String>> result = new ArrayList<Pair<String, String>>();
+ ArrayList<String[]> result = new ArrayList<String[]>();
String where = "where current_query not like '%IDLE%' ";
@@ -645,7 +643,7 @@
String q = rs.getString(1);
String since = rs.getString(2);
- result.add(new Pair<String, String>(q, since));
+ result.add(new String[] {q, since});
}
return result;
More information about the Schmitzm-commits
mailing list