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

[MySQL]: Release connection from pool in iterator() rather than close #4118

Closed
wants to merge 0 commits into from

Conversation

reecefenwick
Copy link

@reecefenwick reecefenwick commented Feb 15, 2025

Addresses #2143 with select iterators with trivial fix to release the borrowed connection from the pool rather than attempt to destroy it

I did try to add some test coverage but couldn't find away to effectively verify the release vs end behaviour, especially consider .end() is an alias for .release(). It does however remove the warning ensuring this code won't regress with future versions of mysql2

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 this pull request may close these issues.

1 participant