]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
only consider column / relationship attrs for subclass IN
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Apr 2024 17:39:08 +0000 (13:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Apr 2024 23:43:05 +0000 (19:43 -0400)
commitf4a0ff730cc753d4d6f947959c6551fd10d7d699
tree0cbce8b3a4670a683203eada10fcb5bc84501b9b
parent6888cf79db79d5e5660300ccf2a2a91f1eecf75f
only consider column / relationship attrs for subclass IN

Fixed issue in  :func:`_orm.selectin_polymorhpic` loader option where
attributes defined with :func:`_orm.composite` on a superclass would cause
an internal exception on load.

Define the prop for :class:`.PropRegistry` as a
:class:`.StrategizedProperty`; we dont make path registries for
descriptor props like synonyms, composites, etc.

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