Skip to content

关于 Spring-data-r2dbc entity 和mysql 数据库中有关bit类型转换问题 #1951

@clomanyao

Description

@clomanyao

Spring-data-r2dbc:3.3.5的版本中,其中mysql中有关的字段类型是bit,但是在转换为entity中的Boolean类型时出现BUG,虽然MySqlDialect有自己给注册了ByteToBooleanConverter 的转换器,但是在查询数据的时候并没有用到当前转换器,是因为R2DBC把有关的bit类型转为了HeapByteBuffer 类型,并不是Byte 类型,所以找不到合适的转换器,从而出现BUG

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions