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

Add invalidated condition to rollback event - clear_connection #323

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

Conversation

seeker25
Copy link

@seeker25 seeker25 commented Dec 2, 2022

This way conn.connection is connection.connection - > self._revalidate_connection() wont be called when a connection is invalidated eg. "Can't reconnect until transaction is rolled back".

…nection - > self._revalidate_connection()

Doesn't get stuck with the error "Can't reconnect until transaction is rolled back".
@seeker25 seeker25 marked this pull request as ready for review December 2, 2022 20:52
@seeker25 seeker25 changed the title Add invalidated condition to rollback event Add invalidated condition to rollback event - clear_connection Dec 2, 2022
@marksteward
Copy link
Collaborator

marksteward commented Jun 9, 2023

I don't entirely understand this, when would a connection be invalidated but not closed? Can you write a test to reproduce it (probably best to do it on the sqla-2.0 branch)?

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.

2 participants