Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Rakbow opened this issue Apr 12, 2024 · 0 comments

Comments

@Rakbow
Copy link

Rakbow commented Apr 12, 2024

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

1.4.12

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

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

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

报错信息

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

yulichang added a commit that referenced this issue May 25, 2024
yulichang added a commit that referenced this issue May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant