summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-02-05 16:09:49 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-02-05 16:09:49 -0500
commit85084caeffb458ac884c2140380cb8908965120b (patch)
tree59c44d9881ce290926c24da5bc9d87a325283d43 /lib/sqlalchemy/orm/interfaces.py
parent637fdd32510c7e04dbf279482057f3fa19c97456 (diff)
downloadsqlalchemy-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/interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/interfaces.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py
index 8cece65cc..f68d2a289 100644
--- a/lib/sqlalchemy/orm/interfaces.py
+++ b/lib/sqlalchemy/orm/interfaces.py
@@ -515,7 +515,7 @@ class StrategizedOption(PropertyOption):
for an operation by a StrategizedProperty.
"""
- is_chained = False
+ chained = False
def process_query_property(self, query, paths, mappers):
@@ -525,7 +525,7 @@ class StrategizedOption(PropertyOption):
# "(Person, 'machines')" in the path due to the mechanics of how
# the eager strategy builds up the path
- if self.is_chained:
+ if self.chained:
for path in paths:
query._attributes[('loaderstrategy',
_reduce_path(path))] = \