diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-01-28 23:49:22 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-01-28 23:49:22 +0000 |
commit | e78cee66186b8851a5018e32f6935ca72be0cf7e (patch) | |
tree | 9f014b0a33ad01270b972b2ae3eeb8212a5b9d49 /lib/sqlalchemy/schema.py | |
parent | 0b185fc84f32c153239fd42a219b5a3a8e56ebda (diff) | |
download | sqlalchemy-e78cee66186b8851a5018e32f6935ca72be0cf7e.tar.gz |
- the "autocommit" flag on select() and text() as well
as select().autocommit() are deprecated - now call
.execution_options(autocommit=True) on either of those
constructs, also available directly on Connection and orm.Query.
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r-- | lib/sqlalchemy/schema.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index f2737ecde..cd9bd4892 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -2035,7 +2035,8 @@ class SchemaVisitor(visitors.ClauseVisitor): class DDLElement(expression._Executable, expression.ClauseElement): """Base class for DDL expression constructs.""" - _autocommit = True + _execution_options = expression._Executable.\ + _execution_options.union({'autocommit':True}) target = None on = None |