Skip to content

Commit 8622d70

Browse files
committed
Polishing.
Refine tests. Extend comment for future-me. See #1900 Original pull request: #1903
1 parent ae86518 commit 8622d70

File tree

2 files changed

+170
-168
lines changed

2 files changed

+170
-168
lines changed

Diff for: spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ private JdbcValue writeValue(@Nullable Object value, TypeInformation<?> typeInfo
244244

245245
TypeInformation<?> actualType = typeInformation.getActualType();
246246

247-
// tuple-binding
247+
// allow tuple-binding for collection of byte arrays to be used as BINARY,
248+
// we do not want to convert to column arrays.
248249
if (actualType != null && actualType.getType().isArray() && !actualType.getType().equals(byte[].class)) {
249250

250251
TypeInformation<?> nestedElementType = actualType.getRequiredActualType();

0 commit comments

Comments
 (0)