We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64803b9 commit 5f98fb4Copy full SHA for 5f98fb4
mamonsu/plugins/pgsql/driver/connection.py
@@ -61,7 +61,11 @@ def query(self, query):
61
self.connected = True
62
except ProgrammingError as e:
63
error_text = '{0}'.format(e)
64
- if error_text == 'no result set':
+ # unpack_from error can happen if pg8000 was waiting for the response
65
+ # from PostgreSQL on the socket but instead got nothing.
66
+ # This error happens either due to an unstable network or if
67
+ # PostgreSQL fails to send the results for the last queries while restarting
68
+ if error_text == 'no result set' or 'unpack_from' in error_text:
69
return None
70
else:
71
raise ProgrammingError(error_text)
0 commit comments