Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
use .upper() method to convert to uppercase word.  string.uppercase conains a list of uppercase letters
  • Loading branch information
hoffmann committed Oct 31, 2014
1 parent a87a563 commit a2b06ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sqlalchemy_exasol/pyodbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
from sqlalchemy_exasol.base import EXADialect, EXAExecutionContext
from sqlalchemy.connectors.pyodbc import PyODBCConnector
from sqlalchemy.util.langhelpers import asbool
if six.PY3:
from string import ascii_uppercase as uppercase
else:
from string import uppercase
from distutils.version import LooseVersion

class EXADialect_pyodbc(PyODBCConnector, EXADialect):
Expand Down Expand Up @@ -67,7 +63,7 @@ def create_connect_args(self, url):
connect_args = {}
for param in ('ansi', 'unicode_results', 'autocommit'):
if param in keys:
connect_args[uppercase(param)] = asbool(keys.pop(param))
connect_args[param.upper()] = asbool(keys.pop(param))

dsn_connection = 'dsn' in keys or \
('host' in keys and 'port' not in keys)
Expand Down

0 comments on commit a2b06ea

Please sign in to comment.