]> 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:58:32 +0000 (17:58 -0400)
commit3202fb4eabd7e2808cc7132ed26bad6e161b152e
treedf379849c286df3a7928845efe51668a1e29fd90
parent43a8e0b16a8c57b2ba0c74a41301e7f7acf2bb30
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
(cherry picked from commit 97b294093617eca7298a2fe97bd23bd6dc3b59bf)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_basic.py