Skip to content

Commit

Permalink
0002250: Bad purge query on sybase
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 2, 2015
1 parent 599c800 commit a8b07c5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -31,8 +31,8 @@ public PurgeServiceSqlMap(IDatabasePlatform platform, Map<String, String> replac

// @formatter:off

putSql("deleteExtractRequestSql", "delete from $(extract_request) where status=? and last_update_time < ? and "
+ "0 = (select count(1) from sym_outgoing_batch where status != 'OK' and batch_id between start_batch_id and end_batch_id)");
putSql("deleteExtractRequestSql", "delete from $(extract_request) e where status=? and last_update_time < ? and "
+ "0 = (select count(1) from sym_outgoing_batch b where status != 'OK' and b.batch_id between e.start_batch_id and e.end_batch_id)");

putSql("deleteRegistrationRequestSql", "delete from $(registration_request) where status in (?,?,?) and last_update_time < ?");

Expand Down

0 comments on commit a8b07c5

Please sign in to comment.