mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved MySqlExceptionSorter. support aliyun rds access denied error code.
This commit is contained in:
@@ -51,6 +51,9 @@ public class MySqlExceptionSorter implements ExceptionSorter {
|
||||
// Out-of-memory errors
|
||||
case 1037: // ER_OUTOFMEMORY
|
||||
case 1038: // ER_OUT_OF_SORTMEMORY
|
||||
// Access denied
|
||||
case 1142: // ER_TABLEACCESS_DENIED_ERROR
|
||||
case 1227: // ER_SPECIFIC_ACCESS_DENIED_ERROR
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user