summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-02-19 19:22:17 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-02-19 19:22:17 -0500
commit57b214a0a4461cfbafe02ac3fb144141b839bb97 (patch)
tree00bf7a212e07c9d7d343147cb4d1319348f47a76
parent69d1d08dc3983b2bba3ed9acafc63a7486ef29c6 (diff)
downloadsqlalchemy-57b214a0a4461cfbafe02ac3fb144141b839bb97.tar.gz
- 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
-rw-r--r--doc/build/changelog/changelog_08.rst9
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py1
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst
index b5c334b4a..70eeb8830 100644
--- a/doc/build/changelog/changelog_08.rst
+++ b/doc/build/changelog/changelog_08.rst
@@ -14,6 +14,15 @@
.. 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
Support has been improved for Postgresql reflection behavior on very old
(pre 8.1) versions of Postgresql, and potentially other PG engines
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index c364ad756..099ddf03d 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',