mybatis-3 icon indicating copy to clipboard operation
mybatis-3 copied to clipboard

BaseJdbcLogger jdbctype=Array The log parameter becomes null

Open smagical opened this issue 1 year ago • 2 comments

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.

smagical avatar May 17 '24 08:05 smagical

Hello @smagical ,

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

Thank you!

harawata avatar May 17 '24 11:05 harawata

What scene?

triggergun avatar Aug 01 '24 02:08 triggergun