mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql exception sorter
This commit is contained in:
@@ -55,9 +55,15 @@ public class MySqlExceptionSorter implements ExceptionSorter {
|
||||
break;
|
||||
}
|
||||
|
||||
// for oceanbase
|
||||
if (errorCode >= -10000 && errorCode <= -9000) {
|
||||
return true;
|
||||
}
|
||||
|
||||
String className = e.getClass().getName();
|
||||
if ("com.mysql.jdbc.CommunicationsException".equals(className)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
String message = e.getMessage();
|
||||
if (message != null && message.length() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user