From cd0d29cef4c68b0f39eae55b26f0ab5233a5509c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 19 Feb 2014 19:22:17 -0500 Subject: [PATCH] - 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 --- doc/build/changelog/changelog_08.rst | 9 +++++++++ lib/sqlalchemy/dialects/postgresql/psycopg2.py | 1 + 2 files changed, 10 insertions(+) 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', -- 2.47.3