ruanwenjun commented on code in PR #13874:
URL:
https://github.com/apache/dolphinscheduler/pull/13874#discussion_r1161397079
##########
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TriggerRelationMapper.xml:
##########
@@ -50,6 +50,8 @@
<insert id="upsert">
INSERT INTO t_ds_trigger_relation (trigger_code, trigger_type, job_id,
create_time, update_time) VALUES(
#{triggerRelation.triggerCode},#{triggerRelation.triggerType},#{triggerRelation.jobId},#{triggerRelation.createTime},#{triggerRelation.updateTime})
- ON DUPLICATE KEY UPDATE update_time = #{triggerRelation.updateTime};
+ ON CONFLICT (trigger_code, trigger_type, job_id)
Review Comment:
Could you please split this method to insert/update?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]