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

The multipleResultSetsEnabled option has no effect #3234

Closed
KimoriTama opened this issue Sep 1, 2024 · 1 comment · Fixed by #3238
Closed

The multipleResultSetsEnabled option has no effect #3234

KimoriTama opened this issue Sep 1, 2024 · 1 comment · Fixed by #3238

Comments

@KimoriTama
Copy link

KimoriTama commented Sep 1, 2024

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 harawata changed the title The multipleResultSetsEnabled option doesn't has any effect. The multipleResultSetsEnabled option has no effect Sep 7, 2024
@harawata
Copy link
Member

harawata commented Sep 7, 2024

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.

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

Successfully merging a pull request may close this issue.

2 participants