summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/persistence.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-09-05 14:50:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-09-05 16:28:20 -0400
commit356d6659b17d199c1a5ecc4241e7ee3edc6a754e (patch)
treea6b4da92f7d0185cb876794746b6bcd16f62a8d9 /lib/sqlalchemy/orm/persistence.py
parent2b10aa45a101acfcc6090a3801af998ef8fc1a2d (diff)
downloadsqlalchemy-356d6659b17d199c1a5ecc4241e7ee3edc6a754e.tar.gz
- tiny refactors #1-#5
Diffstat (limited to 'lib/sqlalchemy/orm/persistence.py')
-rw-r--r--lib/sqlalchemy/orm/persistence.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/persistence.py b/lib/sqlalchemy/orm/persistence.py
index dd9df4a66..74e69e44c 100644
--- a/lib/sqlalchemy/orm/persistence.py
+++ b/lib/sqlalchemy/orm/persistence.py
@@ -799,9 +799,9 @@ def _postfetch(mapper, uowtransaction, table,
after an INSERT or UPDATE statement has proceeded for that
state."""
- prefetch_cols = result.context.prefetch_cols
- postfetch_cols = result.context.postfetch_cols
- returning_cols = result.context.returning_cols
+ prefetch_cols = result.context.compiled.prefetch
+ postfetch_cols = result.context.compiled.postfetch
+ returning_cols = result.context.compiled.returning
if mapper.version_id_col is not None:
prefetch_cols = list(prefetch_cols) + [mapper.version_id_col]