Added error "The server failed to resume the transaction" to the list of
error strings for the pymssql driver in determining a disconnect scenario,
as observed by one user using pymssql under otherwise unknown conditions as
leaving an unusable connection in the connection pool which fails to ping
cleanly.
Fixes: #11822
Change-Id: I1cf98046978b10775f19531878b597d32b056f13
--- /dev/null
+.. change::
+ :tags: bug, mssql
+ :tickets: 11822
+
+ Added error "The server failed to resume the transaction" to the list of
+ error strings for the pymssql driver in determining a disconnect scenario,
+ as observed by one user using pymssql under otherwise unknown conditions as
+ leaving an unusable connection in the connection pool which fails to ping
+ cleanly.
"message 20006", # Write to the server failed
"message 20017", # Unexpected EOF from the server
"message 20047", # DBPROCESS is dead or not enabled
+ "The server failed to resume the transaction",
):
if msg in str(e):
return True
"message 20006", # Write to the server failed
"message 20017", # Unexpected EOF from the server
"message 20047", # DBPROCESS is dead or not enabled
+ "The server failed to resume the transaction",
]:
eq_(dialect.is_disconnect(error, None, None), True)