Skip to content

MappingR2dbcConverter cannot convert reserved keyword fields #867

Closed
@ShenFeng312

Description

@ShenFeng312

I have a table where the field is desc. Since it's a reserved keyword in PostgreSQL, I had to use the annotation @column(""desc"") to allow it to be written properly. However, when reading the data, I found that it cannot be read correctly because in org.springframework.data.r2dbc.convert.MappingR2dbcConverter#readFrom, the org.springframework.data.r2dbc.convert.RowMetadataUtils#containsColumn method doesn't recognize the field. I believe some hardcoded logic should be added here to solve this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions