]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Demote innerjoin to outerjoin coming from with_polymorphic
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 May 2017 16:01:53 +0000 (12:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 May 2017 19:18:45 +0000 (15:18 -0400)
commit94a089bc2b425f7896659868630836c013e80dd0
tree572a02b8226ea0e69c19047a46915b99a0ae5e8e
parent4352e220ac04d09e120c441e79b1ac12c7ca2c45
Demote innerjoin to outerjoin coming from with_polymorphic

a with_polymorphic, regardless of inheritance type, represents
multiple classes.  A subclass that wants to joinedload with innerjoin=True
needs to be demoted to an outerjoin because the parent entity rows
might not be of that type.   Looks more intuitive with a joined
inheritance load, but applies just as well to single or concrete.

Change-Id: I4d3d76106ae20032269f8848aad70a8e2f9422f9
Fixes: #3988
doc/build/changelog/changelog_12.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
test/orm/inheritance/test_relationship.py