]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement attributes.Proxy._clone()
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Dec 2021 17:51:43 +0000 (12:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Dec 2021 17:52:46 +0000 (12:52 -0500)
commit09499bfa6fadc98c92ee0cc4588e14dc27152f5d
tree5abbe4af7b69dd0ecdabb8d04d6447ca66661116
parent1f8aee1442a22c9e65c91998684714802aa6fc44
implement attributes.Proxy._clone()

Fixed issue where the internal cloning used by the
:meth:`_orm.PropComparator.any` method on a :func:`_orm.relationship` in
the case where the related class also makes use of ORM polymorphic loading,
would fail if a hybrid property on the related, polymorphic class were used
within the criteria for the ``any()`` operation.

Fixes: #7425
Change-Id: I5f4f4ec5fab17df228bc6e3de412d24114b20600
(cherry picked from commit 546391e5a80f647e7ad78ef93f832f10278a8867)
doc/build/changelog/unreleased_14/7425.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
test/ext/test_hybrid.py