diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-14 22:04:20 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-14 22:04:20 +0000 |
commit | 39fd3442e306f9c2981c347ab2487921f3948a61 (patch) | |
tree | 50868207def3fda8434be61660fae8944dde1229 /lib/sqlalchemy/engine/default.py | |
parent | d9af1828fbd79cc925abce98c9dd1d0b629e88a8 (diff) | |
download | sqlalchemy-39fd3442e306f9c2981c347ab2487921f3948a61.tar.gz |
- initial working version of sybase, with modifications to the transactional
model to accomodate Sybase's default mode of "no ddl in transactions".
- identity insert not working yet. it seems the default here might be the
opposite of that of MSSQL.
- reflection will be a full rewrite
- default DBAPI is python-sybase, well documented and nicely DBAPI compliant
except for the bind parameter situation, where we have a straightforward workaround
- full Sybase docs at: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0/title.htm
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
-rw-r--r-- | lib/sqlalchemy/engine/default.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 8222c93cd..7df858a64 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -135,7 +135,9 @@ class DefaultDialect(base.Dialect): self.default_schema_name = None self.returns_unicode_strings = self._check_unicode_returns(connection) - + + self.do_rollback(connection.connection) + def _check_unicode_returns(self, connection): # Py2K if self.supports_unicode_statements: @@ -257,6 +259,7 @@ class DefaultExecutionContext(base.ExecutionContext): isinsert = False isupdate = False isdelete = False + isddl = False executemany = False result_map = None compiled = None @@ -276,6 +279,7 @@ class DefaultExecutionContext(base.ExecutionContext): if compiled_ddl is not None: self.compiled = compiled = compiled_ddl + self.isddl = True if compiled.statement._execution_options: self.execution_options = compiled.statement._execution_options |