This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new a5f5aacb5d [Bug][Alert]batchInsert execption #14686 (#14687)
a5f5aacb5d is described below

commit a5f5aacb5dc58dc05cd7c98c6614e44e2f4f6140
Author: Gallardot <[email protected]>
AuthorDate: Thu Aug 3 18:15:09 2023 +0800

    [Bug][Alert]batchInsert execption #14686 (#14687)
    
    Signed-off-by: Gallardot <[email protected]>
    Co-authored-by: xiangzihao <[email protected]>
---
 .../apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml
 
b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml
index 282838f1df..a2b27a91ba 100644
--- 
a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml
+++ 
b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml
@@ -22,14 +22,13 @@
     <insert id="batchInsert">
         insert into t_ds_alert_send_status (alert_id, 
alert_plugin_instance_id, send_status, log, create_time)
         values
-        <foreach collection="alertSendStatuses" item="alertSendStatus" 
separator="," open="(" close=")">
-            #{alertSendStatus.alertId},
+        <foreach collection="alertSendStatuses" item="alertSendStatus" 
separator=",">
+            (#{alertSendStatus.alertId},
             #{alertSendStatus.alertPluginInstanceId},
             #{alertSendStatus.sendStatus},
             #{alertSendStatus.log},
-            #{alertSendStatus.createTime}
+            #{alertSendStatus.createTime})
         </foreach>
-
     </insert>
 
     <delete id="deleteByAlertIds">

Reply via email to