From 1fcb577bcdf2dde3699b9da14202237535fb3e4f Mon Sep 17 00:00:00 2001 From: "nik.n" Date: Tue, 16 Jan 2024 10:19:55 +0900 Subject: [PATCH] =?UTF-8?q?'crm=5Fhistory=E4=BF=AE=E6=AD=A3'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/internal02/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/internal02/crm_history.sql b/rds_mysql/stored_procedure/internal02/crm_history.sql index 5607741d..7bd53bf8 100644 --- a/rds_mysql/stored_procedure/internal02/crm_history.sql +++ b/rds_mysql/stored_procedure/internal02/crm_history.sql @@ -74,7 +74,7 @@ BEGIN UPDATE $$target_table$$ tt INNER JOIN $$target_table$$_make_history_tmp mht ON tt.Id = mht.Id - AND tt.start_datetime = mht.min_start_datetime + AND tt.$$target_column$$ = mht.min_start_datetime SET end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND , upd_user = CURRENT_USER()