diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-05 00:46:11 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-05 00:46:11 -0500 |
commit | 8e24584d8d242d40d605752116ac05be33f697d3 (patch) | |
tree | 3bd83f533b0743e4eef7f377e74a62d60adc4995 /lib/sqlalchemy/engine/default.py | |
parent | af75fdf60fd3498ab3c5757e81a5d6b5e52f590d (diff) | |
download | sqlalchemy-8e24584d8d242d40d605752116ac05be33f697d3.tar.gz |
- ResultProxy and friends always reference the DBAPI connection at the same time
as the cursor. There is no reason for CursorFairy - the only use case would be,
end-user is using the pool or pool.manage with DBAPI connections, uses a cursor,
deferences the owning connection and continues using cursor. This is an almost
nonexistent use case and isn't correct usage at a DBAPI level. Take out CursorFairy.
- move the "check for a dot in the colname" logic out to the sqlite dialect.
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
-rw-r--r-- | lib/sqlalchemy/engine/default.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 587dbf92f..6c708aa52 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -405,7 +405,7 @@ class DefaultExecutionContext(base.ExecutionContext): self.parameters = self.__encode_param_keys(parameters) self.executemany = len(parameters) > 1 - if isinstance(statement, unicode) and not dialect.supports_unicode_statements: + if not dialect.supports_unicode_statements and isinstance(statement, unicode): self.unicode_statement = statement self.statement = statement.encode(self.dialect.encoding) else: |