Thanks Michael, both the 2 approaches did the trick... :)
On 4/16/07, Michael Bayer <[EMAIL PROTECTED]> wrote: > > with firebird, the appropriate "database closed" exceptions need to > be added to its dialect's is_disconnect() method...someone needs to > submit a patch for that (you can create one based on the exception > youre getting, which would look like: > > def is_disconnect(self, e): > if isinstance(e, self.dbapi.OperationalError): > return 'Unable to complete network request to host' in > str(e) > > ). > I came to that function: ==================== def is_disconnect(self, e): if isinstance(e, self.dbapi.OperationalError): return 'Unable to complete network request to host' in str(e) and \ ('Error reading data from the connection' in str(e) or \ 'Error writing data to the connection' in str(e)) else: return False ==================== which is a little more specific than yours... Which one do you prefer ? Only evaluating "Unable do complete network..." is enough ? I don't have a decent diff/patch tool at my windows box, but I can send you a patch tonight (er... it is already night here). Thanks again... Roger --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---