]> 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:23 +0000 (19:43 -0400)
commit2f48773061694d9b02044751e6a63a478ac24bd3
tree604b76856dd3403f3d9fa5b7cd19f7a2f43637c2
parent42ef15233cfda6c769e3be9d750551ac566f1966
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
(cherry picked from commit f4a0ff730cc753d4d6f947959c6551fd10d7d699)
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