]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The "wildcard" loader options, in particular the one set up by
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Jan 2015 22:04:35 +0000 (17:04 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Jan 2015 22:09:16 +0000 (17:09 -0500)
commit11383dae8d14af7867c9601d748fc2f550da991e
tree53e713353d0d0a0cdf4205a953936bd9346a11e9
parent56c0d77c7d8756dc566a4dc26684fd9f882e147d
- The "wildcard" loader options, in particular the one set up by
the :func:`.orm.load_only` option to cover all attributes not
explicitly mentioned, now takes into account the superclasses
of a given entity, if that entity is mapped with inheritance mapping,
so that attribute names within the superclasses are also omitted
from the load.  Additionally, the polymorphic discriminator column
is unconditionally included in the list, just in the same way that
primary key columns are, so that even with load_only() set up,
polymorphic loading of subtypes continues to function correctly.
fixes #3287

(cherry picked from commit b63aae2c232f980a47aa2a635c35dfa45390f451)

Conflicts:
lib/sqlalchemy/orm/mapper.py
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/path_registry.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_deferred.py