Skip to content

Accessing bound array parameter in a SQLMap fails #747

@JazzyJosh

Description

@JazzyJosh

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

  1. Bind a String array in a SQL map
  2. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions