diff --git a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java index 30e5cbb4cd572f69f668be647bca7a1757510046..91e3c86d70a7e33144fc51cc601001d2c4a63691 100644 --- a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java +++ b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java @@ -197,15 +197,15 @@ public class PostgreSQLAdminDAO extends AbstractDatabaseAdminDAO getJdbcTemplate().execute(CREATE_PLPGSQL); } catch (RuntimeException ex) { - // if (ex instanceof DataAccessException - // && DBUtilities.isDuplicateObjectException((DataAccessException) ex)) - // { - // operationLog.warn("Cannot create language PL/PgSQL since it already exists."); - // } else - // { - operationLog.error("Failed to create language PL/PgSQL.", ex); - // throw ex; - // } + if (ex instanceof DataAccessException + && DBUtilities.isDuplicateObjectException((DataAccessException) ex)) + { + operationLog.warn("Cannot create language PL/PgSQL since it already exists."); + } else + { + operationLog.error("Failed to create language PL/PgSQL.", ex); + throw ex; + } } }