description

This is a obvious bug. It will cause data lost. The nested structure function will be affect. For example

     <resultMap id="rankItem" type="org.apache.ibatis.executor.resultset.nested.RankItem">
            <result property="score" column="score_num"/>
            <association property="user" javaType="org.apache.ibatis.executor.resultset.nested.User">
                <result property="id" column="id"/>
                <result property="name" column="name"/>
            </association>
     </resultMap>

unit test

I have a unit test, Expect 3, actual 2 because of the bug.

version

mybatis version: 3.5.4+

reproduce bug

This is a simple bug reproduction

Comment From: kana112233

ci test error

Comment From: harawata

Thank you for the PR, @kana112233 !

Is this the same issue as #1848 ? If yes, can we close?

Comment From: kana112233

Thank you for the PR, @kana112233 !

Is this the same issue as #1848 ? If yes, can we close?

yes