-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Mybatis sqlbound parametMapping get property type failed #3155
Comments
Hello @Chishide , I'm not sure. |
I still don't understand what the expected/actual results are (because you guys ignored the issue report form). And please stop using images unless it is absolutely necessary. To fix a problem, we need to reproduce the problem first. Thank you! |
Hi all,
in this case, this sql parsed with two params and mybatis wrap them as ParamMap type, when parsing the boud sql, the DynamicContext class wrap this ParamMap to ContexMap for binding field, ParameterMappingTokenHandler will deal the raw sql properties but can not get the correct property type because it the additionalParameters is wrapped can not get the value by propery, this property type will be recgonized as Object type, I know this can be work well with all most situations but in some case it will work wrong like enum field or customize field, is this a bug or can you give some adive?
MyBatis version
3.5.7
Database vendor and version
mysql
Test case or example project
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: