Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 05527aa

Browse filesBrowse files
committed
mybatis#101: Completely isolate new behaviour from existing via flag
1 parent 5061ca0 commit 05527aa
Copy full SHA for 05527aa

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,8 @@ Object createParameterizedResultObject(ResultSetWrapper rsw, Class<?> resultType
723723
final String constructorColumnPrefix = getColumnPrefix(columnPrefix, constructorMapping);
724724
final ResultMap resultMap = resolveDiscriminatedResultMap(rsw.getResultSet(),
725725
configuration.getResultMap(constructorMapping.getNestedResultMapId()), constructorColumnPrefix);
726-
value = getRowValue(rsw, resultMap, constructorColumnPrefix, parentRowKey);
726+
value = getRowValue(rsw, resultMap, constructorColumnPrefix,
727+
useCollectionConstructorInjection ? parentRowKey : null);
727728
} else {
728729
final TypeHandler<?> typeHandler = constructorMapping.getTypeHandler();
729730
value = typeHandler.getResult(rsw.getResultSet(), prependPrefix(column, columnPrefix));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.