summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-11-30 13:15:40 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2015-11-30 13:15:40 -0500
commitab6946769742602e40fb9ed9dde5f642885d1906 (patch)
tree10495c1822696cda8cab0c8e20bb60bda3f17ff7
parentf4cb3f8cacaf96f064c2c7e4c1e579c7cf6544da (diff)
downloadsqlalchemy-ab6946769742602e40fb9ed9dde5f642885d1906.tar.gz
- Added the error "20006: Write to the server failed" to the list
of disconnect errors for the pymssql driver, as this has been observed to render a connection unusable. fixes #3585
-rw-r--r--doc/build/changelog/changelog_10.rst9
-rw-r--r--lib/sqlalchemy/dialects/mssql/pymssql.py3
2 files changed, 11 insertions, 1 deletions
diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst
index 048f0b70a..5b66baf97 100644
--- a/doc/build/changelog/changelog_10.rst
+++ b/doc/build/changelog/changelog_10.rst
@@ -19,6 +19,15 @@
:version: 1.0.10
.. change::
+ :tags: bug, mssql
+ :tickets: 3585
+ :versions: 1.1.0b1
+
+ Added the error "20006: Write to the server failed" to the list
+ of disconnect errors for the pymssql driver, as this has been observed
+ to render a connection unusable.
+
+ .. change::
:tags: bug, postgresql
:pullreq: github:216
:tickets: 3573
diff --git a/lib/sqlalchemy/dialects/mssql/pymssql.py b/lib/sqlalchemy/dialects/mssql/pymssql.py
index 324b3770c..1d7635c7f 100644
--- a/lib/sqlalchemy/dialects/mssql/pymssql.py
+++ b/lib/sqlalchemy/dialects/mssql/pymssql.py
@@ -85,7 +85,8 @@ class MSDialect_pymssql(MSDialect):
"message 20003", # connection timeout
"Error 10054",
"Not connected to any MS SQL server",
- "Connection is closed"
+ "Connection is closed",
+ "message 20006", # Write to the server failed
):
if msg in str(e):
return True