fix: スキーマ修飾子がついていなかったのを修正

ついでに、末尾の余分なスペースもトリム
This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-10-24 10:16:44 +09:00
parent dd74eb5d80
commit 3ac4cea903

View File

@ -63,7 +63,7 @@ SET @upsert_statement_base =
FROM FROM
internal02.crm_Product_Metrics_vod__c AS internaltb internal02.crm_Product_Metrics_vod__c AS internaltb
WHERE WHERE
Id = ? internal02.Id = ?
ON DUPLICATE KEY UPDATE ON DUPLICATE KEY UPDATE
IsDeleted = internaltb.IsDeleted, Name = internaltb.Name, CreatedDate = internaltb.CreatedDate, IsDeleted = internaltb.IsDeleted, Name = internaltb.Name, CreatedDate = internaltb.CreatedDate,
CreatedById = internaltb.CreatedById, LastModifiedDate = internaltb.LastModifiedDate, CreatedById = internaltb.CreatedById, LastModifiedDate = internaltb.LastModifiedDate,
@ -112,7 +112,7 @@ TableCursorLoop: LOOP
LEAVE TableCursorLoop; LEAVE TableCursorLoop;
END IF; END IF;
SET @distribution_schema = get_distribution_to_schema('crm_Product_Metrics_vod__c', 'medaca_parent_msj_product_classification__c', target_column_value); SET @distribution_schema = internal02.get_distribution_to_schema('crm_Product_Metrics_vod__c', 'medaca_parent_msj_product_classification__c', target_column_value);
SET @temp_table_id = temp_table_id; SET @temp_table_id = temp_table_id;
SET @upsert_statement = REPLACE(@upsert_statement_base, "$$distribution_schema$$", @distribution_schema); SET @upsert_statement = REPLACE(@upsert_statement_base, "$$distribution_schema$$", @distribution_schema);