Mapper icon indicating copy to clipboard operation
Mapper copied to clipboard

4.3.0 updateSetColumnsIgnoreVersion.updateSetColumnsIgnoreVersion()为什么要加id=id?

Open philjing opened this issue 2 months ago • 1 comments

这根本不合理

philjing avatar Dec 11 '25 02:12 philjing

是不合理。最早为了解决update table set (没有设置任何字段) where id = ? 报错问题。

后来发现如 sqlserver 这种设置 set id = ? 会报错,需要在列注解指定 updateable = false。

abel533 avatar Dec 11 '25 03:12 abel533