HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2016-04-08 dd4ce59112e1f4172b949488e0b1beae02df81f7
perform does not work
2 files modified
4 ■■■■ changed files
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlUserProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java
@@ -46,7 +46,7 @@
        assert db.getInstance().equals("pgsql");
        JDBCProcessor aJDBCP = createPostgreSqlAdminProcessor();
        String aName = AbstractEntity.escapeString(db.getName());
        aJDBCP.addSQL("PERFORM pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='" + aName + "'");
        aJDBCP.addSQL("SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='" + aName + "'");
        aJDBCP.addSQL("DROP DATABASE " + aName);
        return aJDBCP;
    }
hsarback/src/de/hsadmin/mods/db/PgSqlUserProcessorFactory.java
@@ -41,7 +41,7 @@
        assert dbu.getInstance().equals("pgsql");
        JDBCProcessor aJDBCP = PgSqlDatabaseProcessorFactory.createPostgreSqlAdminProcessor();
        String aName = AbstractEntity.escapeString(dbu.getName());
        aJDBCP.addSQL("PERFORM pg_terminate_backend(pid) 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;
    }