diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-19 19:22:17 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-19 19:22:17 -0500 |
commit | 57b214a0a4461cfbafe02ac3fb144141b839bb97 (patch) | |
tree | 00bf7a212e07c9d7d343147cb4d1319348f47a76 /lib/sqlalchemy/dialects/postgresql/psycopg2.py | |
parent | 69d1d08dc3983b2bba3ed9acafc63a7486ef29c6 (diff) | |
download | sqlalchemy-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
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg2.py | 1 |
1 files changed, 1 insertions, 0 deletions
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', |