]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
support selectin_polymorphic w/ no fixed polymorphic_on
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Mar 2022 20:11:29 +0000 (15:11 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Mar 2022 14:39:38 +0000 (09:39 -0500)
commit788804fd51b612c435b9ca4036ab55cc4adcb892
tree9062f2b4cc4ab11ca4938232efa2ba4efac8f566
parenta289e05226e20cc6de9deb479f63297320ef7c5c
support selectin_polymorphic w/ no fixed polymorphic_on

Fixed issue where the :func:`_orm.polymorphic_selectin` loader option would
not work with joined inheritance mappers that don't have a fixed
"polymorphic_on" column.   Additionally added test support for a wider
variety of usage patterns with this construct.

Fixed bug where :func:`_orm.composite` attributes would not work in
conjunction with the :func:`_orm.selectin_polymorphic` loader strategy for
joined table inheritance.

Fixes: #7799
Fixes: #7801
Change-Id: I7cfe32dfe844b188403b39545930c0aee71d0119
doc/build/changelog/unreleased_14/7799.rst [new file with mode: 0644]
doc/build/changelog/unreleased_14/7801.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_poly_loading.py