diff options
| -rw-r--r-- | doc/build/changelog/unreleased_13/4903.rst | 7 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/firebird/kinterbasdb.py | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/build/changelog/unreleased_13/4903.rst b/doc/build/changelog/unreleased_13/4903.rst new file mode 100644 index 000000000..d6d285096 --- /dev/null +++ b/doc/build/changelog/unreleased_13/4903.rst @@ -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. diff --git a/lib/sqlalchemy/dialects/firebird/kinterbasdb.py b/lib/sqlalchemy/dialects/firebird/kinterbasdb.py index 9880ee89f..3312aeeae 100644 --- a/lib/sqlalchemy/dialects/firebird/kinterbasdb.py +++ b/lib/sqlalchemy/dialects/firebird/kinterbasdb.py @@ -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 |
