From 78434e037fa835db145666ae1cb7773e93e3d899 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 8 May 2010 15:22:10 -0400 Subject: [PATCH] - Added 'connection shutdown' to the list of exception strings which indicate a dropped connection. [ticket:1646] --- CHANGES | 3 +++ lib/sqlalchemy/dialects/firebird/kinterbasdb.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 6d4a2c1d10..5907f5dfc7 100644 --- a/CHANGES +++ b/CHANGES @@ -51,6 +51,9 @@ CHANGES passed via query string, so that it is properly interpreted by Kinterbasdb. [ticket:1779] + - Added 'connection shutdown' to the list of exception strings + which indicate a dropped connection. [ticket:1646] + - sqlsoup - the SqlSoup constructor accepts a `base` argument which specifies the base class to use for mapped classes, the default being diff --git a/lib/sqlalchemy/dialects/firebird/kinterbasdb.py b/lib/sqlalchemy/dialects/firebird/kinterbasdb.py index 82d1101a48..fc7b572013 100644 --- a/lib/sqlalchemy/dialects/firebird/kinterbasdb.py +++ b/lib/sqlalchemy/dialects/firebird/kinterbasdb.py @@ -144,7 +144,8 @@ class FBDialect_kinterbasdb(FBDialect): msg = str(e) return ('Unable to complete network request to host' in msg or 'Invalid connection state' in msg or - 'Invalid cursor state' in msg) + 'Invalid cursor state' in msg or + 'connection shutdown' in msg) else: return False -- 2.47.2