Commits

Mike Bayer committed a95b0a5

- inline the commit of partials too

Comments (0)

Files changed (1)

lib/sqlalchemy/orm/loading.py

         if filtered:
             rows = util.unique_list(rows, filter_fn)
 
-        for state, (dict_, attrs) in context.partials.items():
-            state._commit(dict_, attrs)
-
         for row in rows:
             yield row
 
                     state.load_options = context.propagate_options
                 if state.load_options:
                     state.load_path = load_path
+
                 for key, populator in new_populators:
                     if key not in attrs:
                         continue
                     populator(state, dict_, row)
 
+                state._commit(dict_, attrs)
+
             for key, pop in eager_populators:
                 if key not in unloaded:
                     pop(state, dict_, row)