mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Explicitly commit pre and post SQL so that a post command in the last job isn't lost.
This commit is contained in:
parent
892f7b4fa8
commit
06c64d499f
3 changed files with 4 additions and 2 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue