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

@ -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.");
}