From: Mike Bayer Date: Thu, 20 Feb 2014 00:22:17 +0000 (-0500) Subject: - Added an additional message to psycopg2 disconnect detection, X-Git-Tag: rel_0_9_3~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57b214a0a4461cfbafe02ac3fb144141b839bb97;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Added an additional message to psycopg2 disconnect detection, "could not send data to server", which complements the existing "could not receive data from server" and has been observed by users, fixes #2936 --- diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst index b5c334b4ae..70eeb8830b 100644 --- a/doc/build/changelog/changelog_08.rst +++ b/doc/build/changelog/changelog_08.rst @@ -11,6 +11,15 @@ .. changelog:: :version: 0.8.5 + .. change:: + :tags: postgresql, bug + :versions: 0.9.3 + :tickets: 2936 + + Added an additional message to psycopg2 disconnect detection, + "could not send data to server", which complements the existing + "could not receive data from server" and has been observed by users. + .. change:: :tags: postgresql, bug :versions: 0.9.3 diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index c364ad7566..099ddf03df 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -496,6 +496,7 @@ class PGDialect_psycopg2(PGDialect): 'closed the connection', 'connection not open', 'could not receive data from server', + 'could not send data to server', # psycopg2 client errors, psycopg2/conenction.h, psycopg2/cursor.h 'connection already closed', 'cursor already closed',