Explicitly commit pre and post SQL so that a post command in the last job isn't lost.

This commit is contained in:
Derry Hamilton 2019-08-05 16:00:43 +01:00
parent 892f7b4fa8
commit 06c64d499f
3 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>com.rasilon.ujetl</groupId> <groupId>com.rasilon.ujetl</groupId>
<artifactId>CopyingApp</artifactId> <artifactId>CopyingApp</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>2.1.5</version> <version>2.1.6</version>
<name>uJETL</name> <name>uJETL</name>
<url>https://github.com/rasilon/ujetl</url> <url>https://github.com/rasilon/ujetl</url>
<properties> <properties>

View file

@ -184,6 +184,7 @@ public class Job extends Thread {
PreparedStatement s = dConn.prepareStatement(preTarget); PreparedStatement s = dConn.prepareStatement(preTarget);
s.executeUpdate(); s.executeUpdate();
s.close(); s.close();
dConn.commit();
}else{ }else{
log.info("No preTarget; skipping."); log.info("No preTarget; skipping.");
} }
@ -229,6 +230,7 @@ public class Job extends Thread {
PreparedStatement s = dConn.prepareStatement(postTarget); PreparedStatement s = dConn.prepareStatement(postTarget);
s.executeUpdate(); s.executeUpdate();
s.close(); s.close();
dConn.commit();
}else{ }else{
log.info("No postTarget; skipping."); log.info("No postTarget; skipping.");
} }

View file

@ -1,6 +1,6 @@
Summary: Java app to facilitate moving data between databases. Summary: Java app to facilitate moving data between databases.
Name: uJETL Name: uJETL
Version: 2.1.5 Version: 2.1.6
Release: 1 Release: 1
Group: Applications/Database Group: Applications/Database
License: All rights reserved. License: All rights reserved.