mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Python 2.6 compatibility fixes.
This commit is contained in:
committed by
Dave Page
parent
e95dc5f895
commit
a914ea088c
@@ -470,11 +470,10 @@ def poll(trans_id):
|
||||
rows_affected = conn.rows_affected()
|
||||
|
||||
for col in col_info:
|
||||
items = list(col.items())
|
||||
col_type = dict()
|
||||
col_type['type_code'] = items[1][1]
|
||||
col_type['type_code'] = col['type_code']
|
||||
col_type['type_name'] = None
|
||||
columns[items[0][1]] = col_type
|
||||
columns[col['name']] = col_type
|
||||
|
||||
# As we changed the transaction object we need to
|
||||
# restore it and update the session variable.
|
||||
|
||||
Reference in New Issue
Block a user