]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Added an additional message to psycopg2 disconnect detection,
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Feb 2014 00:22:17 +0000 (19:22 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Feb 2014 00:22:48 +0000 (19:22 -0500)
"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
lib/sqlalchemy/dialects/postgresql/psycopg2.py

index 6d9412545f9e1ea7906cb9f7135b8708e0e12934..ae39434290daf7e8f56fad976bc19f3c5777dcb7 100644 (file)
 .. 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
index a1b2c5b0f4761e3e56f95c2fcacf21158e80a1c6..cf856ff097848ddd08b3d451401702eae83ca444 100644 (file)
@@ -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',