-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[Question] 工单事务失效,在开启事务状态下仍然以无事务方式运行 #1233
Copy link
Copy link
Open
Description
描述问题
工单事务失效
复现
准备数据
-- 添加表
create table biz_model (
id bigint NOT NULL AUTO_INCREMENT,
created_time datetime COMMENT 'Creation timestamp',
updated_time datetime COMMENT 'Last update timestamp',
content varchar(50) NOT NULL COMMENT 'biz body',
PRIMARY KEY (id)
);
-- 初始化数据
insert into biz_model (id, created_time, updated_time, content)
values (1, '2025-05-30 14:02:39', '2025-05-30 14:02:39', '... content1 ...' );
insert into biz_model (id, created_time, updated_time, content)
values (2, '2025-05-30 14:02:39', '2025-05-30 14:02:39', '... content2 ...' );
insert into biz_model (id, created_time, updated_time, content)
values (5275, '2025-05-30 14:02:39', '2025-05-30 14:02:39', '... content3 ...' );
工单内容
-- 修复一条数据
update biz_model set content = 'abc' where id = 1;
-- 修复一条数据(模拟 SQL 报错)
update biz_model set content = null where id = 5275;
重现该行为的步骤:
- 创建 DML 工单,以事务方式执行工单
截图
数据并没有回滚
部署方式
- Docker
环境 (请填写环境信息):
- 浏览器 [chrome]
- 版本号 [HenryYee ver.3.1.9]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels