Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
expobrain committed Mar 14, 2016
2 parents c7d24aa + a88bb45 commit f1250c0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.2
* fix Unicode Problems for OSX/Darwin
* better DSN handling
* add supports_native_decimal Flag

# 1.0.1
* add OFFSET Support for Exasol 5.X
* add Tests for Python 3.5
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SQLAlchemy==1.0.9 # rq.filter: >=1.0.0,<1.1.0
SQLAlchemy==1.0.12 # rq.filter: >=1.0.0,<1.1.0
pyodbc==3.0.10
six==1.10.0
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
pytest==2.8.5
pytest==2.9.0
pytest-cov==2.2.1
mock==1.3.0
1 change: 1 addition & 0 deletions sqlalchemy_exasol/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def pre_exec(self):
class EXADialect(default.DefaultDialect):
name = 'exasol'
supports_native_boolean = True
supports_native_decimal = True
supports_alter = True
# Uniceoe not supported on Darwin
# See https://www.exasol.com/support/browse/EXA-10027
Expand Down
4 changes: 2 additions & 2 deletions sqlalchemy_exasol/pyodbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def is_disconnect(self, e, connection, cursor):
}
exasol_error_codes = {
'HY000': ( # Generic Exasol error code
re.compile(ur'operation timed out', re.IGNORECASE),
re.compile(ur'connection lost', re.IGNORECASE),
re.compile(six.u(r'operation timed out'), re.IGNORECASE),
re.compile(six.u(r'connection lost'), re.IGNORECASE),
)
}

Expand Down
4 changes: 4 additions & 0 deletions sqlalchemy_exasol/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,7 @@ def bound_limit_offset(self):
def duplicate_key_raises_integrity_error(self):
return exclusions.closed()

@property
def independent_connections(self):
return exclusions.open()

2 changes: 1 addition & 1 deletion test/test_exadialect_pyodbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_create_connect_args_with_driver(self):

def test_create_connect_args_dsn(self):
self.assert_parsed("exa+pyodbc://scott:tiger@exa_test",
['DSN=exa_test;UID=scott;PWD=tiger;INTTYPESINRESULTSIFPOSSIBLE=y'],
['DSN=exa_test;EXAHOST=;EXASCHEMA=;UID=scott;PWD=tiger;INTTYPESINRESULTSIFPOSSIBLE=y'],
{})

def test_create_connect_args_trusted(self):
Expand Down

0 comments on commit f1250c0

Please sign in to comment.