postgres 8.4 change
This commit is contained in:
parent
2fed8ab577
commit
203f24c279
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user