kvesteri / sqlalchemy-continuum

Versioning extension for SQLAlchemy.
BSD 3-Clause "New" or "Revised" License
578 stars 127 forks source link

Add invalidated condition to rollback event - clear_connection #323

Open seeker25 opened 1 year ago

seeker25 commented 1 year ago

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".

marksteward commented 1 year ago

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)?