[Schmitzm-commits] r1865 - trunk/schmitzm-db/src/main/java/de/schmitzm/postgres

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Sat Feb 11 10:38:14 CET 2012


Author: alfonx
Date: 2012-02-11 10:38:13 +0100 (Sat, 11 Feb 2012)
New Revision: 1865

Modified:
   trunk/schmitzm-db/src/main/java/de/schmitzm/postgres/PGUtil.java
Log:



Modified: trunk/schmitzm-db/src/main/java/de/schmitzm/postgres/PGUtil.java
===================================================================
--- trunk/schmitzm-db/src/main/java/de/schmitzm/postgres/PGUtil.java	2012-02-11 00:51:52 UTC (rev 1864)
+++ trunk/schmitzm-db/src/main/java/de/schmitzm/postgres/PGUtil.java	2012-02-11 09:38:13 UTC (rev 1865)
@@ -884,7 +884,7 @@
 			where += " and age (now(),query_start) >= interval '" + minSecondsRunning + " second' ";
 		}
 
-		final String sql = "select current_query, age (now(),query_start) as qage, waiting, procpid, client_addr, username, application_name from pg_stat_activity "
+		final String sql = "select current_query, age (now(),query_start) as qage, waiting, procpid, client_addr, usename, application_name from pg_stat_activity "
 				+ where + " order by qage desc";
 		ResultSet rs = c.createStatement().executeQuery(sql);
 



More information about the Schmitzm-commits mailing list