]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
skip ad-hoc properties within subclass_load_via_in
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 23 Oct 2022 23:24:54 +0000 (19:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 23 Oct 2022 23:25:40 +0000 (19:25 -0400)
commitb3525904ba8abe323fcd84e1b3674bea4274a59c
tree091ce866cc298d19a4963e4ba7ab3f8618d9a75e
parentf710836488162518dcf2dc1006d90ecd77a2a178
skip ad-hoc properties within subclass_load_via_in

Fixed issue where "selectin_polymorphic" loading for inheritance mappers
would not function correctly if the :param:`_orm.Mapper.polymorphic_on`
parameter referred to a SQL expression that was not directly mapped on the
class.

Fixes: #8704
Change-Id: I1b6be2650895fd18d2c804f6ba96de966d11041a
(cherry picked from commit bd1777426255648215328252795dff24dfd08616)
doc/build/changelog/unreleased_14/8704.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_poly_loading.py