]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
de-memoize _proxy_key when new annotations are added
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Aug 2024 23:50:05 +0000 (19:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Aug 2024 14:02:27 +0000 (10:02 -0400)
commit3b5f0fcfbe5fe6bca5566d4a37b28cfe2bd89f8d
tree5c6a1eb0f86500eacdedf5ae29725a9ea7132e7e
parentb2c94371d8ed85005ca44a26c0f7eb337124760e
de-memoize _proxy_key when new annotations are added

Fixed regression from 1.3 where the column key used for a hybrid property
might be populated with that of the underlying column that it returns, for
a property that returns an ORM mapped column directly, rather than the key
used by the hybrid property itself.

Fixes: #11728
Change-Id: Ifb298e46a20f90f6b6a717674f142a87cbceb468
(cherry picked from commit ffc7e8d73b30ea45fb03e0727b9fe96b6b8d4cfa)
(cherry picked from commit 5b1758a9bb8952adca91a95483ec1d11a66ad1e2)
doc/build/changelog/unreleased_14/11728.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/ext/test_hybrid.py