]> 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:05 +0000 (10:02 -0400)
commit06656edafcb6e8b0cfa784679101c0e5f7aa211c
tree3083b5c4ee34fc4c6dc2fd9d1b75178ca3595dfe
parent9a6e31cf4efdf842b0025ed7b496803cbeb57fce
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)
doc/build/changelog/unreleased_14/11728.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/ext/test_hybrid.py