- Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
enhancementImprove a feature or add a new featureImprove a feature or add a new feature
Milestone
Description
MyBatis version
3.4.6
Database vendor and version
hsqldb
Test case or example project
Steps to reproduce
See test case.
- Create a mapper function with only one parameter, no annotation.
- Reference this parameter in sql.
- Compile it with
-parameters. - Call this function, get the result.
Expected result
Get the correct result 3.
Actual result
An Exception raised.
org.apache.ibatis.binding.BindingException: Parameter 'ids' not found. Available parameters are [collection, list] Quick debug
At ParamNameResolver.getNamedParams, it may not correctly handle the case when parameter come with name, but not annotated.
tokuhirom and chan-kate
Metadata
Metadata
Assignees
Labels
enhancementImprove a feature or add a new featureImprove a feature or add a new feature