summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/engine')
-rw-r--r--lib/sqlalchemy/engine/base.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index 6f3badb44..c7364721f 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -392,11 +392,9 @@ class ExecutionContext(object):
raise NotImplementedError()
def lastrow_has_defaults(self):
- """Return True if the last row INSERTED via a compiled insert statement contained PassiveDefaults.
+ """Return True if the last INSERT or UPDATE row contained
+ inlined or database-side defaults.
- The presence of PassiveDefaults indicates that the database
- inserted data beyond that which we passed to the query
- programmatically.
"""
raise NotImplementedError()
@@ -1349,7 +1347,14 @@ class ResultProxy(object):
"""
return self.context.lastrow_has_defaults()
+
+ def postfetch_cols(self):
+ """Return ``postfetch_cols()`` from the underlying ExecutionContext.
+ See ExecutionContext for details.
+ """
+ return self.context.postfetch_cols()
+
def supports_sane_rowcount(self):
"""Return ``supports_sane_rowcount`` from the dialect.