add ER_ERROR_ON_CLOSE(1023) to MySqlExceptionSorter

This commit is contained in:
DigitalSonic
2019-04-18 17:06:27 +08:00
parent 07bcb98c99
commit ce2e7a0179
@@ -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: