mybatis / mybatis-3

MyBatis SQL mapper framework for Java
http://mybatis.github.io/mybatis-3/
Apache License 2.0
19.55k stars 12.74k forks source link

BaseJdbcLogger jdbctype=Array The log parameter becomes null #3162

Open smagical opened 1 month ago

smagical commented 1 month ago

MyBatis version

3.5.16

The setColum of BaseJdbcLogger records parameter information. When the jdbc type is Array, if Array.free() is called, the saved parameters will become empty. It is recommended to call Array.getArray() when judging that the type is Array to take out the array from Array to prevent Clearing Array.free() causes the debug log to become null.

harawata commented 1 month ago

Hello @smagical ,

Could you send us a pull request? Please be sure to include a test case.

Thank you!