Skip to content

Commit

Permalink
Fixed broken sql when now tables are configured for replication but a
Browse files Browse the repository at this point in the history
load is requested.
  • Loading branch information
jumpmind-josh committed Apr 25, 2019
1 parent 16204c6 commit 63a3610
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -127,7 +127,7 @@ public DataServiceSqlMap(IDatabasePlatform platform, Map<String, String> replace
+ " data_batch_loaded = case when ? between start_data_batch_id and end_data_batch_id then data_batch_loaded + ? else data_batch_loaded end, "
+ " setup_batch_loaded = case when ? < start_data_batch_id then setup_batch_loaded + ? else setup_batch_loaded end, "
+ " finalize_batch_loaded = case when ? > end_data_batch_id then finalize_batch_loaded + ? else finalize_batch_loaded end, "
+ " rows_loaded = (select case when sum(loaded_rows) is null then 0 else sum(loaded_rows) from $(extract_request) where load_id = ?), "
+ " rows_loaded = (select case when sum(loaded_rows) is null then 0 else sum(loaded_rows) end from $(extract_request) where load_id = ?), "
+ " last_update_time = ? "
+ " where load_id = ? and completed = 0");

Expand Down

0 comments on commit 63a3610

Please sign in to comment.