[Sqlalchemy-tickets] Issue #3287: Load options ignore inherited classes with alias (zzzeek/sqlalche
Brought to you by:
zzzeek
|
From: malthe <iss...@bi...> - 2015-01-13 14:01:41
|
New issue 3287: Load options ignore inherited classes with alias https://bitbucket.org/zzzeek/sqlalchemy/issue/3287/load-options-ignore-inherited-classes-with malthe: If a query is made on an alias then the ``load_only`` option fails to exclude properties that are set on a base class of the aliased mapper. ```python q = sess.query(alias).options(load_only("age")) ``` This is demonstrated in a test case here: https://github.com/malthe/sqlalchemy/tree/load-only-with-alias-issue |