HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2016-04-08 f470ed8722f4983ba5394b96ccea432db3ad6d64
change for postgres 8.4
2 files modified
4 ■■■■ changed files
hsarback/src/de/hsadmin/core/qserv/JDBCProcessor.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/qserv/JDBCProcessor.java
@@ -65,7 +65,7 @@
                System.out.println("SQL: " + sqlStatement);
                s.execute(sqlStatement);
            }
            return s.getUpdateCount();
            return new Integer(0);
        } catch (SQLException aSqlExc) {
            Exception exc = aSqlExc.getNextException();
            if (exc == null) {
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("SELECT pg_terminate_backend(procpid) 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;
    }