![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1173969 http://bugzilla.opensuse.org/show_bug.cgi?id=1173969#c8 Angel Lafuente <a.lafuente@smcloud.es> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |a.lafuente@smcloud.es --- Comment #8 from Angel Lafuente <a.lafuente@smcloud.es> --- Hello: Until the update be released, I found a workaround searching for the bug at PostgresSQL community. https://redmine.postgresql.org/issues/4143 I modified the usr/lib/python3.6/site-packages/pgadmin4-web/pgadmin/utils/driver/psycopg2/cursor.py this way and it works. Hope be helpful. Best regards ----- # pwd /usr/lib/python3.6/site-packages/pgadmin4-web/pgadmin/utils/driver/psycopg2 # diff cursor.py cursor.py.ori 21,22d20 < import psycopg2 < 96,114c94 < < # In psycopg2 2.8, the description of one result column, < # exposed as items of the cursor.description sequence. < # Before psycopg2 2.8 the description attribute was a sequence < # of simple tuples or namedtuples. < if psycopg2.__version__.find('2.8') != -1: < ores = OrderedDict() < ores['name'] = self.orig_col.name < ores['type_code'] = self.orig_col.type_code < ores['display_size'] = self.orig_col.display_size < ores['internal_size'] = self.orig_col.internal_size < ores['precision'] = self.orig_col.precision < ores['scale'] = self.orig_col.scale < ores['null_ok'] = self.orig_col.null_ok < ores['table_oid'] = self.orig_col.table_oid < ores['table_column'] = self.orig_col.table_column < else: < ores = OrderedDict(self.orig_col._asdict()) < ---
ores = OrderedDict(self.orig_col._asdict())
# -- You are receiving this mail because: You are on the CC list for the bug.