Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
a6cd4d38
Commit
a6cd4d38
authored
13 years ago
by
buczekp
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java
+1
-3
1 addition, 3 deletions
...temsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java
with
1 addition
and
3 deletions
dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLAdminDAO.java
+
1
−
3
View file @
a6cd4d38
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment