]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
this is needed for correct pathing, however some tests now fail. need tests for...
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Mar 2010 00:46:14 +0000 (20:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Mar 2010 00:46:14 +0000 (20:46 -0400)
lib/sqlalchemy/orm/strategies.py

index f4f3b582147a2afad72fb433fcb377d85fb7b482..a766aab09d491ccba5a873a115f661a660bac9da 100644 (file)
@@ -656,7 +656,7 @@ class SubqueryLoader(AbstractRelationshipLoader):
 
         subq_path = subq_path + path
 
-        reduced_path = interfaces._reduce_path(subq_path)
+        reduced_path = interfaces._reduce_path(path)
         
         # join-depth / recursion check
         if ("loaderstrategy", reduced_path) not in context.attributes:
@@ -780,7 +780,7 @@ class SubqueryLoader(AbstractRelationshipLoader):
         
         # add new query to attributes to be picked up 
         # by create_row_processor
-        context.attributes[('subquery', interfaces._reduce_path(path))] = q
+        context.attributes[('subquery', reduced_path)] = q
     
     def _local_remote_columns(self, prop):
         if prop.secondary is None: