MyBatis version
3.5.5
Database vendor and version
5.7.42
Test case or example project
Steps to reproduce
When using mybatis to query, use map to receive the result set. The result data queried out is null for each field.
Expected result
Return a null record with table header in one row
Actual result
list.size()=1, value=null
Comment From: scf18857887860
callSettersOnNulls
I found that this parameter only takes effect when at least one row of data is returned. Is there another parameter that can return my table header name when all my data is null?
Comment From: harawata
If I understand you correctly, you need to enable both callSettersOnNulls
and returnInstanceForEmptyRow
.
If it is not what you want, please provide a repro project.
Comment From: scf18857887860
ok,thank you