summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mssql/pymssql.py
diff options
context:
space:
mode:
authorJohn Anderson <sontek@gmail.com>2013-03-18 15:04:30 -0700
committerJohn Anderson <sontek@gmail.com>2013-03-18 15:04:30 -0700
commiteefa4b68f5dce3770d9b95455e9f14439f6bbd72 (patch)
tree0d2a82995b76df70eed537c78b7bb18d6dba2f48 /lib/sqlalchemy/dialects/mssql/pymssql.py
parentcb43db6bd1354191732bf503fac84cf3c261bcb5 (diff)
downloadsqlalchemy-eefa4b68f5dce3770d9b95455e9f14439f6bbd72.tar.gz
cleaned up errors, only check for connection timeout for now
Diffstat (limited to 'lib/sqlalchemy/dialects/mssql/pymssql.py')
-rw-r--r--lib/sqlalchemy/dialects/mssql/pymssql.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/pymssql.py b/lib/sqlalchemy/dialects/mssql/pymssql.py
index 0754f7f76..08e8fca6a 100644
--- a/lib/sqlalchemy/dialects/mssql/pymssql.py
+++ b/lib/sqlalchemy/dialects/mssql/pymssql.py
@@ -85,9 +85,8 @@ class MSDialect_pymssql(MSDialect):
def is_disconnect(self, e, connection, cursor):
for msg in (
- "Error 20003", # Connection Timeout
- "Error 20004", # Read from SQL server failed
- "Error 20006", # Write to SQL Server failed
+ "Adaptive Server connection timed out",
+ "message 20003", # connection timeout
"Error 10054",
"Not connected to any MS SQL server",
"Connection is closed"