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_8_5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd0d29cef4c68b0f39eae55b26f0ab5233a5509c;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 6d9412545f..ae39434290 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 a1b2c5b0f4..cf856ff097 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -487,6 +487,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',