Skip to content

[Question] 工单事务失效,在开启事务状态下仍然以无事务方式运行 #1233

@zycgit

Description

@zycgit

描述问题
工单事务失效

复现

准备数据

-- 添加表
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;

重现该行为的步骤:

  1. 创建 DML 工单,以事务方式执行工单

截图

Image Image Image

数据并没有回滚

部署方式

  • Docker

环境 (请填写环境信息):

  • 浏览器 [chrome]
  • 版本号 [HenryYee ver.3.1.9]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions