]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
comments explaining temporary hack for using executedirect
authorBrad Allen <bradallen137@gmail.com>
Thu, 11 Mar 2010 22:26:32 +0000 (16:26 -0600)
committerBrad Allen <bradallen137@gmail.com>
Thu, 11 Mar 2010 22:26:32 +0000 (16:26 -0600)
lib/sqlalchemy/connectors/mxodbc.py

index 47a5904b822f6eb6eb8c6ce453f8bf7466aa161f..b5747117f77225be7b5e60c782e8ec9539f006f9 100644 (file)
@@ -82,14 +82,7 @@ class MxODBCConnector(Connector):
         return tuple(version)
     
     def do_execute(self, cursor, statement, parameters, context=None):
-        """ Override the default do_execute for all dialects using mxODBC.
-        
-        This is needed because mxODBC expects a sequence of sequences
-        (usually a tuple of tuples) for the bind parameters, and 
-        SQLAlchemy commonly sends a list containing a string,
-        which mxODBC interprets as a sequence and breaks out the 
-        individual characters.
-        """
+        # temporary hack to pass tests until the a better solution is understood
         try:
             cursor.execute(statement, tuple(parameters))
         except InterfaceError: