From: Mike Bayer Date: Sat, 8 May 2010 19:22:10 +0000 (-0400) Subject: - Added 'connection shutdown' to the list of exception strings X-Git-Tag: rel_0_6_1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78434e037fa835db145666ae1cb7773e93e3d899;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Added 'connection shutdown' to the list of exception strings which indicate a dropped connection. [ticket:1646] --- 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