]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
include columns from superclasses that indicate "selectin"
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Feb 2023 14:31:36 +0000 (09:31 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Feb 2023 06:35:26 +0000 (01:35 -0500)
commit40b00498e62d3bf10f75874852bab6d6e0e3a09a
tree77c86bd6098758a5391da69088db6008a9a8fae6
parent8b108297d075ae68178cd18a9cb4d06feee7e075
include columns from superclasses that indicate "selectin"

Added support for the :paramref:`_orm.Mapper.polymorphic_load` parameter to
be applied to each mapper in an inheritance hierarchy more than one level
deep, allowing columns to load for all classes in the hierarchy that
indicate ``"selectin"`` using a single statement, rather than ignoring
elements on those intermediary classes that nonetheless indicate they also
would participate in ``"selectin"`` loading and were not part of the
base-most SELECT statement.

Fixes: #9373
Change-Id: If8dcba0f0191f6c2818ecd15870bccfdf5ce1112
doc/build/changelog/unreleased_20/9373.rst [new file with mode: 0644]
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_poly_loading.py