]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Added the error "20006: Write to the server failed" to the list
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2015 18:15:40 +0000 (13:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2015 18:15:40 +0000 (13:15 -0500)
of disconnect errors for the pymssql driver, as this has been observed
to render a connection unusable.
fixes #3585

doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/mssql/pymssql.py

index 048f0b70a559a5255c2eca568a4c8cc50b6abd86..5b66baf97eed44d3a11ac77faadf452d1e2efbaa 100644 (file)
 .. changelog::
     :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
index 324b3770c22f2ca58fcbe653bcef0d9318fa1eb7..1d7635c7f9be234e8e7efcf7b08809ac79d694f1 100644 (file)
@@ -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