]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure mapper.polymorphic_on is polymorphic_prop.columns[0]
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Sep 2016 21:55:39 +0000 (17:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Sep 2016 21:57:38 +0000 (17:57 -0400)
commit97b294093617eca7298a2fe97bd23bd6dc3b59bf
tree87bafb6b1dec132f38b11eaf42eaee5a4dceb9c4
parent930b07c3af5300e65473d44535db8c1d7133cb13
Ensure mapper.polymorphic_on is polymorphic_prop.columns[0]

Fixed bug where joined eager loading would fail for a polymorphically-
loaded mapper, where the polymorphic_on was set to an un-mapped
expression such as a CASE expression.

Change-Id: Iffe68196aaac592165c89684f09f4c06cd78ce54
Fixes: #3800
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_basic.py