mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add ER_ERROR_ON_CLOSE(1023) to MySqlExceptionSorter
This commit is contained in:
@@ -38,7 +38,7 @@ public class MySqlExceptionSorter implements ExceptionSorter {
|
||||
}
|
||||
|
||||
switch (errorCode) {
|
||||
// Communications Errors
|
||||
// Communications Errors
|
||||
case 1040: // ER_CON_COUNT_ERROR
|
||||
case 1042: // ER_BAD_HOST_ERROR
|
||||
case 1043: // ER_HANDSHAKE_ERROR
|
||||
@@ -46,21 +46,23 @@ public class MySqlExceptionSorter implements ExceptionSorter {
|
||||
case 1081: // ER_IPSOCK_ERROR
|
||||
case 1129: // ER_HOST_IS_BLOCKED
|
||||
case 1130: // ER_HOST_NOT_PRIVILEGED
|
||||
// Authentication Errors
|
||||
// Authentication Errors
|
||||
case 1045: // ER_ACCESS_DENIED_ERROR
|
||||
// Resource errors
|
||||
// Resource errors
|
||||
case 1004: // ER_CANT_CREATE_FILE
|
||||
case 1005: // ER_CANT_CREATE_TABLE
|
||||
case 1015: // ER_CANT_LOCK
|
||||
case 1021: // ER_DISK_FULL
|
||||
case 1041: // ER_OUT_OF_RESOURCES
|
||||
// Out-of-memory errors
|
||||
// Out-of-memory errors
|
||||
case 1037: // ER_OUTOFMEMORY
|
||||
case 1038: // ER_OUT_OF_SORTMEMORY
|
||||
// Access denied
|
||||
// Access denied
|
||||
case 1142: // ER_TABLEACCESS_DENIED_ERROR
|
||||
case 1227: // ER_SPECIFIC_ACCESS_DENIED_ERROR
|
||||
|
||||
case 1023: // ER_ERROR_ON_CLOSE
|
||||
|
||||
case 1290: // ER_OPTION_PREVENTS_STATEMENT
|
||||
return true;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user