Skip to content

Commit 050bdea

Browse files
committed
Fixes #649.
1 parent dda57c1 commit 050bdea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.util.Map;
2929
import java.util.Set;
3030

31+
import org.apache.ibatis.binding.MapperMethod.ParamMap;
3132
import org.apache.ibatis.cache.CacheKey;
3233
import org.apache.ibatis.cursor.Cursor;
3334
import org.apache.ibatis.cursor.defaults.DefaultCursor;
@@ -755,6 +756,8 @@ private Object prepareCompositeKeyParameter(ResultSet rs, ResultMapping resultMa
755756
private Object instantiateParameterObject(Class<?> parameterType) {
756757
if (parameterType == null) {
757758
return new HashMap<Object, Object>();
759+
} else if (ParamMap.class.equals(parameterType)) {
760+
return new HashMap<Object, Object>(); // issue #649
758761
} else {
759762
return objectFactory.create(parameterType);
760763
}

0 commit comments

Comments
 (0)