Skip to content

Commit

Permalink
Fixed aio-libs#189
Browse files Browse the repository at this point in the history
  • Loading branch information
angaz committed Oct 24, 2018
1 parent 514f878 commit 9580e83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aiopg/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ def _enable_hstore(conn):
""")
rv0, rv1 = [], []
for oids in (yield from cur.fetchall()):
rv0.append(oids[0])
rv1.append(oids[1])
if isinstance(oids, dict):
rv0.append(oids['oid'])
rv1.append(oids['typarray'])
else:
rv0.append(oids[0])
rv1.append(oids[1])

cur.close()
return tuple(rv0), tuple(rv1)
Expand Down

0 comments on commit 9580e83

Please sign in to comment.