diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-05 16:09:49 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-05 16:09:49 -0500 |
commit | 85084caeffb458ac884c2140380cb8908965120b (patch) | |
tree | 59c44d9881ce290926c24da5bc9d87a325283d43 /lib/sqlalchemy/orm/util.py | |
parent | 637fdd32510c7e04dbf279482057f3fa19c97456 (diff) | |
download | sqlalchemy-85084caeffb458ac884c2140380cb8908965120b.tar.gz |
- A single contains_eager() call across
multiple entities will indicate all collections
along that path should load, instead of requiring
distinct contains_eager() calls for each endpoint
(which was never correctly documented).
[ticket:2032]
- The "name" field used in orm.aliased() now renders
in the resulting SQL statement.
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
-rw-r--r-- | lib/sqlalchemy/orm/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 6bcd73e50..a1a50f2ad 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -212,7 +212,7 @@ class AliasedClass(object): self.__mapper = _class_to_mapper(cls) self.__target = self.__mapper.class_ if alias is None: - alias = self.__mapper._with_polymorphic_selectable.alias() + alias = self.__mapper._with_polymorphic_selectable.alias(name=name) self.__adapter = sql_util.ClauseAdapter(alias, equivalents=self.__mapper._equivalent_columns) self.__alias = alias |