Skip to content

MappingR2dbcConverter cannot convert reserved keyword fields #867

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

Closed
ShenFeng312 opened this issue Feb 14, 2025 · 0 comments
Closed

MappingR2dbcConverter cannot convert reserved keyword fields #867

ShenFeng312 opened this issue Feb 14, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@ShenFeng312
Copy link

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants