Skip to content

Commit 4bbca07

Browse files
committed
Consider sanitised names when copying parameter sources.
1 parent 075fb74 commit 4bbca07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-jdbc-plus-sql/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/parametersource/SqlIdentifierParameterSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void addAll(SqlIdentifierParameterSource others) {
7676

7777
for (SqlIdentifier identifier : others.getIdentifiers()) {
7878

79-
String name = identifier.getReference();
79+
String name = BindParameterNameSanitizer.sanitize(identifier.getReference());
8080
addValue(identifier, others.getValue(name), others.getSqlType(name));
8181
}
8282
}

0 commit comments

Comments
 (0)