mybatis-plus-join icon indicating copy to clipboard operation
mybatis-plus-join copied to clipboard

UpdateJoinWrapper的setUpdateEntity更新操作时,实体类属性上的@TableField注解的typeHandler类型处理器会失效

Open Rakbow opened this issue 10 months ago • 0 comments

当前使用版本(必填,否则不予处理)

1.4.12

该问题是如何引起的?(确定最新版也有问题再提!!!)

UpdateJoinWrapper的setUpdateEntity更新操作时,实体类属性上的@TableField注解的typeHandler类型处理器会失效,不会将插入字段的数据转为json数据,从而报错

重现步骤(如果有就写完整)

报错信息

Resolved [org.springframework.dao.DataIntegrityViolationException: <EOL><EOL>### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.

Rakbow avatar Apr 12 '24 19:04 Rakbow