Skip to content

MappingR2dbcConverter cannot convert reserved keyword fields #34424

@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

    Labels

    in: dataIssues in data modules (jdbc, orm, oxm, tx)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