Skip to content

Commit

Permalink
0004017: Canceling load leaves batches in not-OK status on the target
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jun 19, 2019
1 parent c192eef commit c4b7fa3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -41,7 +41,8 @@ public OutgoingBatchServiceSqlMap(IDatabasePlatform platform,
putSql("selectCountBatchesPrefixSql", "select count(*) from $(outgoing_batch) ");

putSql("cancelLoadBatchesSql",
"update $(outgoing_batch) set ignore_count=1, status='OK', error_flag=0, last_update_time=current_timestamp where load_id=?");
"update $(outgoing_batch) set ignore_count=1, status=case when sent_count > 0 then 'IG' else 'OK' end, " +
"error_flag=0, last_update_time=current_timestamp where load_id=?");

putSql("insertOutgoingBatchSql",
"insert into $(outgoing_batch) "
Expand Down

0 comments on commit c4b7fa3

Please sign in to comment.