]> 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:24:54 +0000 (19:24 -0400)
commitbd1777426255648215328252795dff24dfd08616
tree3d539521f799315150bdc9e80a38063c050a5bbd
parentbbf68345f4993245689b96cc6c6a50013afa3caa
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
doc/build/changelog/unreleased_14/8704.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_poly_loading.py