]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
consider "inspect(_of_type)" to be the entity of a comparator
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 27 Oct 2021 15:14:50 +0000 (11:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 27 Oct 2021 15:14:50 +0000 (11:14 -0400)
commit5ad4190aa428dabc571e3d9c0e6a7944a384c8c3
tree226695dc956ec6ce116792c84347e52486ad109a
parentd2cf7dcfe0cd7e9986376b6e7edd4b7d60108599
consider "inspect(_of_type)" to be the entity of a comparator

Fixed 1.4 regression where :meth:`_orm.Query.filter_by` would not function
correctly when :meth:`_orm.Query.join` were joined to an entity which made
use of :meth:`_orm.PropComparator.of_type` to specify an aliased version of
the target entity. The issue also applies to future style ORM queries
constructed with :func:`_sql.select`.

Fixes: #7244
Change-Id: Ied28a03ce93201f932c7172d283cd4297be4d592
doc/build/changelog/unreleased_14/7244.rst [new file with mode: 0644]
doc/build/orm/queryguide.rst
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/relationships.py
test/orm/test_query.py