discard mysql streaming resultSet close error connection

This commit is contained in:
高铁
2016-04-20 15:05:17 +08:00
parent 36722bc051
commit e035705219
@@ -77,6 +77,17 @@ public class MySqlExceptionSorter implements ExceptionSorter {
return true;
}
}
StackTraceElement[] stackTrace = e.getStackTrace();
for (int i = 0; i < stackTrace.length; ++i) {
StackTraceElement element = stackTrace[i];
if ("com.mysql.jdbc.RowDataDynamic".equals(element.getClassName()) //
&& "close".equals(element.getMethodName())
) {
return true;
}
}
return false;
}