From 5df1759e151274594ca4691419f6be7e91257635 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 1 Sep 2007 21:21:29 +0000 Subject: - got all examples working - inline default execution occurs for *all* non-PK columns unconditionally - preexecute only for non-executemany PK cols on PG, Oracle, etc. - new default docs --- lib/sqlalchemy/engine/base.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'lib/sqlalchemy/engine') 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. -- cgit v1.2.1