]> 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:51:43 +0000 (12:51 -0500)
commit546391e5a80f647e7ad78ef93f832f10278a8867
tree1d67ee82fbc7aeeaa69c061f7d881415c814a66f
parentaf50c8064d668ba33ef2399a288fd1594b1b5602
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
doc/build/changelog/unreleased_14/7425.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
test/ext/test_hybrid.py