[Schmitzm-commits] r2133 - trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sat Nov 10 17:36:36 CET 2012
Author: mojays
Date: 2012-11-10 17:36:36 +0100 (Sat, 10 Nov 2012)
New Revision: 2133
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java 2012-11-10 16:08:39 UTC (rev 2132)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java 2012-11-10 16:36:36 UTC (rev 2133)
@@ -268,11 +268,15 @@
stmt.execute();
conn.commit();
} catch (Exception err) {
+ conn.rollback();
LOGGER.error("Error updating required application release in database: "+err.getMessage());
LOGGER.error("Maybe parameters table '"+getParametersTableName()+"' does not exist. Try to created.");
// Error executing the query -> table does not exist
// -> create table
createParametersTable(conn);
+ // try to update table again
+ stmt.execute();
+ conn.commit();
}
}
More information about the Schmitzm-commits
mailing list