Skip to content
Snippets Groups Projects
Commit a6cd4d38 authored by buczekp's avatar buczekp
Browse files

minor: log info instead of warning when plpgSQL already exists

SVN: 22268
parent 0ba30c8f
No related branches found
No related tags found
No related merge requests found
......@@ -192,15 +192,13 @@ public class PostgreSQLAdminDAO extends AbstractDatabaseAdminDAO
operationLog.info("Try to create PL/PgSQL language.");
try
{
scriptExecutor.execute(new Script("create language PL/PgSQL", CREATE_PLPGSQL), true,
null);
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.");
operationLog.info("No need to create language PL/PgSQL since it already exists.");
} else
{
operationLog.error("Failed to create language PL/PgSQL.", ex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment