Closed tchapi closed 1 year ago
Great! Thank you for the merge. Any idea on this bind.execute(self.stmt)
by any chance?
I think the issue is that StatementExecutor
is attempting to create a sub-transaction with tx = bind.begin()
. My hunch is that we can remove it since there's already an ongoing transaction.
My hunch is that we can remove it since there's already an ongoing transaction.
Will try that, thanks for the pointer
Hi 👋🏼
Following https://github.com/kvesteri/postgresql-audit/issues/62, this is a first pass at removing SQLAlchemy 2.0 deprecations as indicated in the documentation.
Known remaining deprecated parts:
bind.execute(self.stmt)
inStatementExecutor
→ I don't really see how to address this one. Using thewith bind.begin():
stanza is not helping, not sure how to go from hereNote: This is fully 1.4-compatible AFAIK Note²: Running the tests with
SQLALCHEMY_WARN_20=1 tox
helps finding the offending deprecations