Test square brackets with index/key expressions

See gh-27925
This commit is contained in:
Juergen Hoeller
2022-10-18 23:04:23 +02:00
parent 652781c4a1
commit 6f64cfd1e5
4 changed files with 54 additions and 44 deletions

View File

@@ -37,8 +37,7 @@ import org.springframework.util.Assert;
/**
* Helper methods for named parameter parsing.
*
* <p>Only intended for internal use within Spring's R2DBC
* framework.
* <p>Only intended for internal use within Spring's R2DBC framework.
*
* <p>References to the same parameter name are substituted with
* the same bind marker placeholder if a {@link BindMarkersFactory} uses
@@ -293,7 +292,6 @@ abstract class NamedParameterUtils {
if (paramSource.hasValue(paramName)) {
Object value = paramSource.getValue(paramName);
if (value instanceof Collection) {
Iterator<?> entryIter = ((Collection<?>) value).iterator();
int k = 0;
int counter = 0;