postgres 8.4 change

This commit is contained in:
Peter Hormanns 2016-04-08 12:54:21 +02:00
parent 2fed8ab577
commit 203f24c279

View File

@ -41,7 +41,7 @@ public class PgSqlUserProcessorFactory implements EntityProcessorFactory {
assert dbu.getInstance().equals("pgsql");
JDBCProcessor aJDBCP = PgSqlDatabaseProcessorFactory.createPostgreSqlAdminProcessor();
String aName = AbstractEntity.escapeString(dbu.getName());
aJDBCP.addSQL("SELECT pg_terminate_backend(procpid) FROM pg_stat_activity WHERE usename='" + aName + "'");
aJDBCP.addSQL("SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE usename='" + aName + "'");
aJDBCP.addSQL("DROP USER " + aName);
return aJDBCP;
}