hanchuanchuan / goInception

一个集审核、执行、备份及生成回滚语句于一身的MySQL运维工具
https://hanchuanchuan.github.io/goInception/
GNU General Public License v3.0
1.6k stars 545 forks source link

[事务相关] 多条DML语句, 其中一条发生错误时,其他语句正常执行 #567

Closed xiaoshenwei closed 7 months ago

xiaoshenwei commented 1 year ago

描述 多条DML语句, 当某一条SQL 执行失败, 以后SQL不在执行, 之前SQL执行正常

期望: SQL1 成功 SQL2 失败 SQL3 成功 SQL4 成功

现象: SQL1 成功 SQL2 失败 SQL3 不执行 SQL4 不执行

参数 --trans=0;

hanchuanchuan commented 1 year ago

现在是这个逻辑没错, 没有忽略错误强制继续的参数. 建议由调用端自行实现.

stale[bot] commented 1 year ago

由于此问题没有最近的活动,因此已被自动标记为陈旧。如果没有进一步的活动,会作为不活跃issue关闭。感谢你对本项目的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.