MyBatis version
3.4.1
Database vendor and version
Not database specific, but for reproduction, HSQLDB 2.3.4
Test case or example project
#746
Steps to reproduce
- Bind a String array in a SQL map
- Access an element in the array as a parameter
Expected result
Parameter's value is substituted
Actual result
Null is substituted
Seems to have been introduced by commit 263b47e. My assumption is this would be fixed by checking additionalParameters for the property's name, not the indexed names, but I don't know enough about MyBatis internals to feel safe making that change myself.