Skip to content

Close database connections referenced in transaction. #310

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

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

Conversation

s4s0l
Copy link

@s4s0l s4s0l commented Apr 4, 2025

It does not fix, but at least gives a user a chance to handle the problem.

#309

I'm not sure how to test it as it happens only on windows machines.

I was wondering if closing the database connection shouldn't be done in all of: commit / rollback / close.

I've updated the transaction example, documentation suggests a pattern in which transactions are closed in finally block, but example was not following that.

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