Skip to content

Conversation

puppylpg
Copy link
Contributor

@puppylpg puppylpg commented Mar 2, 2023

The original English doc for parameterType is:

This attribute is optional because MyBatis can calculate the TypeHandler to use out of the actual parameter passed to the statement.

I think the original meaning is that the "actual parameter passed to the statement" makes "MyBatis calculates the TypeHandler to use" happen.

However, the Chinese translated version:

MyBatis 可以通过类型处理器(TypeHandler)推断出具体传入语句的参数

is a inversion of cause and effect, which means that "MyBatis can infer the actual parameter passed to the statement" BY MEANS OF "its TypeHandler".

This is confusing and misleading.

The correct translation I believe should be:

MyBatis 可以根据语句中实际传入的参数计算出应该使用的类型处理器(TypeHandler)

Copy link
Contributor

@awxiaoxian2020 awxiaoxian2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hazendaz hazendaz self-assigned this Mar 2, 2023
@hazendaz hazendaz merged commit 51baa56 into mybatis:master Mar 2, 2023
@kazuki43zoo kazuki43zoo added the documentation Indicates a changing on documentation(reference or javadoc) label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Indicates a changing on documentation(reference or javadoc)

4 participants