]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
dont pull filter_by from from_obj, entity is hopefully sufficient
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Oct 2021 15:28:42 +0000 (11:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Oct 2021 17:28:45 +0000 (13:28 -0400)
commitd2cf7dcfe0cd7e9986376b6e7edd4b7d60108599
treea3d1f5bd15525dbc49afdae135f7ecdd16e25866
parent7cf3e79991b3d00d53bfb98cfdab267b67a5cdda
dont pull filter_by from from_obj, entity is hopefully sufficient

Fixed 1.4 regression where :meth:`_orm.Query.filter_by` would not function
correctly on a :class:`_orm.Query` that was produced from
:meth:`_orm.Query.union`, :meth:`_orm.Query.from_self` or similar.

Fixes: #7239
Change-Id: I3a0c3fd71180b1bfb6bf855f436a29c729664082
doc/build/changelog/unreleased_14/7239.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_deprecations.py
test/orm/test_query.py