Skip to content

Commit

Permalink
0005188: fix SQL error on postgres - it needs to know timestamp type
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jan 24, 2022
1 parent e7f9058 commit 21b3654
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -52,7 +52,7 @@ public DataExtractorServiceSqlMap(IDatabasePlatform platform,

putSql("updateExtractRequestStatus", "update $(extract_request) set status=?, last_update_time=?, extracted_rows=?, extracted_millis=? where request_id=?");

putSql("updateExtractRequestLoadTime", "update $(extract_request) set loaded_time = (case when end_batch_id = ? then ? else null end), "
putSql("updateExtractRequestLoadTime", "update $(extract_request) set loaded_time = (case when end_batch_id = ? then ? when 1 = 0 then last_update_time else null end), "
+ " loaded_rows = loaded_rows + ?, loaded_millis = loaded_millis + ?, last_loaded_batch_id = ?, "
+ " last_update_time=? where start_batch_id <= ? and end_batch_id >= ? and node_id=? and load_id=?");

Expand Down

0 comments on commit 21b3654

Please sign in to comment.