]> 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:01:44 +0000 (10:01 -0400)
commit10c073dc801bce1d137d106236f94c52bb76a685
tree257444a807f9451ea323b7f23826bd01830c2011
parentfdac33149b85480b7ec34e86f031afb8a0a9e54f
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
doc/build/changelog/unreleased_14/11728.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/ext/test_hybrid.py