You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
The text was updated successfully, but these errors were encountered:
当前使用版本(必填,否则不予处理)
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'.
The text was updated successfully, but these errors were encountered: