Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseJdbcLogger jdbctype=Array The log parameter becomes null #3162

Open
smagical opened this issue May 17, 2024 · 2 comments
Open

BaseJdbcLogger jdbctype=Array The log parameter becomes null #3162

smagical opened this issue May 17, 2024 · 2 comments

Comments

@smagical
Copy link

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 smagical changed the title BaseJdbcLogger The log parameter becomes null BaseJdbcLogger jdbctype=Array The log parameter becomes null May 17, 2024
@harawata
Copy link
Member

Hello @smagical ,

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

Thank you!

@triggergun
Copy link

What scene?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants