diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-09 19:32:25 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-09 19:32:25 +0000 |
| commit | 0cff22720b4c60c1c305b5ab858c2f453cc66e34 (patch) | |
| tree | 7039306b58e56efcbcd433be4bbe80d2eb4b7152 /lib/sqlalchemy/sql/compiler.py | |
| parent | 043379efa5d61626c9a8ab42b15c7687c6e6a0fd (diff) | |
| download | sqlalchemy-0cff22720b4c60c1c305b5ab858c2f453cc66e34.tar.gz | |
- Removed the 'properties' attribute of the
Connection object, Connection.info should be used.
- Method consoliation in Connection, ExecutionContext
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
| -rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 80a4d7f52..b83c9ab20 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -134,6 +134,10 @@ class DefaultCompiler(engine.Compiled): operators = OPERATORS functions = FUNCTIONS + # if we are insert/update/delete. + # set to true when we visit an INSERT, UPDATE or DELETE + isdelete = isinsert = isupdate = False + def __init__(self, dialect, statement, column_keys=None, inline=False, **kwargs): """Construct a new ``DefaultCompiler`` object. @@ -148,10 +152,7 @@ class DefaultCompiler(engine.Compiled): statement. """ - super(DefaultCompiler, self).__init__(dialect, statement, column_keys, **kwargs) - - # if we are insert/update/delete. set to true when we visit an INSERT, UPDATE or DELETE - self.isdelete = self.isinsert = self.isupdate = False + engine.Compiled.__init__(self, dialect, statement, column_keys, **kwargs) # compile INSERT/UPDATE defaults/sequences inlined (no pre-execute) self.inline = inline or getattr(statement, 'inline', False) |
