You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the report, @lysu ,
As you found out, enabling returnInstanceForEmptyRow is the right solution.
Although you may be right about the default behavior being unintuitive, changing the default value of returnInstanceForEmptyRow breaks backward compatibility.
It makes sense, right?
MyBatis version
3.5.1
Database vendor and version
mysql 5.7.27-0ubuntu0.19.04.1
or
TiDB 3.0 :D
Test case or example project
schema and data:
mapper:
test:
Steps to reproduce
run
testCursorFetch
methodExpected result
should be true
Actual result
be false...and
1
record has no chance to be output.and if first record is NOT null, it will be true
we can work around this to change mapper to
and set
mybatis.configuration.returnInstanceForEmptyRow=true
but IMHO, current cursor' impl is not very suitable, maybe many people meet this question
The text was updated successfully, but these errors were encountered: