Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rbmysql/error.rb
Views: 11765
# coding: ascii-8bit1# Copyright (C) 2003-2010 TOMITA Masahiro2# mailto:[email protected]34class RbMysql5class Error < StandardError6ERRNO = 078def self.define_error_class(prefix_re)9self.constants.each do |errname|10errname = errname.to_s11next unless errname =~ prefix_re12errno = self.const_get errname13excname = errname.sub(prefix_re,'').gsub(/(\A.|_.)([A-Z]+)/){$1+$2.downcase}.gsub(/_/,'')14klass = Class.new self15klass.const_set 'ERRNO', errno16self.const_set excname, klass17self::ERROR_MAP[errno] = klass18RbMysql::Error.const_set errname, errno19end20end2122attr_reader :sqlstate, :error2324def initialize(message, sqlstate='HY000')25@sqlstate = sqlstate26@error = message27super message28end2930def errno31self.class::ERRNO32end33end3435# server side error36class ServerError < Error37ERROR_MAP = {}3839ER_ERROR_FIRST = 100040ER_HASHCHK = 100041ER_NISAMCHK = 100142ER_NO = 100243ER_YES = 100344ER_CANT_CREATE_FILE = 100445ER_CANT_CREATE_TABLE = 100546ER_CANT_CREATE_DB = 100647ER_DB_CREATE_EXISTS = 100748ER_DB_DROP_EXISTS = 100849ER_DB_DROP_DELETE = 100950ER_DB_DROP_RMDIR = 101051ER_CANT_DELETE_FILE = 101152ER_CANT_FIND_SYSTEM_REC = 101253ER_CANT_GET_STAT = 101354ER_CANT_GET_WD = 101455ER_CANT_LOCK = 101556ER_CANT_OPEN_FILE = 101657ER_FILE_NOT_FOUND = 101758ER_CANT_READ_DIR = 101859ER_CANT_SET_WD = 101960ER_CHECKREAD = 102061ER_DISK_FULL = 102162ER_DUP_KEY = 102263ER_ERROR_ON_CLOSE = 102364ER_ERROR_ON_READ = 102465ER_ERROR_ON_RENAME = 102566ER_ERROR_ON_WRITE = 102667ER_FILE_USED = 102768ER_FILSORT_ABORT = 102869ER_FORM_NOT_FOUND = 102970ER_GET_ERRNO = 103071ER_ILLEGAL_HA = 103172ER_KEY_NOT_FOUND = 103273ER_NOT_FORM_FILE = 103374ER_NOT_KEYFILE = 103475ER_OLD_KEYFILE = 103576ER_OPEN_AS_READONLY = 103677ER_OUTOFMEMORY = 103778ER_OUT_OF_SORTMEMORY = 103879ER_UNEXPECTED_EOF = 103980ER_CON_COUNT_ERROR = 104081ER_OUT_OF_RESOURCES = 104182ER_BAD_HOST_ERROR = 104283ER_HANDSHAKE_ERROR = 104384ER_DBACCESS_DENIED_ERROR = 104485ER_ACCESS_DENIED_ERROR = 104586ER_NO_DB_ERROR = 104687ER_UNKNOWN_COM_ERROR = 104788ER_BAD_NULL_ERROR = 104889ER_BAD_DB_ERROR = 104990ER_TABLE_EXISTS_ERROR = 105091ER_BAD_TABLE_ERROR = 105192ER_NON_UNIQ_ERROR = 105293ER_SERVER_SHUTDOWN = 105394ER_BAD_FIELD_ERROR = 105495ER_WRONG_FIELD_WITH_GROUP = 105596ER_WRONG_GROUP_FIELD = 105697ER_WRONG_SUM_SELECT = 105798ER_WRONG_VALUE_COUNT = 105899ER_TOO_LONG_IDENT = 1059100ER_DUP_FIELDNAME = 1060101ER_DUP_KEYNAME = 1061102ER_DUP_ENTRY = 1062103ER_WRONG_FIELD_SPEC = 1063104ER_PARSE_ERROR = 1064105ER_EMPTY_QUERY = 1065106ER_NONUNIQ_TABLE = 1066107ER_INVALID_DEFAULT = 1067108ER_MULTIPLE_PRI_KEY = 1068109ER_TOO_MANY_KEYS = 1069110ER_TOO_MANY_KEY_PARTS = 1070111ER_TOO_LONG_KEY = 1071112ER_KEY_COLUMN_DOES_NOT_EXITS = 1072113ER_BLOB_USED_AS_KEY = 1073114ER_TOO_BIG_FIELDLENGTH = 1074115ER_WRONG_AUTO_KEY = 1075116ER_READY = 1076117ER_NORMAL_SHUTDOWN = 1077118ER_GOT_SIGNAL = 1078119ER_SHUTDOWN_COMPLETE = 1079120ER_FORCING_CLOSE = 1080121ER_IPSOCK_ERROR = 1081122ER_NO_SUCH_INDEX = 1082123ER_WRONG_FIELD_TERMINATORS = 1083124ER_BLOBS_AND_NO_TERMINATED = 1084125ER_TEXTFILE_NOT_READABLE = 1085126ER_FILE_EXISTS_ERROR = 1086127ER_LOAD_INFO = 1087128ER_ALTER_INFO = 1088129ER_WRONG_SUB_KEY = 1089130ER_CANT_REMOVE_ALL_FIELDS = 1090131ER_CANT_DROP_FIELD_OR_KEY = 1091132ER_INSERT_INFO = 1092133ER_UPDATE_TABLE_USED = 1093134ER_NO_SUCH_THREAD = 1094135ER_KILL_DENIED_ERROR = 1095136ER_NO_TABLES_USED = 1096137ER_TOO_BIG_SET = 1097138ER_NO_UNIQUE_LOGFILE = 1098139ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099140ER_TABLE_NOT_LOCKED = 1100141ER_BLOB_CANT_HAVE_DEFAULT = 1101142ER_WRONG_DB_NAME = 1102143ER_WRONG_TABLE_NAME = 1103144ER_TOO_BIG_SELECT = 1104145ER_UNKNOWN_ERROR = 1105146ER_UNKNOWN_PROCEDURE = 1106147ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107148ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108149ER_UNKNOWN_TABLE = 1109150ER_FIELD_SPECIFIED_TWICE = 1110151ER_INVALID_GROUP_FUNC_USE = 1111152ER_UNSUPPORTED_EXTENSION = 1112153ER_TABLE_MUST_HAVE_COLUMNS = 1113154ER_RECORD_FILE_FULL = 1114155ER_UNKNOWN_CHARACTER_SET = 1115156ER_TOO_MANY_TABLES = 1116157ER_TOO_MANY_FIELDS = 1117158ER_TOO_BIG_ROWSIZE = 1118159ER_STACK_OVERRUN = 1119160ER_WRONG_OUTER_JOIN = 1120161ER_NULL_COLUMN_IN_INDEX = 1121162ER_CANT_FIND_UDF = 1122163ER_CANT_INITIALIZE_UDF = 1123164ER_UDF_NO_PATHS = 1124165ER_UDF_EXISTS = 1125166ER_CANT_OPEN_LIBRARY = 1126167ER_CANT_FIND_DL_ENTRY = 1127168ER_FUNCTION_NOT_DEFINED = 1128169ER_HOST_IS_BLOCKED = 1129170ER_HOST_NOT_PRIVILEGED = 1130171ER_PASSWORD_ANONYMOUS_USER = 1131172ER_PASSWORD_NOT_ALLOWED = 1132173ER_PASSWORD_NO_MATCH = 1133174ER_UPDATE_INFO = 1134175ER_CANT_CREATE_THREAD = 1135176ER_WRONG_VALUE_COUNT_ON_ROW = 1136177ER_CANT_REOPEN_TABLE = 1137178ER_INVALID_USE_OF_NULL = 1138179ER_REGEXP_ERROR = 1139180ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140181ER_NONEXISTING_GRANT = 1141182ER_TABLEACCESS_DENIED_ERROR = 1142183ER_COLUMNACCESS_DENIED_ERROR = 1143184ER_ILLEGAL_GRANT_FOR_TABLE = 1144185ER_GRANT_WRONG_HOST_OR_USER = 1145186ER_NO_SUCH_TABLE = 1146187ER_NONEXISTING_TABLE_GRANT = 1147188ER_NOT_ALLOWED_COMMAND = 1148189ER_SYNTAX_ERROR = 1149190ER_DELAYED_CANT_CHANGE_LOCK = 1150191ER_TOO_MANY_DELAYED_THREADS = 1151192ER_ABORTING_CONNECTION = 1152193ER_NET_PACKET_TOO_LARGE = 1153194ER_NET_READ_ERROR_FROM_PIPE = 1154195ER_NET_FCNTL_ERROR = 1155196ER_NET_PACKETS_OUT_OF_ORDER = 1156197ER_NET_UNCOMPRESS_ERROR = 1157198ER_NET_READ_ERROR = 1158199ER_NET_READ_INTERRUPTED = 1159200ER_NET_ERROR_ON_WRITE = 1160201ER_NET_WRITE_INTERRUPTED = 1161202ER_TOO_LONG_STRING = 1162203ER_TABLE_CANT_HANDLE_BLOB = 1163204ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164205ER_DELAYED_INSERT_TABLE_LOCKED = 1165206ER_WRONG_COLUMN_NAME = 1166207ER_WRONG_KEY_COLUMN = 1167208ER_WRONG_MRG_TABLE = 1168209ER_DUP_UNIQUE = 1169210ER_BLOB_KEY_WITHOUT_LENGTH = 1170211ER_PRIMARY_CANT_HAVE_NULL = 1171212ER_TOO_MANY_ROWS = 1172213ER_REQUIRES_PRIMARY_KEY = 1173214ER_NO_RAID_COMPILED = 1174215ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175216ER_KEY_DOES_NOT_EXITS = 1176217ER_CHECK_NO_SUCH_TABLE = 1177218ER_CHECK_NOT_IMPLEMENTED = 1178219ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179220ER_ERROR_DURING_COMMIT = 1180221ER_ERROR_DURING_ROLLBACK = 1181222ER_ERROR_DURING_FLUSH_LOGS = 1182223ER_ERROR_DURING_CHECKPOINT = 1183224ER_NEW_ABORTING_CONNECTION = 1184225ER_DUMP_NOT_IMPLEMENTED = 1185226ER_FLUSH_MASTER_BINLOG_CLOSED = 1186227ER_INDEX_REBUILD = 1187228ER_MASTER = 1188229ER_MASTER_NET_READ = 1189230ER_MASTER_NET_WRITE = 1190231ER_FT_MATCHING_KEY_NOT_FOUND = 1191232ER_LOCK_OR_ACTIVE_TRANSACTION = 1192233ER_UNKNOWN_SYSTEM_VARIABLE = 1193234ER_CRASHED_ON_USAGE = 1194235ER_CRASHED_ON_REPAIR = 1195236ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196237ER_TRANS_CACHE_FULL = 1197238ER_SLAVE_MUST_STOP = 1198239ER_SLAVE_NOT_RUNNING = 1199240ER_BAD_SLAVE = 1200241ER_MASTER_INFO = 1201242ER_SLAVE_THREAD = 1202243ER_TOO_MANY_USER_CONNECTIONS = 1203244ER_SET_CONSTANTS_ONLY = 1204245ER_LOCK_WAIT_TIMEOUT = 1205246ER_LOCK_TABLE_FULL = 1206247ER_READ_ONLY_TRANSACTION = 1207248ER_DROP_DB_WITH_READ_LOCK = 1208249ER_CREATE_DB_WITH_READ_LOCK = 1209250ER_WRONG_ARGUMENTS = 1210251ER_NO_PERMISSION_TO_CREATE_USER = 1211252ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212253ER_LOCK_DEADLOCK = 1213254ER_TABLE_CANT_HANDLE_FT = 1214255ER_CANNOT_ADD_FOREIGN = 1215256ER_NO_REFERENCED_ROW = 1216257ER_ROW_IS_REFERENCED = 1217258ER_CONNECT_TO_MASTER = 1218259ER_QUERY_ON_MASTER = 1219260ER_ERROR_WHEN_EXECUTING_COMMAND = 1220261ER_WRONG_USAGE = 1221262ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222263ER_CANT_UPDATE_WITH_READLOCK = 1223264ER_MIXING_NOT_ALLOWED = 1224265ER_DUP_ARGUMENT = 1225266ER_USER_LIMIT_REACHED = 1226267ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227268ER_LOCAL_VARIABLE = 1228269ER_GLOBAL_VARIABLE = 1229270ER_NO_DEFAULT = 1230271ER_WRONG_VALUE_FOR_VAR = 1231272ER_WRONG_TYPE_FOR_VAR = 1232273ER_VAR_CANT_BE_READ = 1233274ER_CANT_USE_OPTION_HERE = 1234275ER_NOT_SUPPORTED_YET = 1235276ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236277ER_SLAVE_IGNORED_TABLE = 1237278ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238279ER_WRONG_FK_DEF = 1239280ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240281ER_OPERAND_COLUMNS = 1241282ER_SUBQUERY_NO_1_ROW = 1242283ER_UNKNOWN_STMT_HANDLER = 1243284ER_CORRUPT_HELP_DB = 1244285ER_CYCLIC_REFERENCE = 1245286ER_AUTO_CONVERT = 1246287ER_ILLEGAL_REFERENCE = 1247288ER_DERIVED_MUST_HAVE_ALIAS = 1248289ER_SELECT_REDUCED = 1249290ER_TABLENAME_NOT_ALLOWED_HERE = 1250291ER_NOT_SUPPORTED_AUTH_MODE = 1251292ER_SPATIAL_CANT_HAVE_NULL = 1252293ER_COLLATION_CHARSET_MISMATCH = 1253294ER_SLAVE_WAS_RUNNING = 1254295ER_SLAVE_WAS_NOT_RUNNING = 1255296ER_TOO_BIG_FOR_UNCOMPRESS = 1256297ER_ZLIB_Z_MEM_ERROR = 1257298ER_ZLIB_Z_BUF_ERROR = 1258299ER_ZLIB_Z_DATA_ERROR = 1259300ER_CUT_VALUE_GROUP_CONCAT = 1260301ER_WARN_TOO_FEW_RECORDS = 1261302ER_WARN_TOO_MANY_RECORDS = 1262303ER_WARN_NULL_TO_NOTNULL = 1263304ER_WARN_DATA_OUT_OF_RANGE = 1264305WARN_DATA_TRUNCATED = 1265306ER_WARN_USING_OTHER_HANDLER = 1266307ER_CANT_AGGREGATE_2COLLATIONS = 1267308ER_DROP_USER = 1268309ER_REVOKE_GRANTS = 1269310ER_CANT_AGGREGATE_3COLLATIONS = 1270311ER_CANT_AGGREGATE_NCOLLATIONS = 1271312ER_VARIABLE_IS_NOT_STRUCT = 1272313ER_UNKNOWN_COLLATION = 1273314ER_SLAVE_IGNORED_SSL_PARAMS = 1274315ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275316ER_WARN_FIELD_RESOLVED = 1276317ER_BAD_SLAVE_UNTIL_COND = 1277318ER_MISSING_SKIP_SLAVE = 1278319ER_UNTIL_COND_IGNORED = 1279320ER_WRONG_NAME_FOR_INDEX = 1280321ER_WRONG_NAME_FOR_CATALOG = 1281322ER_WARN_QC_RESIZE = 1282323ER_BAD_FT_COLUMN = 1283324ER_UNKNOWN_KEY_CACHE = 1284325ER_WARN_HOSTNAME_WONT_WORK = 1285326ER_UNKNOWN_STORAGE_ENGINE = 1286327ER_WARN_DEPRECATED_SYNTAX = 1287328ER_NON_UPDATABLE_TABLE = 1288329ER_FEATURE_DISABLED = 1289330ER_OPTION_PREVENTS_STATEMENT = 1290331ER_DUPLICATED_VALUE_IN_TYPE = 1291332ER_TRUNCATED_WRONG_VALUE = 1292333ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293334ER_INVALID_ON_UPDATE = 1294335ER_UNSUPPORTED_PS = 1295336ER_GET_ERRMSG = 1296337ER_GET_TEMPORARY_ERRMSG = 1297338ER_UNKNOWN_TIME_ZONE = 1298339ER_WARN_INVALID_TIMESTAMP = 1299340ER_INVALID_CHARACTER_STRING = 1300341ER_WARN_ALLOWED_PACKET_OVERFLOWED = 1301342ER_CONFLICTING_DECLARATIONS = 1302343ER_SP_NO_RECURSIVE_CREATE = 1303344ER_SP_ALREADY_EXISTS = 1304345ER_SP_DOES_NOT_EXIST = 1305346ER_SP_DROP_FAILED = 1306347ER_SP_STORE_FAILED = 1307348ER_SP_LILABEL_MISMATCH = 1308349ER_SP_LABEL_REDEFINE = 1309350ER_SP_LABEL_MISMATCH = 1310351ER_SP_UNINIT_VAR = 1311352ER_SP_BADSELECT = 1312353ER_SP_BADRETURN = 1313354ER_SP_BADSTATEMENT = 1314355ER_UPDATE_LOG_DEPRECATED_IGNORED = 1315356ER_UPDATE_LOG_DEPRECATED_TRANSLATED = 1316357ER_QUERY_INTERRUPTED = 1317358ER_SP_WRONG_NO_OF_ARGS = 1318359ER_SP_COND_MISMATCH = 1319360ER_SP_NORETURN = 1320361ER_SP_NORETURNEND = 1321362ER_SP_BAD_CURSOR_QUERY = 1322363ER_SP_BAD_CURSOR_SELECT = 1323364ER_SP_CURSOR_MISMATCH = 1324365ER_SP_CURSOR_ALREADY_OPEN = 1325366ER_SP_CURSOR_NOT_OPEN = 1326367ER_SP_UNDECLARED_VAR = 1327368ER_SP_WRONG_NO_OF_FETCH_ARGS = 1328369ER_SP_FETCH_NO_DATA = 1329370ER_SP_DUP_PARAM = 1330371ER_SP_DUP_VAR = 1331372ER_SP_DUP_COND = 1332373ER_SP_DUP_CURS = 1333374ER_SP_CANT_ALTER = 1334375ER_SP_SUBSELECT_NYI = 1335376ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG = 1336377ER_SP_VARCOND_AFTER_CURSHNDLR = 1337378ER_SP_CURSOR_AFTER_HANDLER = 1338379ER_SP_CASE_NOT_FOUND = 1339380ER_FPARSER_TOO_BIG_FILE = 1340381ER_FPARSER_BAD_HEADER = 1341382ER_FPARSER_EOF_IN_COMMENT = 1342383ER_FPARSER_ERROR_IN_PARAMETER = 1343384ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER = 1344385ER_VIEW_NO_EXPLAIN = 1345386ER_FRM_UNKNOWN_TYPE = 1346387ER_WRONG_OBJECT = 1347388ER_NONUPDATEABLE_COLUMN = 1348389ER_VIEW_SELECT_DERIVED = 1349390ER_VIEW_SELECT_CLAUSE = 1350391ER_VIEW_SELECT_VARIABLE = 1351392ER_VIEW_SELECT_TMPTABLE = 1352393ER_VIEW_WRONG_LIST = 1353394ER_WARN_VIEW_MERGE = 1354395ER_WARN_VIEW_WITHOUT_KEY = 1355396ER_VIEW_INVALID = 1356397ER_SP_NO_DROP_SP = 1357398ER_SP_GOTO_IN_HNDLR = 1358399ER_TRG_ALREADY_EXISTS = 1359400ER_TRG_DOES_NOT_EXIST = 1360401ER_TRG_ON_VIEW_OR_TEMP_TABLE = 1361402ER_TRG_CANT_CHANGE_ROW = 1362403ER_TRG_NO_SUCH_ROW_IN_TRG = 1363404ER_NO_DEFAULT_FOR_FIELD = 1364405ER_DIVISION_BY_ZERO = 1365406ER_TRUNCATED_WRONG_VALUE_FOR_FIELD = 1366407ER_ILLEGAL_VALUE_FOR_TYPE = 1367408ER_VIEW_NONUPD_CHECK = 1368409ER_VIEW_CHECK_FAILED = 1369410ER_PROCACCESS_DENIED_ERROR = 1370411ER_RELAY_LOG_FAIL = 1371412ER_PASSWD_LENGTH = 1372413ER_UNKNOWN_TARGET_BINLOG = 1373414ER_IO_ERR_LOG_INDEX_READ = 1374415ER_BINLOG_PURGE_PROHIBITED = 1375416ER_FSEEK_FAIL = 1376417ER_BINLOG_PURGE_FATAL_ERR = 1377418ER_LOG_IN_USE = 1378419ER_LOG_PURGE_UNKNOWN_ERR = 1379420ER_RELAY_LOG_INIT = 1380421ER_NO_BINARY_LOGGING = 1381422ER_RESERVED_SYNTAX = 1382423ER_WSAS_FAILED = 1383424ER_DIFF_GROUPS_PROC = 1384425ER_NO_GROUP_FOR_PROC = 1385426ER_ORDER_WITH_PROC = 1386427ER_LOGGING_PROHIBIT_CHANGING_OF = 1387428ER_NO_FILE_MAPPING = 1388429ER_WRONG_MAGIC = 1389430ER_PS_MANY_PARAM = 1390431ER_KEY_PART_0 = 1391432ER_VIEW_CHECKSUM = 1392433ER_VIEW_MULTIUPDATE = 1393434ER_VIEW_NO_INSERT_FIELD_LIST = 1394435ER_VIEW_DELETE_MERGE_VIEW = 1395436ER_CANNOT_USER = 1396437ER_XAER_NOTA = 1397438ER_XAER_INVAL = 1398439ER_XAER_RMFAIL = 1399440ER_XAER_OUTSIDE = 1400441ER_XAER_RMERR = 1401442ER_XA_RBROLLBACK = 1402443ER_NONEXISTING_PROC_GRANT = 1403444ER_PROC_AUTO_GRANT_FAIL = 1404445ER_PROC_AUTO_REVOKE_FAIL = 1405446ER_DATA_TOO_LONG = 1406447ER_SP_BAD_SQLSTATE = 1407448ER_STARTUP = 1408449ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR = 1409450ER_CANT_CREATE_USER_WITH_GRANT = 1410451ER_WRONG_VALUE_FOR_TYPE = 1411452ER_TABLE_DEF_CHANGED = 1412453ER_SP_DUP_HANDLER = 1413454ER_SP_NOT_VAR_ARG = 1414455ER_SP_NO_RETSET = 1415456ER_CANT_CREATE_GEOMETRY_OBJECT = 1416457ER_FAILED_ROUTINE_BREAK_BINLOG = 1417458ER_BINLOG_UNSAFE_ROUTINE = 1418459ER_BINLOG_CREATE_ROUTINE_NEED_SUPER = 1419460ER_EXEC_STMT_WITH_OPEN_CURSOR = 1420461ER_STMT_HAS_NO_OPEN_CURSOR = 1421462ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG = 1422463ER_NO_DEFAULT_FOR_VIEW_FIELD = 1423464ER_SP_NO_RECURSION = 1424465ER_TOO_BIG_SCALE = 1425466ER_TOO_BIG_PRECISION = 1426467ER_M_BIGGER_THAN_D = 1427468ER_WRONG_LOCK_OF_SYSTEM_TABLE = 1428469ER_CONNECT_TO_FOREIGN_DATA_SOURCE = 1429470ER_QUERY_ON_FOREIGN_DATA_SOURCE = 1430471ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST = 1431472ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE = 1432473ER_FOREIGN_DATA_STRING_INVALID = 1433474ER_CANT_CREATE_FEDERATED_TABLE = 1434475ER_TRG_IN_WRONG_SCHEMA = 1435476ER_STACK_OVERRUN_NEED_MORE = 1436477ER_TOO_LONG_BODY = 1437478ER_WARN_CANT_DROP_DEFAULT_KEYCACHE = 1438479ER_TOO_BIG_DISPLAYWIDTH = 1439480ER_XAER_DUPID = 1440481ER_DATETIME_FUNCTION_OVERFLOW = 1441482ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG = 1442483ER_VIEW_PREVENT_UPDATE = 1443484ER_PS_NO_RECURSION = 1444485ER_SP_CANT_SET_AUTOCOMMIT = 1445486ER_MALFORMED_DEFINER = 1446487ER_VIEW_FRM_NO_USER = 1447488ER_VIEW_OTHER_USER = 1448489ER_NO_SUCH_USER = 1449490ER_FORBID_SCHEMA_CHANGE = 1450491ER_ROW_IS_REFERENCED_2 = 1451492ER_NO_REFERENCED_ROW_2 = 1452493ER_SP_BAD_VAR_SHADOW = 1453494ER_TRG_NO_DEFINER = 1454495ER_OLD_FILE_FORMAT = 1455496ER_SP_RECURSION_LIMIT = 1456497ER_SP_PROC_TABLE_CORRUPT = 1457498ER_SP_WRONG_NAME = 1458499ER_TABLE_NEEDS_UPGRADE = 1459500ER_SP_NO_AGGREGATE = 1460501ER_MAX_PREPARED_STMT_COUNT_REACHED = 1461502ER_VIEW_RECURSIVE = 1462503ER_NON_GROUPING_FIELD_USED = 1463504ER_TABLE_CANT_HANDLE_SPKEYS = 1464505ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA = 1465506ER_REMOVED_SPACES = 1466507ER_AUTOINC_READ_FAILED = 1467508ER_USERNAME = 1468509ER_HOSTNAME = 1469510ER_WRONG_STRING_LENGTH = 1470511ER_NON_INSERTABLE_TABLE = 1471512ER_ADMIN_WRONG_MRG_TABLE = 1472513ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT = 1473514ER_NAME_BECOMES_EMPTY = 1474515ER_AMBIGUOUS_FIELD_TERM = 1475516ER_FOREIGN_SERVER_EXISTS = 1476517ER_FOREIGN_SERVER_DOESNT_EXIST = 1477518ER_ILLEGAL_HA_CREATE_OPTION = 1478519ER_PARTITION_REQUIRES_VALUES_ERROR = 1479520ER_PARTITION_WRONG_VALUES_ERROR = 1480521ER_PARTITION_MAXVALUE_ERROR = 1481522ER_PARTITION_SUBPARTITION_ERROR = 1482523ER_PARTITION_SUBPART_MIX_ERROR = 1483524ER_PARTITION_WRONG_NO_PART_ERROR = 1484525ER_PARTITION_WRONG_NO_SUBPART_ERROR = 1485526ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR = 1486527ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR = 1487528ER_FIELD_NOT_FOUND_PART_ERROR = 1488529ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR = 1489530ER_INCONSISTENT_PARTITION_INFO_ERROR = 1490531ER_PARTITION_FUNC_NOT_ALLOWED_ERROR = 1491532ER_PARTITIONS_MUST_BE_DEFINED_ERROR = 1492533ER_RANGE_NOT_INCREASING_ERROR = 1493534ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR = 1494535ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR = 1495536ER_PARTITION_ENTRY_ERROR = 1496537ER_MIX_HANDLER_ERROR = 1497538ER_PARTITION_NOT_DEFINED_ERROR = 1498539ER_TOO_MANY_PARTITIONS_ERROR = 1499540ER_SUBPARTITION_ERROR = 1500541ER_CANT_CREATE_HANDLER_FILE = 1501542ER_BLOB_FIELD_IN_PART_FUNC_ERROR = 1502543ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF = 1503544ER_NO_PARTS_ERROR = 1504545ER_PARTITION_MGMT_ON_NONPARTITIONED = 1505546ER_FOREIGN_KEY_ON_PARTITIONED = 1506547ER_DROP_PARTITION_NON_EXISTENT = 1507548ER_DROP_LAST_PARTITION = 1508549ER_COALESCE_ONLY_ON_HASH_PARTITION = 1509550ER_REORG_HASH_ONLY_ON_SAME_NO = 1510551ER_REORG_NO_PARAM_ERROR = 1511552ER_ONLY_ON_RANGE_LIST_PARTITION = 1512553ER_ADD_PARTITION_SUBPART_ERROR = 1513554ER_ADD_PARTITION_NO_NEW_PARTITION = 1514555ER_COALESCE_PARTITION_NO_PARTITION = 1515556ER_REORG_PARTITION_NOT_EXIST = 1516557ER_SAME_NAME_PARTITION = 1517558ER_NO_BINLOG_ERROR = 1518559ER_CONSECUTIVE_REORG_PARTITIONS = 1519560ER_REORG_OUTSIDE_RANGE = 1520561ER_PARTITION_FUNCTION_FAILURE = 1521562ER_PART_STATE_ERROR = 1522563ER_LIMITED_PART_RANGE = 1523564ER_PLUGIN_IS_NOT_LOADED = 1524565ER_WRONG_VALUE = 1525566ER_NO_PARTITION_FOR_GIVEN_VALUE = 1526567ER_FILEGROUP_OPTION_ONLY_ONCE = 1527568ER_CREATE_FILEGROUP_FAILED = 1528569ER_DROP_FILEGROUP_FAILED = 1529570ER_TABLESPACE_AUTO_EXTEND_ERROR = 1530571ER_WRONG_SIZE_NUMBER = 1531572ER_SIZE_OVERFLOW_ERROR = 1532573ER_ALTER_FILEGROUP_FAILED = 1533574ER_BINLOG_ROW_LOGGING_FAILED = 1534575ER_BINLOG_ROW_WRONG_TABLE_DEF = 1535576ER_BINLOG_ROW_RBR_TO_SBR = 1536577ER_EVENT_ALREADY_EXISTS = 1537578ER_EVENT_STORE_FAILED = 1538579ER_EVENT_DOES_NOT_EXIST = 1539580ER_EVENT_CANT_ALTER = 1540581ER_EVENT_DROP_FAILED = 1541582ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG = 1542583ER_EVENT_ENDS_BEFORE_STARTS = 1543584ER_EVENT_EXEC_TIME_IN_THE_PAST = 1544585ER_EVENT_OPEN_TABLE_FAILED = 1545586ER_EVENT_NEITHER_M_EXPR_NOR_M_AT = 1546587ER_COL_COUNT_DOESNT_MATCH_CORRUPTED = 1547588ER_OBSOLETE_COL_COUNT_DOESNT_MATCH_CORRUPTED = 1547589ER_CANNOT_LOAD_FROM_TABLE = 1548590ER_OBSOLETE_CANNOT_LOAD_FROM_TABLE = 1548591ER_EVENT_CANNOT_DELETE = 1549592ER_EVENT_COMPILE_ERROR = 1550593ER_EVENT_SAME_NAME = 1551594ER_EVENT_DATA_TOO_LONG = 1552595ER_DROP_INDEX_FK = 1553596ER_WARN_DEPRECATED_SYNTAX_WITH_VER = 1554597ER_CANT_WRITE_LOCK_LOG_TABLE = 1555598ER_CANT_LOCK_LOG_TABLE = 1556599ER_FOREIGN_DUPLICATE_KEY = 1557600ER_FOREIGN_DUPLICATE_KEY_OLD_UNUSED = 1557601ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE = 1558602ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR = 1559603ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1560604ER_NDB_CANT_SWITCH_BINLOG_FORMAT = 1561605ER_PARTITION_NO_TEMPORARY = 1562606ER_PARTITION_CONST_DOMAIN_ERROR = 1563607ER_PARTITION_FUNCTION_IS_NOT_ALLOWED = 1564608ER_DDL_LOG_ERROR = 1565609ER_NULL_IN_VALUES_LESS_THAN = 1566610ER_WRONG_PARTITION_NAME = 1567611ER_CANT_CHANGE_TX_ISOLATION = 1568612ER_CANT_CHANGE_TX_CHARACTERISTICS = 1568613ER_DUP_ENTRY_AUTOINCREMENT_CASE = 1569614ER_EVENT_MODIFY_QUEUE_ERROR = 1570615ER_EVENT_SET_VAR_ERROR = 1571616ER_PARTITION_MERGE_ERROR = 1572617ER_CANT_ACTIVATE_LOG = 1573618ER_RBR_NOT_AVAILABLE = 1574619ER_BASE64_DECODE_ERROR = 1575620ER_EVENT_RECURSION_FORBIDDEN = 1576621ER_EVENTS_DB_ERROR = 1577622ER_ONLY_INTEGERS_ALLOWED = 1578623ER_UNSUPORTED_LOG_ENGINE = 1579624ER_BAD_LOG_STATEMENT = 1580625ER_CANT_RENAME_LOG_TABLE = 1581626ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT = 1582627ER_WRONG_PARAMETERS_TO_NATIVE_FCT = 1583628ER_WRONG_PARAMETERS_TO_STORED_FCT = 1584629ER_NATIVE_FCT_NAME_COLLISION = 1585630ER_DUP_ENTRY_WITH_KEY_NAME = 1586631ER_BINLOG_PURGE_EMFILE = 1587632ER_EVENT_CANNOT_CREATE_IN_THE_PAST = 1588633ER_EVENT_CANNOT_ALTER_IN_THE_PAST = 1589634ER_SLAVE_INCIDENT = 1590635ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT = 1591636ER_BINLOG_UNSAFE_STATEMENT = 1592637ER_SLAVE_FATAL_ERROR = 1593638ER_SLAVE_RELAY_LOG_READ_FAILURE = 1594639ER_SLAVE_RELAY_LOG_WRITE_FAILURE = 1595640ER_SLAVE_CREATE_EVENT_FAILURE = 1596641ER_SLAVE_MASTER_COM_FAILURE = 1597642ER_BINLOG_LOGGING_IMPOSSIBLE = 1598643ER_VIEW_NO_CREATION_CTX = 1599644ER_VIEW_INVALID_CREATION_CTX = 1600645ER_SR_INVALID_CREATION_CTX = 1601646ER_TRG_CORRUPTED_FILE = 1602647ER_TRG_NO_CREATION_CTX = 1603648ER_TRG_INVALID_CREATION_CTX = 1604649ER_EVENT_INVALID_CREATION_CTX = 1605650ER_TRG_CANT_OPEN_TABLE = 1606651ER_CANT_CREATE_SROUTINE = 1607652ER_NEVER_USED = 1608653ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT = 1609654ER_SLAVE_CORRUPT_EVENT = 1610655ER_LOAD_DATA_INVALID_COLUMN = 1611656ER_LOG_PURGE_NO_FILE = 1612657ER_XA_RBTIMEOUT = 1613658ER_XA_RBDEADLOCK = 1614659ER_NEED_REPREPARE = 1615660ER_DELAYED_NOT_SUPPORTED = 1616661WARN_NO_MASTER_INFO = 1617662WARN_OPTION_IGNORED = 1618663WARN_PLUGIN_DELETE_BUILTIN = 1619664WARN_PLUGIN_BUSY = 1620665ER_VARIABLE_IS_READONLY = 1621666ER_WARN_ENGINE_TRANSACTION_ROLLBACK = 1622667ER_SLAVE_HEARTBEAT_FAILURE = 1623668ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624669ER_NDB_REPLICATION_SCHEMA_ERROR = 1625670ER_CONFLICT_FN_PARSE_ERROR = 1626671ER_EXCEPTIONS_WRITE_ERROR = 1627672ER_TOO_LONG_TABLE_COMMENT = 1628673ER_TOO_LONG_FIELD_COMMENT = 1629674ER_FUNC_INEXISTENT_NAME_COLLISION = 1630675ER_DATABASE_NAME = 1631676ER_TABLE_NAME = 1632677ER_PARTITION_NAME = 1633678ER_SUBPARTITION_NAME = 1634679ER_TEMPORARY_NAME = 1635680ER_RENAMED_NAME = 1636681ER_TOO_MANY_CONCURRENT_TRXS = 1637682WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED = 1638683ER_DEBUG_SYNC_TIMEOUT = 1639684ER_DEBUG_SYNC_HIT_LIMIT = 1640685ER_DUP_SIGNAL_SET = 1641686ER_SIGNAL_WARN = 1642687ER_SIGNAL_NOT_FOUND = 1643688ER_SIGNAL_EXCEPTION = 1644689ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER = 1645690ER_SIGNAL_BAD_CONDITION_TYPE = 1646691WARN_COND_ITEM_TRUNCATED = 1647692ER_COND_ITEM_TOO_LONG = 1648693ER_UNKNOWN_LOCALE = 1649694ER_SLAVE_IGNORE_SERVER_IDS = 1650695ER_QUERY_CACHE_DISABLED = 1651696ER_SAME_NAME_PARTITION_FIELD = 1652697ER_PARTITION_COLUMN_LIST_ERROR = 1653698ER_WRONG_TYPE_COLUMN_VALUE_ERROR = 1654699ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR = 1655700ER_MAXVALUE_IN_VALUES_IN = 1656701ER_TOO_MANY_VALUES_ERROR = 1657702ER_ROW_SINGLE_PARTITION_FIELD_ERROR = 1658703ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD = 1659704ER_PARTITION_FIELDS_TOO_LONG = 1660705ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE = 1661706ER_BINLOG_ROW_MODE_AND_STMT_ENGINE = 1662707ER_BINLOG_UNSAFE_AND_STMT_ENGINE = 1663708ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE = 1664709ER_BINLOG_STMT_MODE_AND_ROW_ENGINE = 1665710ER_BINLOG_ROW_INJECTION_AND_STMT_MODE = 1666711ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1667712ER_BINLOG_UNSAFE_LIMIT = 1668713ER_BINLOG_UNSAFE_INSERT_DELAYED = 1669714ER_BINLOG_UNSAFE_SYSTEM_TABLE = 1670715ER_BINLOG_UNSAFE_AUTOINC_COLUMNS = 1671716ER_BINLOG_UNSAFE_UDF = 1672717ER_BINLOG_UNSAFE_SYSTEM_VARIABLE = 1673718ER_BINLOG_UNSAFE_SYSTEM_FUNCTION = 1674719ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS = 1675720ER_MESSAGE_AND_STATEMENT = 1676721ER_SLAVE_CONVERSION_FAILED = 1677722ER_SLAVE_CANT_CREATE_CONVERSION = 1678723ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1679724ER_PATH_LENGTH = 1680725ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT = 1681726ER_WRONG_NATIVE_TABLE_STRUCTURE = 1682727ER_WRONG_PERFSCHEMA_USAGE = 1683728ER_WARN_I_S_SKIPPED_TABLE = 1684729ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1685730ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1686731ER_SPATIAL_MUST_HAVE_GEOM_COL = 1687732ER_TOO_LONG_INDEX_COMMENT = 1688733ER_LOCK_ABORTED = 1689734ER_DATA_OUT_OF_RANGE = 1690735ER_WRONG_SPVAR_TYPE_IN_LIMIT = 1691736ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1692737ER_BINLOG_UNSAFE_MIXED_STATEMENT = 1693738ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1694739ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1695740ER_FAILED_READ_FROM_PAR_FILE = 1696741ER_VALUES_IS_NOT_INT_TYPE_ERROR = 1697742ER_ACCESS_DENIED_NO_PASSWORD_ERROR = 1698743ER_SET_PASSWORD_AUTH_PLUGIN = 1699744ER_GRANT_PLUGIN_USER_EXISTS = 1700745ER_TRUNCATE_ILLEGAL_FK = 1701746ER_PLUGIN_IS_PERMANENT = 1702747ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703748ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704749ER_STMT_CACHE_FULL = 1705750ER_MULTI_UPDATE_KEY_CONFLICT = 1706751ER_TABLE_NEEDS_REBUILD = 1707752WARN_OPTION_BELOW_LIMIT = 1708753ER_INDEX_COLUMN_TOO_LONG = 1709754ER_ERROR_IN_TRIGGER_BODY = 1710755ER_ERROR_IN_UNKNOWN_TRIGGER_BODY = 1711756ER_INDEX_CORRUPT = 1712757ER_UNDO_RECORD_TOO_BIG = 1713758ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT = 1714759ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE = 1715760ER_BINLOG_UNSAFE_REPLACE_SELECT = 1716761ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT = 1717762ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT = 1718763ER_BINLOG_UNSAFE_UPDATE_IGNORE = 1719764ER_PLUGIN_NO_UNINSTALL = 1720765ER_PLUGIN_NO_INSTALL = 1721766ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT = 1722767ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC = 1723768ER_BINLOG_UNSAFE_INSERT_TWO_KEYS = 1724769ER_TABLE_IN_FK_CHECK = 1725770ER_UNSUPPORTED_ENGINE = 1726771ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST = 1727772ER_CANNOT_LOAD_FROM_TABLE_V2 = 1728773ER_MASTER_DELAY_VALUE_OUT_OF_RANGE = 1729774ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT = 1730775ER_PARTITION_EXCHANGE_DIFFERENT_OPTION = 1731776ER_PARTITION_EXCHANGE_PART_TABLE = 1732777ER_PARTITION_EXCHANGE_TEMP_TABLE = 1733778ER_PARTITION_INSTEAD_OF_SUBPARTITION = 1734779ER_UNKNOWN_PARTITION = 1735780ER_TABLES_DIFFERENT_METADATA = 1736781ER_ROW_DOES_NOT_MATCH_PARTITION = 1737782ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX = 1738783ER_WARN_INDEX_NOT_APPLICABLE = 1739784ER_PARTITION_EXCHANGE_FOREIGN_KEY = 1740785ER_NO_SUCH_KEY_VALUE = 1741786ER_RPL_INFO_DATA_TOO_LONG = 1742787ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE = 1743788ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE = 1744789ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX = 1745790ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT = 1746791ER_PARTITION_CLAUSE_ON_NONPARTITIONED = 1747792ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET = 1748793ER_NO_SUCH_PARTITION__UNUSED = 1749794ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE = 1750795ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE = 1751796ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE = 1752797ER_MTS_FEATURE_IS_NOT_SUPPORTED = 1753798ER_MTS_UPDATED_DBS_GREATER_MAX = 1754799ER_MTS_CANT_PARALLEL = 1755800ER_MTS_INCONSISTENT_DATA = 1756801ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING = 1757802ER_DA_INVALID_CONDITION_NUMBER = 1758803ER_INSECURE_PLAIN_TEXT = 1759804ER_INSECURE_CHANGE_MASTER = 1760805ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO = 1761806ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO = 1762807ER_SQLTHREAD_WITH_SECURE_SLAVE = 1763808ER_TABLE_HAS_NO_FT = 1764809ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER = 1765810ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION = 1766811ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST = 1767812ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL = 1768813ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION = 1769814ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL = 1770815ER_SKIPPING_LOGGED_TRANSACTION = 1771816ER_MALFORMED_GTID_SET_SPECIFICATION = 1772817ER_MALFORMED_GTID_SET_ENCODING = 1773818ER_MALFORMED_GTID_SPECIFICATION = 1774819ER_GNO_EXHAUSTED = 1775820ER_BAD_SLAVE_AUTO_POSITION = 1776821ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON = 1777822ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET = 1778823ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON = 1779824ER_GTID_MODE_REQUIRES_BINLOG = 1780825ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF = 1781826ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON = 1782827ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF = 1783828ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF = 1784829ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE = 1785830ER_GTID_UNSAFE_CREATE_SELECT = 1786831ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION = 1787832ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME = 1788833ER_MASTER_HAS_PURGED_REQUIRED_GTIDS = 1789834ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID = 1790835ER_UNKNOWN_EXPLAIN_FORMAT = 1791836ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION = 1792837ER_TOO_LONG_TABLE_PARTITION_COMMENT = 1793838ER_SLAVE_CONFIGURATION = 1794839ER_INNODB_FT_LIMIT = 1795840ER_INNODB_NO_FT_TEMP_TABLE = 1796841ER_INNODB_FT_WRONG_DOCID_COLUMN = 1797842ER_INNODB_FT_WRONG_DOCID_INDEX = 1798843ER_INNODB_ONLINE_LOG_TOO_BIG = 1799844ER_UNKNOWN_ALTER_ALGORITHM = 1800845ER_UNKNOWN_ALTER_LOCK = 1801846ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS = 1802847ER_MTS_RECOVERY_FAILURE = 1803848ER_MTS_RESET_WORKERS = 1804849ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2 = 1805850ER_SLAVE_SILENT_RETRY_TRANSACTION = 1806851ER_DISCARD_FK_CHECKS_RUNNING = 1807852ER_TABLE_SCHEMA_MISMATCH = 1808853ER_TABLE_IN_SYSTEM_TABLESPACE = 1809854ER_IO_READ_ERROR = 1810855ER_IO_WRITE_ERROR = 1811856ER_TABLESPACE_MISSING = 1812857ER_TABLESPACE_EXISTS = 1813858ER_TABLESPACE_DISCARDED = 1814859ER_INTERNAL_ERROR = 1815860ER_INNODB_IMPORT_ERROR = 1816861ER_INNODB_INDEX_CORRUPT = 1817862ER_INVALID_YEAR_COLUMN_LENGTH = 1818863ER_NOT_VALID_PASSWORD = 1819864ER_MUST_CHANGE_PASSWORD = 1820865ER_FK_NO_INDEX_CHILD = 1821866ER_FK_NO_INDEX_PARENT = 1822867ER_FK_FAIL_ADD_SYSTEM = 1823868ER_FK_CANNOT_OPEN_PARENT = 1824869ER_FK_INCORRECT_OPTION = 1825870ER_FK_DUP_NAME = 1826871ER_PASSWORD_FORMAT = 1827872ER_FK_COLUMN_CANNOT_DROP = 1828873ER_FK_COLUMN_CANNOT_DROP_CHILD = 1829874ER_FK_COLUMN_NOT_NULL = 1830875ER_DUP_INDEX = 1831876ER_FK_COLUMN_CANNOT_CHANGE = 1832877ER_FK_COLUMN_CANNOT_CHANGE_CHILD = 1833878ER_FK_CANNOT_DELETE_PARENT = 1834879ER_MALFORMED_PACKET = 1835880ER_READ_ONLY_MODE = 1836881ER_GTID_NEXT_TYPE_UNDEFINED_GROUP = 1837882ER_VARIABLE_NOT_SETTABLE_IN_SP = 1838883ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF = 1839884ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY = 1840885ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY = 1841886ER_GTID_PURGED_WAS_CHANGED = 1842887ER_GTID_EXECUTED_WAS_CHANGED = 1843888ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES = 1844889ER_ALTER_OPERATION_NOT_SUPPORTED = 1845890ER_ALTER_OPERATION_NOT_SUPPORTED_REASON = 1846891ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY = 1847892ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION = 1848893ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME = 1849894ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE = 1850895ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK = 1851896ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE = 1852897ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK = 1853898ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC = 1854899ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS = 1855900ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS = 1856901ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS = 1857902ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE = 1858903ER_DUP_UNKNOWN_IN_INDEX = 1859904ER_IDENT_CAUSES_TOO_LONG_PATH = 1860905ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL = 1861906ER_ERROR_LAST = 1861907end908909ServerError.define_error_class(/\AER_/)910ServerError::ERROR_MAP.values.each{|v| RbMysql.const_set v.name.split(/::/).last, v} # for compatibility911912# client side error913class ClientError < Error914ERROR_MAP = {}915916CR_ERROR_FIRST = 2000917CR_UNKNOWN_ERROR = 2000918CR_SOCKET_CREATE_ERROR = 2001919CR_CONNECTION_ERROR = 2002920CR_CONN_HOST_ERROR = 2003921CR_IPSOCK_ERROR = 2004922CR_UNKNOWN_HOST = 2005923CR_SERVER_GONE_ERROR = 2006924CR_VERSION_ERROR = 2007925CR_OUT_OF_MEMORY = 2008926CR_WRONG_HOST_INFO = 2009927CR_LOCALHOST_CONNECTION = 2010928CR_TCP_CONNECTION = 2011929CR_SERVER_HANDSHAKE_ERR = 2012930CR_SERVER_LOST = 2013931CR_COMMANDS_OUT_OF_SYNC = 2014932CR_NAMEDPIPE_CONNECTION = 2015933CR_NAMEDPIPEWAIT_ERROR = 2016934CR_NAMEDPIPEOPEN_ERROR = 2017935CR_NAMEDPIPESETSTATE_ERROR = 2018936CR_CANT_READ_CHARSET = 2019937CR_NET_PACKET_TOO_LARGE = 2020938CR_EMBEDDED_CONNECTION = 2021939CR_PROBE_SLAVE_STATUS = 2022940CR_PROBE_SLAVE_HOSTS = 2023941CR_PROBE_SLAVE_CONNECT = 2024942CR_PROBE_MASTER_CONNECT = 2025943CR_SSL_CONNECTION_ERROR = 2026944CR_MALFORMED_PACKET = 2027945CR_WRONG_LICENSE = 2028946CR_NULL_POINTER = 2029947CR_NO_PREPARE_STMT = 2030948CR_PARAMS_NOT_BOUND = 2031949CR_DATA_TRUNCATED = 2032950CR_NO_PARAMETERS_EXISTS = 2033951CR_INVALID_PARAMETER_NO = 2034952CR_INVALID_BUFFER_USE = 2035953CR_UNSUPPORTED_PARAM_TYPE = 2036954CR_SHARED_MEMORY_CONNECTION = 2037955CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR = 2038956CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR = 2039957CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR = 2040958CR_SHARED_MEMORY_CONNECT_MAP_ERROR = 2041959CR_SHARED_MEMORY_FILE_MAP_ERROR = 2042960CR_SHARED_MEMORY_MAP_ERROR = 2043961CR_SHARED_MEMORY_EVENT_ERROR = 2044962CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR = 2045963CR_SHARED_MEMORY_CONNECT_SET_ERROR = 2046964CR_CONN_UNKNOW_PROTOCOL = 2047965CR_INVALID_CONN_HANDLE = 2048966CR_SECURE_AUTH = 2049967CR_FETCH_CANCELED = 2050968CR_NO_DATA = 2051969CR_NO_STMT_METADATA = 2052970CR_NO_RESULT_SET = 2053971CR_NOT_IMPLEMENTED = 2054972CR_SERVER_LOST_EXTENDED = 2055973CR_STMT_CLOSED = 2056974CR_NEW_STMT_METADATA = 2057975CR_ALREADY_CONNECTED = 2058976CR_AUTH_PLUGIN_CANNOT_LOAD = 2059977CR_DUPLICATE_CONNECTION_ATTR = 2060978CR_AUTH_PLUGIN_ERR = 2061979CR_ERROR_LAST = 2061980end981982ClientError.define_error_class(/\ACR_/)983984# protocol error985class ProtocolError < ClientError986end987988end989990