mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
discard mysql streaming resultSet close error connection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user