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 #4127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reecefenwick
Copy link

@reecefenwick reecefenwick commented Feb 16, 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

@reecefenwick reecefenwick force-pushed the fix/iterator-release-pooled-conn branch from ef58057 to 49554f7 Compare February 24, 2025 01:32
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