From 218a0fc7582f29cb7a1bbf8c6e06563a5de79b23 Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Wed, 19 Jan 2011 12:35:44 +0000
Subject: [PATCH] minor: reverted workaround

SVN: 19498
---
 .../postgresql/PostgreSQLAdminDAO.java         | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

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 30e5cbb4cd5..91e3c86d70a 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;
+            }
         }
     }
 
-- 
GitLab