diff options
author | Ken Robbins <ken@surveymonkey.com> | 2016-09-14 15:13:30 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-09-19 12:31:57 -0400 |
commit | 881369b949cff44e0017fdc28d9722ef3c26171a (patch) | |
tree | ce7211606851d306cd917fa03ea5bc23896455f8 | |
parent | 65d8deac95b63ea5702a9ce6b5d9a6c9a6a60991 (diff) | |
download | sqlalchemy-881369b949cff44e0017fdc28d9722ef3c26171a.tar.gz |
Add "message 20017" (unexpected EOF from the server) to mssql.
Fixes: #3791
Change-Id: I0dade4fe0ecbb53b4a66881594f362986ba73ae8
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/89
-rw-r--r-- | doc/build/changelog/changelog_10.rst | 9 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/mssql/pymssql.py | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst index 9ca98ff37..3b180f5f6 100644 --- a/doc/build/changelog/changelog_10.rst +++ b/doc/build/changelog/changelog_10.rst @@ -19,6 +19,15 @@ :version: 1.0.16 .. change:: + :tags: bug, mssql + :tickes: 3791 + :versions: 1.1.0 + + Added error code 20017 "unexpected EOF from the server" to the list of + disconnect exceptions that result in a connection pool reset. Pull + request courtesy Ken Robbins. + + .. change:: :tags: bug, orm.declarative :tickets: 3797 :versions: 1.1.0 diff --git a/lib/sqlalchemy/dialects/mssql/pymssql.py b/lib/sqlalchemy/dialects/mssql/pymssql.py index 32e3bd922..380418b33 100644 --- a/lib/sqlalchemy/dialects/mssql/pymssql.py +++ b/lib/sqlalchemy/dialects/mssql/pymssql.py @@ -87,6 +87,7 @@ class MSDialect_pymssql(MSDialect): "Not connected to any MS SQL server", "Connection is closed", "message 20006", # Write to the server failed + "message 20017", # Unexpected EOF from the server ): if msg in str(e): return True |