diff --git a/Model/src/main/java/org/eupathdb/common/db/EuPathDbDriverInitializer.java b/Model/src/main/java/org/eupathdb/common/db/EuPathDbDriverInitializer.java index f968117d2..7565c9626 100644 --- a/Model/src/main/java/org/eupathdb/common/db/EuPathDbDriverInitializer.java +++ b/Model/src/main/java/org/eupathdb/common/db/EuPathDbDriverInitializer.java @@ -55,8 +55,10 @@ public void closeConnection(Connection connection, ConnectionPoolConfig dbConfig if (dbConfig instanceof ModelConfigAppDB) { connection.setAutoCommit(true); ModelConfigAppDB appDbConfig = (ModelConfigAppDB)dbConfig; - closeDbLink(connection, appDbConfig.getUserDbLink()); - closeDbLink(connection, appDbConfig.getAcctDbLink()); + if (appDbConfig.getPlatformEnum() == SupportedPlatform.ORACLE) { + closeDbLink(connection, appDbConfig.getUserDbLink()); + closeDbLink(connection, appDbConfig.getAcctDbLink()); + } } // set auto-commit back to what it was connection.setAutoCommit(incomingAutoCommit);