-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
描述问题
生成的DML回滚语句不正确
复现
重现该行为的步骤:
1.初始化表结构
create table test_20251215(
id bigint not null comment 'id',
name varchar(32) null comment '姓名',
age varchar(32) null comment '年龄',
primary key (id)
);
2.初始化数据
insert into test_20251215 (id, name, age) VALUES (1,'1','1');
insert into test_20251215 (id, name, age) VALUES (2,'2','2');
insert into test_20251215 (id, name, age) VALUES (3,'3','3');
insert into test_20251215 (id, name, age) VALUES (4,'4','4');
insert into test_20251215 (id, name, age) VALUES (5,'5','5');
insert into test_20251215 (id, name, age) VALUES (6,'6','6');
insert into test_20251215 (id, name, age) VALUES (7,'7','7');
insert into test_20251215 (id, name, age) VALUES (8,'8','8');
3.提交DML语句
update test_20251215 set age = '11' where id = 1;
delete from test_20251215 where id = 2;
4.登录yearning后台查看回滚语句
INSERT INTO canteen.test_20251215(id,name,age) VALUES(2,'2','2');
UPDATE canteen.test_20251215 SET id=1, name='1', age='1' WHERE id IS NULL AND name IS NULL AND age='11';
期望的结果
INSERT INTO `test_20251215`(`id`,`name`,`age`) VALUES(2,'2','2');
UPDATE `canteen`.`test_20251215` SET `name`='1', `age`='1' WHERE `id` = 1;
截图
部署方式
- [✔️ ] Docker
- Manual
环境 (请填写环境信息):
- 操作系统: [e.g. Mac OS]
- 浏览器 [e.g. chrome]
- 版本号 [e.g. 3.1.7]
额外的日志信息
在这里添加有关该问题的所有日志。