diff options
| author | Brad Allen <bradallen137@gmail.com> | 2010-03-15 20:34:34 -0600 |
|---|---|---|
| committer | Brad Allen <bradallen137@gmail.com> | 2010-03-15 20:34:34 -0600 |
| commit | 4ed1f0e57faa3ebd0f7cd9e46e1ab5671f4f54d4 (patch) | |
| tree | aa0119c0a6c0b75b2e550593c1f280c7a62b4565 /lib/sqlalchemy/connectors/mxodbc.py | |
| parent | 00ac90accb8d29cd665a9c14089c51a32afb3bd8 (diff) | |
| download | sqlalchemy-4ed1f0e57faa3ebd0f7cd9e46e1ab5671f4f54d4.tar.gz | |
Removed custom do_execute which called cursor.executedirect, after discussion with eGenix and zzzeek. Even though more tests pass with executedirect, it is not appropriate for default usage because it does not issue prepare statements to the db, and it forces Python type binding. The executedirect method should only be called when the API user specifically requests it for special case performance reasons.
Diffstat (limited to 'lib/sqlalchemy/connectors/mxodbc.py')
| -rw-r--r-- | lib/sqlalchemy/connectors/mxodbc.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sqlalchemy/connectors/mxodbc.py b/lib/sqlalchemy/connectors/mxodbc.py index 2374b4c95..5e1d443af 100644 --- a/lib/sqlalchemy/connectors/mxodbc.py +++ b/lib/sqlalchemy/connectors/mxodbc.py @@ -79,9 +79,7 @@ class MxODBCConnector(Connector): except ValueError: version.append(n) return tuple(version) - - def do_execute(self, cursor, statement, parameters, context=None): - cursor.executedirect(statement, tuple(parameters)) + |
