]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure we have states to load when doing poly post load
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 23 Feb 2018 18:55:17 +0000 (13:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 23 Feb 2018 19:19:13 +0000 (14:19 -0500)
commit3859256312c8114ca7104f59c90f68623893a630
tree31fbe5c0a8b6e892129ac317b7240d57c82826f7
parentf7dcac6967b3068b2dc2209cd4c6bf966206f8e9
Ensure we have states to load when doing poly post load

Fixed bug in new "polymorphic selectin" loading when a selection of
polymorphic objects were to be partially loaded from a relationship
lazy loader, leading to an "empty IN" condition within the load that
raises an error for the "inline" form of "IN".

Change-Id: I721cf5fdf0b9fd2289067d5d2c6bc87fb2436f07
Fixes: #4199
doc/build/changelog/unreleased_12/4199.rst [new file with mode: 0644]
lib/sqlalchemy/orm/loading.py
test/orm/inheritance/test_poly_loading.py