-
Notifications
You must be signed in to change notification settings - Fork 355
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
Use force-quoting in R2dbcMappingContext
by default
#1993
Comments
With Therefore I guess you really want to use If that still doesn't work, please provide a full reproducer, preferably base on https://github.com/schauder/issue-jdbc-1993 |
@schauder Thank you for your help, and sorry I forgot to mention that this bug occurs under |
The cause of the bug seems to be that the default values provided by public R2dbcMappingContext(NamingStrategy namingStrategy) {
super(namingStrategy);
// use setForceQuote(true) to support keyword fields
setForceQuote(false);
} |
We initially didn't want to enable |
R2dbcMappingContext
by default
@mp911de @schauder After changing the default values and modifying some test cases, I found that besides the changes to the default values, places like |
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 inorg.springframework.data.relational.core.conversion.MappingRelationalConverter#read
, theorg.springframework.data.relational.core.conversion.RowDocumentAccessor#hasValue
method doesn't recognize the field. I believe some logic should be added here to solve this issue.The text was updated successfully, but these errors were encountered: