From 4ed1f0e57faa3ebd0f7cd9e46e1ab5671f4f54d4 Mon Sep 17 00:00:00 2001 From: Brad Allen Date: Mon, 15 Mar 2010 20:34:34 -0600 Subject: [PATCH] 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. --- lib/sqlalchemy/connectors/mxodbc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/sqlalchemy/connectors/mxodbc.py b/lib/sqlalchemy/connectors/mxodbc.py index 2374b4c95c..5e1d443afa 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)) + -- 2.47.3