Fix for parameter position Error that occurs when binding the same Collection multiple times in R2DBC DatabaseClient #34873
+72
−9
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.
While developing with R2DBC DatabaseClient, an error occurred with the message 'Parameter at position 3 is not set' during the process of binding a Collection multiple times.
[Example SQL]
[Execute Code]
[Exception]
When debugging the related code, we confirmed that while it was retrieving the marking and index information, it was replacing the Collection values with information that had only been marked once.
We modified the code that replaces Collections according to marking and index information to ensure it doesn't execute only once, and we've written related test code.
[Modified]
When binding a Collection multiple times, n
BindMarkers
are created for the collection, so we modified the code to repeat the marking process if there is remaining mark information for the collection, ensuring the binding process executes n times.