Skip to content

Commit 765ed1f

Browse files
committed
driver: Do not crash (recursively) when a result type of a statement is unknown
The dump routines of API elements are not supposed to raise _ever_.
1 parent 5b155ba commit 765ed1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/driver/pq3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def _e_metas(self):
12781278
yield (
12791279
'results',
12801280
'(' + ', '.join([
1281-
n + ' ' + t for n,t in zip(cn,ct)
1281+
'{!r} {!r}'.format(n, t) for n,t in zip(cn,ct)
12821282
]) + ')'
12831283
)
12841284
else:

0 commit comments

Comments
 (0)