mybatis / mybatis-3

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

The multipleResultSetsEnabled option has no effect #3234

Closed KimoriTama closed 2 months ago

KimoriTama commented 2 months ago

MyBatis version

3.5.16

Database vendor and version

any vendor.

Test case or example project

<settings>
  <setting name="multipleResultSetsEnabled" value="true"/>
</settings>

The multipleResultSetsEnabled option has no practical effect. Whether you set it to true or false, this variable is not actually used in the code—at least not without any plugins. I believe that such a configuration can be misleading, and at the very least, there should be a log message indicating that this option alone has no effect.

Steps to reproduce

set multipleResultSetsEnabled option in xml configuration .

Expected result

has no log print;

Actual result

print warning in the initialize stage.

harawata commented 2 months ago

Thank you for the report, @KimoriTama ,

The option is now marked as deprecated and the documentations are updated. There is no log message (it's a little bit tricky), but it should not be a big problem.