diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-01 21:21:29 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-01 21:21:29 +0000 |
commit | 5df1759e151274594ca4691419f6be7e91257635 (patch) | |
tree | 9b0d4feb0811f2320cb15a3c5305449a81845d79 /lib/sqlalchemy/engine/base.py | |
parent | 61f2ca2c9d708660c45d5e81bfd3337bb82bbe62 (diff) | |
download | sqlalchemy-5df1759e151274594ca4691419f6be7e91257635.tar.gz |
- 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
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 13 |
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. |