]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
deprecate .connection on _ConnectionFairy, _ConnectionRecord
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 May 2022 18:28:14 +0000 (14:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 May 2022 19:24:05 +0000 (15:24 -0400)
commit656fd0d73a679a2588289e285328af707e9401d1
tree16517d5b939986f04ea421ce957aeccdc0e684df
parent0620614f95f62f35396e63c636cae98a0759f3ab
deprecate .connection on _ConnectionFairy, _ConnectionRecord

These are replaced by the read-only ManagesConnection.dbapi_connection
attribute.

For some reason both of these objects had "setter" for .connection
as well; there's no use case for that at all so just remove
setter logic entirely.

Fixes: #6981
Change-Id: I6425de4a017f6370e1a7476cd491cabc55e55e67
lib/sqlalchemy/pool/base.py
test/dialect/oracle/test_dialect.py
test/dialect/oracle/test_types.py
test/dialect/postgresql/test_async_pg_py3k.py
test/engine/test_deprecations.py
test/engine/test_pool.py
test/engine/test_transaction.py
test/requirements.py