baomidou / mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development
https://baomidou.com
Apache License 2.0
16.29k stars 4.3k forks source link

[错误报告]: 调用批量插入方法插入已成功返回false #6464

Open fengshuwangheqiao opened 1 week ago

fengshuwangheqiao commented 1 week ago

确认

当前程序版本

3.5.7

问题描述

调用 1 返回信息为false,3.5.6返回true,无任何报错信息,数据库已插入成功

详细堆栈日志

No response

totoro52 commented 1 week ago

复现不出来,功能正常 image

还有plus哪来的insertBatch方法 image

fengshuwangheqiao commented 1 week ago

看一下截图,调用的是 Db.saveBatch(entityList), 调用IService中的saveBatch返回是正常的

------------------ 原始邮件 ------------------ 发件人: "baomidou/mybatis-plus" @.>; 发送时间: 2024年9月6日(星期五) 中午11:25 @.>; @.**@.>; 主题: Re: [baomidou/mybatis-plus] [错误报告]: 调用批量插入方法插入已成功返回false (Issue #6464)

复现不出来,功能正常 image.png (view on web)

还有plus哪来的insertBatch方法 image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

totoro52 commented 1 week ago

复现不了,可以提供demo

fengshuwangheqiao commented 1 week ago

demo.zip

totoro52 commented 1 week ago

确实是plus的bug,这里判断出了问题,JDBC给了SUCCESS_NO_INFO状态码,最新代码我看到了已经修了,先用旧版吧等更新吧 image