]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add deprecation warning for .join().alias()
authorGord Thompson <gord@gordthompson.com>
Sun, 13 Sep 2020 18:37:40 +0000 (12:37 -0600)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Sep 2020 16:08:04 +0000 (12:08 -0400)
commit75ac0abc7d5653d10006769a881374a46b706db5
tree9c64b49a6e2ac92741c8a7d56b977e4bf23c287f
parent5dcddfd37e2666c298ba934e85be2ac0140efd27
Add deprecation warning for .join().alias()

The :meth:`_sql.Join.alias` method is deprecated and will be removed in
SQLAlchemy 2.0.   An explicit select + subquery, or aliasing of the inner
tables, should be used instead.

Fixes: #5010
Change-Id: Ic913afc31f0d70b0605f9a7af2742a0de1f9ad19
13 files changed:
doc/build/changelog/unreleased_14/5010.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/roles.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/testing/assertions.py
test/orm/inheritance/test_poly_linked_list.py
test/orm/inheritance/test_selects.py
test/sql/test_deprecations.py
test/sql/test_external_traversal.py
test/sql/test_selectable.py