Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test code to clarify the consequence #2805

Merged
merged 1 commit into from Feb 13, 2023
Merged

Update test code to clarify the consequence #2805

merged 1 commit into from Feb 13, 2023

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.

None yet

3 participants