]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
using executemany instead of executedirect, which passes more tests than with plain...
authorBrad Allen <bradallen137@gmail.com>
Mon, 15 Mar 2010 17:39:03 +0000 (11:39 -0600)
committerBrad Allen <bradallen137@gmail.com>
Mon, 15 Mar 2010 17:39:03 +0000 (11:39 -0600)
lib/sqlalchemy/connectors/mxodbc.py

index b5747117f77225be7b5e60c782e8ec9539f006f9..de9638151f91e513275736536c066f198f88cbeb 100644 (file)
@@ -82,11 +82,8 @@ class MxODBCConnector(Connector):
         return tuple(version)
     
     def do_execute(self, cursor, statement, parameters, context=None):
-        # temporary hack to pass tests until the a better solution is understood
-        try:
-            cursor.execute(statement, tuple(parameters))
-        except InterfaceError:
-            cursor.executedirect(statement, tuple(parameters))
+        cursor.executedirect(statement, tuple(parameters))
+
 
             
 def error_handler(connection, cursor, errorclass, errorvalue):
@@ -99,5 +96,6 @@ def error_handler(connection, cursor, errorclass, errorvalue):
                   category=errorclass,
                   stacklevel=2)
     else:
+        #import pdb; pdb.set_trace()
         raise errorclass, errorvalue