[WIP] Use force-quoting in R2dbcMappingContext by default #2047
+157
−91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I realized how many changes were required to support this, I started to feel that my approach might be flawed. Given that I don't fully understand the design, I felt that I shouldn't make such extensive modifications without fully understanding it.
In my understanding, when transforming an AST into SQL, special handling (such as formatting, ignoring comments, or quoting) is usually applied through a visitor.
However, in the current Spring implementation, the quoting behavior is decided at AST generation time rather than during SQL rendering.
This design means that if the quoting strategy needs to change, all related code must be modified, which increases the risk of omissions. Additionally, it is difficult to be certain which places do not require changes.
Therefore, I have temporarily put this work on hold and am seeking a better solution from the community.
@schauder suggested that I submit a PR to ensure that this issue is not missed in #1993