New MySQL JDBC driver reports connection loss differently.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@811 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-08-19 21:18:58 +00:00
parent 636890a638
commit 3186c72bf9
@@ -1,5 +1,5 @@
//
// $Id: MySQLLiaison.java,v 1.4 2001/09/28 22:41:40 mdb Exp $
// $Id: MySQLLiaison.java,v 1.5 2002/08/19 21:18:58 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -46,6 +46,7 @@ public class MySQLLiaison implements DatabaseLiaison
String msg = sqe.getMessage();
return (msg != null &&
(msg.indexOf("Lost connection") != -1 ||
msg.indexOf("Communication link failure") != -1 ||
msg.indexOf("Broken pipe") != -1));
}