From 0cff22720b4c60c1c305b5ab858c2f453cc66e34 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 9 Nov 2008 19:32:25 +0000 Subject: - Removed the 'properties' attribute of the Connection object, Connection.info should be used. - Method consoliation in Connection, ExecutionContext --- lib/sqlalchemy/sql/expression.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/expression.py') diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 2fa3fc36f..9b847c78b 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -2551,6 +2551,8 @@ class Alias(FromClause): baseselectable = baseselectable.element self.original = baseselectable self.supports_execution = baseselectable.supports_execution + if self.supports_execution: + self._autocommit = baseselectable._autocommit self.element = selectable if alias is None: if self.original.named_with_column: @@ -3453,7 +3455,8 @@ class _UpdateBase(ClauseElement): """Form the base for ``INSERT``, ``UPDATE``, and ``DELETE`` statements.""" supports_execution = True - + _autocommit = True + def _generate(self): s = self.__class__.__new__(self.__class__) s.__dict__ = self.__dict__.copy() @@ -3606,6 +3609,7 @@ class Delete(_UpdateBase): class _IdentifiedClause(ClauseElement): supports_execution = True + _autocommit = False quote = None def __init__(self, ident): -- cgit v1.2.1