Skip to content

Commit 2fb7303

Browse files
committed
spring-projects#282 - Adapt ConditionFactory to 'SqlIdentifier' changes in Spring Data Relational
1 parent 430aa6d commit 2fb7303

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/main/java/org/springframework/data/r2dbc/repository/query/ConditionFactory.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ private Upper(Expression expression) {
239239
Assert.notNull(expression, "Expression must not be null!");
240240
String functionArgument;
241241
if (expression instanceof BindMarker) {
242-
functionArgument = expression instanceof Named ? ((Named) expression).getName() : expression.toString();
242+
functionArgument = expression instanceof Named ? ((Named) expression).getName().getReference()
243+
: expression.toString();
243244
} else if (expression instanceof Column) {
244245
functionArgument = "";
245246
Table table = ((Column) expression).getTable();

0 commit comments

Comments
 (0)