Skip to content

Conversation

hogimn
Copy link
Contributor

@hogimn hogimn commented Feb 11, 2023

1. Fix wrong comment

2. Update discriminator test code in BaseExecutorTest.

IMAGES section does not match with discriminator,
thus the query result is forwarded to "defaultResultMap" instead of "postResultMap".

The "defaultResultMap" maps "id" column to "id" key in HashMap.
The "postResultMap" maps "id" column to "ID" key in HashMap, this is because by default MyBatis converts the column name to uppercase when using a HashMap as the result type in a result map.

To clarify this consequence, I updated test code.

@coveralls
Copy link

Coverage Status

Coverage: 87.173%. Remained the same when pulling b2bc913 on hogimn:test into 661e574 on mybatis:master.

@hazendaz hazendaz self-assigned this Feb 13, 2023
@hazendaz
Copy link
Member

Thanks @hogimn

@hazendaz hazendaz merged commit db754ce into mybatis:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants