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 45c841eb91
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>
<artifactId>CopyingApp</artifactId>
<packaging>jar</packaging>
<version>2.1.5</version>
<version>2.1.6</version>
<name>uJETL</name>
<url>https://github.com/rasilon/ujetl</url>
<properties>

View file

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

View file

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