]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added additional error message to is_disconnect() for Firebird dialects
authorlukens <lukens@me.com>
Thu, 10 Oct 2019 16:06:15 +0000 (12:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Oct 2019 14:39:24 +0000 (10:39 -0400)
Added additional "disconnect" message "Error writing data to the
connection" to Firebird disconnection detection.  Pull request courtesy
lukens.

Fixes: #4903
Closes: #4904
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4904
Pull-request-sha: c56d7c4abf6b6c8263efaf070b4e7a319e12a875

Change-Id: Ib70c20c616e7519b933fee587a3b3e8dbb4c2f81

doc/build/changelog/unreleased_13/4903.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/firebird/kinterbasdb.py

diff --git a/doc/build/changelog/unreleased_13/4903.rst b/doc/build/changelog/unreleased_13/4903.rst
new file mode 100644 (file)
index 0000000..d6d2850
--- /dev/null
@@ -0,0 +1,7 @@
+.. change::
+    :tags: bug, firebird
+    :tickets: 4903
+
+    Added additional "disconnect" message "Error writing data to the
+    connection" to Firebird disconnection detection.  Pull request courtesy
+    lukens.
index 9880ee89f36ff93befdbef002ff1a77ec8e87649..3312aeeaeafb05555ff5444c0aefd88682a1baa6 100644 (file)
@@ -188,7 +188,8 @@ class FBDialect_kinterbasdb(FBDialect):
         ):
             msg = str(e)
             return (
-                "Unable to complete network request to host" in msg
+                "Error writing data to the connection" in msg
+                or "Unable to complete network request to host" in msg
                 or "Invalid connection state" in msg
                 or "Invalid cursor state" in msg
                 or "connection shutdown" in msg