Skip to content

Commit

Permalink
Fix SQLAlchemy 1.2.0 compatibility (aio-libs#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gr1N committed Dec 28, 2017
1 parent 83d9714 commit c941c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions aiopg/sa/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def __init__(self, result_proxy, metadata):
self._keymap = keymap = {}
self.keys = []
dialect = result_proxy.dialect
typemap = dialect.dbapi_type_map
assert dialect.case_sensitive, \
"Doesn't support case insensitive database connection"

Expand All @@ -121,9 +120,7 @@ def __init__(self, result_proxy, metadata):
name, obj, type_ = (
colname,
None,
result_map.get(
colname,
typemap.get(coltype, sqltypes.NULLTYPE))
result_map.get(colname, sqltypes.NULLTYPE),
)

processor = type_._cached_result_processor(dialect, coltype)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ pytest-cov==2.5.1
pytest-sugar==0.9.0
pytest-timeout==1.2.1
sphinxcontrib-asyncio==0.2.0
sqlalchemy==1.1.15
sqlalchemy==1.2.0
psycopg2==2.6.2

0 comments on commit c941c24

Please sign in to comment.