diff options
| author | Brad Allen <bradallen137@gmail.com> | 2010-03-11 16:26:32 -0600 |
|---|---|---|
| committer | Brad Allen <bradallen137@gmail.com> | 2010-03-11 16:26:32 -0600 |
| commit | 064345d7745d2c945eccaaf6df47f93e7e81dbfe (patch) | |
| tree | a830f5f21dd5a864024b760d78d72a4e89a9e13e /lib/sqlalchemy/connectors/mxodbc.py | |
| parent | 96ed4865be2609d1a314d0c6ba9945ca682ef100 (diff) | |
| download | sqlalchemy-064345d7745d2c945eccaaf6df47f93e7e81dbfe.tar.gz | |
comments explaining temporary hack for using executedirect
Diffstat (limited to 'lib/sqlalchemy/connectors/mxodbc.py')
| -rw-r--r-- | lib/sqlalchemy/connectors/mxodbc.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/sqlalchemy/connectors/mxodbc.py b/lib/sqlalchemy/connectors/mxodbc.py index 47a5904b8..b5747117f 100644 --- a/lib/sqlalchemy/connectors/mxodbc.py +++ b/lib/sqlalchemy/connectors/mxodbc.py @@ -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: |
