Skip to content

Commit 05527aa

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines 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)