msql_srv/
errorcodes.rs

1// https://mariadb.com/kb/en/library/mariadb-error-codes/
2// Generated using:
3/*
4extern crate reqwest;
5extern crate select;
6
7use std::io::Read;
8use select::document::Document;
9use select::predicate::{Child, Class, Name};
10use std::collections::HashMap;
11
12fn main() {
13    let mut resp = reqwest::get("https://mariadb.com/kb/en/library/mariadb-error-codes/").unwrap();
14    assert!(resp.status().is_success());
15
16    let mut content = String::new();
17    resp.read_to_string(&mut content).unwrap();
18
19    let mut es = Vec::new();
20    let document = Document::from(&*content);
21    for tbl in document.find(Child(Class("cstm-style"), Name("table"))) {
22        for row in tbl.find(Child(Name("tbody"), Name("tr"))) {
23            let cols: Vec<_> = row.find(Name("td")).map(|c| c.text()).collect();
24            if cols.is_empty() {
25                // THs (because *someone* didn't learn about thead)
26                continue;
27            }
28
29            let code = u16::from_str_radix(&cols[0], 10).unwrap();
30            if code >= 1900 {
31                // MariaDB-specific
32                continue;
33            }
34
35            let mut cols = cols.into_iter();
36            cols.next().unwrap(); // code
37            let mut sqlstate = cols.next().unwrap();
38            let name = if sqlstate.starts_with("ER_") {
39                // someone messed up
40                ::std::mem::replace(&mut sqlstate, "HY000".to_owned())
41            } else {
42                cols.next().unwrap()
43            };
44            let name = name.replace(" ", "");
45            match &*name {
46                "ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR"
47                | "ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON" => {
48                    // defined twice, because of course
49                    continue;
50                }
51                _ => {}
52            }
53            let desc = cols.next().unwrap();
54            es.push((code, sqlstate, name, desc));
55        }
56    }
57
58    println!("/// MySQL error type");
59    println!("#[allow(non_camel_case_types)]");
60    println!("#[derive(Clone, Copy, Eq, PartialEq, Debug, Hash, Ord, PartialOrd)]");
61    println!("#[repr(u16)]");
62    println!("pub enum ErrorKind {{");
63    for &(code, _, ref name, ref desc) in &es {
64        for l in desc.lines() {
65            println!("    /// {}", l);
66        }
67        println!("    {} = {},", name, code);
68    }
69    println!("}}");
70    println!("");
71    println!("impl From<u16> for ErrorKind {{");
72    println!("    fn from(x: u16) -> Self {{");
73    println!("        match x {{");
74    for &(code, _, ref name, _) in &es {
75        println!("            {}_u16 => ErrorKind::{},", code, name);
76    }
77    println!("            _ => panic!(\"Unknown error type {{}}\", x),");
78    println!("        }}");
79    println!("    }}");
80    println!("}}");
81    println!("");
82    println!("impl ErrorKind {{");
83    println!("    /// SQLSTATE is a code which identifies SQL error conditions. It composed by five characters:");
84    println!("    /// first two characters that indicate a class, and then three that indicate a subclass.");
85    println!("    ///");
86    println!("    /// There are three important standard classes.");
87    println!("    ///");
88    println!("    ///  - `00` means the operation completed successfully.");
89    println!("    ///  - `01` contains warnings (`SQLWARNING`).");
90    println!("    ///  - `02` is the `NOT FOUND` class.");
91    println!("    ///");
92    println!("    /// All other classes are exceptions (`SQLEXCEPTION`). Classes beginning with 0, 1, 2, 3, 4, A,");
93    println!("    /// B, C, D, E, F and G are reserved for standard-defined classes, while other classes are");
94    println!("    /// vendor-specific.");
95    println!("    ///");
96    println!("    /// The subclass, if it is set, indicates a particular condition, or a particular group of");
97    println!("    /// conditions within the class. `000` means 'no subclass'.");
98    println!("    ///");
99    println!("    /// See also https://mariadb.com/kb/en/library/sqlstate/");
100    println!("    pub fn sqlstate(&self) -> &'static [u8; 5] {{");
101    println!("        match *self {{");
102    let mut group = HashMap::new();
103    for &(_, ref sqlstate, ref name, _) in &es {
104        group.entry(sqlstate).or_insert_with(Vec::new).push(name);
105    }
106    for (sqlstate, names) in group {
107        let n = names.len();
108        for (i, name) in names.into_iter().enumerate() {
109            print!("            ");
110            if i != 0 {
111                print!("| ");
112            }
113            print!("ErrorKind::{}", name);
114            if i == n - 1 {
115                print!(" => b\"{}\",", sqlstate);
116            }
117            println!("");
118        }
119    }
120    println!("        }}");
121    println!("    }}");
122    println!("}}");
123}
124*/
125
126/// MySQL error type
127#[allow(non_camel_case_types)]
128#[derive(Clone, Copy, Eq, PartialEq, Debug, Hash, Ord, PartialOrd)]
129#[repr(u16)]
130pub enum ErrorKind {
131    /// hashchk
132    ER_HASHCHK = 1000,
133    /// isamchk
134    ER_NISAMCHK = 1001,
135    /// NO
136    ER_NO = 1002,
137    /// YES
138    ER_YES = 1003,
139    /// Can't create file '%s' (errno: %d)
140    ER_CANT_CREATE_FILE = 1004,
141    /// Can't create table '%s' (errno: %d)
142    ER_CANT_CREATE_TABLE = 1005,
143    /// Can't create database '%s' (errno: %d
144    ER_CANT_CREATE_DB = 1006,
145    /// Can't create database '%s'; database exists
146    ER_DB_CREATE_EXISTS = 1007,
147    /// Can't drop database '%s'; database doesn't exist
148    ER_DB_DROP_EXISTS = 1008,
149    /// Error dropping database (can't delete '%s', errno: %d)
150    ER_DB_DROP_DELETE = 1009,
151    /// Error dropping database (can't rmdir '%s', errno: %d)
152    ER_DB_DROP_RMDIR = 1010,
153    /// Error on delete of '%s' (errno: %d)
154    ER_CANT_DELETE_FILE = 1011,
155    /// Can't read record in system table
156    ER_CANT_FIND_SYSTEM_REC = 1012,
157    /// Can't get status of '%s' (errno: %d)
158    ER_CANT_GET_STAT = 1013,
159    /// Can't get working directory (errno: %d)
160    ER_CANT_GET_WD = 1014,
161    /// Can't lock file (errno: %d)
162    ER_CANT_LOCK = 1015,
163    /// Can't open file: '%s' (errno: %d)
164    ER_CANT_OPEN_FILE = 1016,
165    /// Can't find file: '%s' (errno: %d)
166    ER_FILE_NOT_FOUND = 1017,
167    /// Can't read dir of '%s' (errno: %d)
168    ER_CANT_READ_DIR = 1018,
169    /// Can't change dir to '%s' (errno: %d)
170    ER_CANT_SET_WD = 1019,
171    /// Record has changed since last read in table '%s'
172    ER_CHECKREAD = 1020,
173    /// Disk full (%s); waiting for someone to free some space...
174    ER_DISK_FULL = 1021,
175    /// Can't write; duplicate key in table '%s'
176    ER_DUP_KEY = 1022,
177    /// Error on close of '%s' (errno: %d)
178    ER_ERROR_ON_CLOSE = 1023,
179    /// Error reading file '%s' (errno: %d)
180    ER_ERROR_ON_READ = 1024,
181    /// Error on rename of '%s' to '%s' (errno: %d)
182    ER_ERROR_ON_RENAME = 1025,
183    /// Error writing file '%s' (errno: %d)
184    ER_ERROR_ON_WRITE = 1026,
185    /// '%s' is locked against change
186    ER_FILE_USED = 1027,
187    /// Sort aborted
188    ER_FILSORT_ABORT = 1028,
189    /// View '%s' doesn't exist for '%s'
190    ER_FORM_NOT_FOUND = 1029,
191    /// Got error %d from storage engine
192    ER_GET_ERRN = 1030,
193    /// Table storage engine for '%s' doesn't have this option
194    ER_ILLEGAL_HA = 1031,
195    /// Can't find record in '%s'
196    ER_KEY_NOT_FOUND = 1032,
197    /// Incorrect information in file: '%s'
198    ER_NOT_FORM_FILE = 1033,
199    /// Incorrect key file for table '%s'; try to repair it
200    ER_NOT_KEYFILE = 1034,
201    /// Old key file for table '%s'; repair it!
202    ER_OLD_KEYFILE = 1035,
203    /// Table '%s' is read only
204    ER_OPEN_AS_READONLY = 1036,
205    /// Out of memory; restart server and try again (needed %d bytes)
206    ER_OUTOFMEMORY = 1037,
207    /// Out of sort memory, consider increasing server sort buffer size
208    ER_OUT_OF_SORTMEMORY = 1038,
209    /// Unexpected EOF found when reading file '%s' (Errno: %d)
210    ER_UNEXPECTED_EOF = 1039,
211    /// Too many connections
212    ER_CON_COUNT_ERROR = 1040,
213    /// Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
214    ER_OUT_OF_RESOURCES = 1041,
215    /// Can't get hostname for your address
216    ER_BAD_HOST_ERROR = 1042,
217    /// Bad handshake
218    ER_HANDSHAKE_ERROR = 1043,
219    /// Access denied for user '%s'@'%s' to database '%s'
220    ER_DBACCESS_DENIED_ERROR = 1044,
221    /// Access denied for user '%s'@'%s' (using password: %s)
222    ER_ACCESS_DENIED_ERROR = 1045,
223    /// No database selected
224    ER_NO_DB_ERROR = 1046,
225    /// Unknown command
226    ER_UNKNOWN_COM_ERROR = 1047,
227    /// Column '%s' cannot be null
228    ER_BAD_NULL_ERROR = 1048,
229    /// Unknown database '%s'
230    ER_BAD_DB_ERROR = 1049,
231    /// Table '%s' already exists
232    ER_TABLE_EXISTS_ERROR = 1050,
233    /// Unknown table '%s'
234    ER_BAD_TABLE_ERROR = 1051,
235    /// Column '%s' in %s is ambiguous
236    ER_NON_UNIQ_ERROR = 1052,
237    /// Server shutdown in progress
238    ER_SERVER_SHUTDOWN = 1053,
239    /// Unknown column '%s' in '%s'
240    ER_BAD_FIELD_ERROR = 1054,
241    /// '%s' isn't in GROUP BY
242    ER_WRONG_FIELD_WITH_GROUP = 1055,
243    /// Can't group on '%s'
244    ER_WRONG_GROUP_FIELD = 1056,
245    /// Statement has sum functions and columns in same statement
246    ER_WRONG_SUM_SELECT = 1057,
247    /// Column count doesn't match value count
248    ER_WRONG_VALUE_COUNT = 1058,
249    /// Identifier name '%s' is too long
250    ER_TOO_LONG_IDENT = 1059,
251    /// Duplicate column name '%s'
252    ER_DUP_FIELDNAME = 1060,
253    /// Duplicate key name '%s'
254    ER_DUP_KEYNAME = 1061,
255    /// Duplicate entry '%s' for key %d
256    ER_DUP_ENTRY = 1062,
257    /// Incorrect column specifier for column '%s'
258    ER_WRONG_FIELD_SPEC = 1063,
259    /// %s near '%s' at line %d
260    ER_PARSE_ERROR = 1064,
261    /// Query was empty
262    ER_EMPTY_QUERY = 1065,
263    /// Not unique table/alias: '%s'
264    ER_NONUNIQ_TABLE = 1066,
265    /// Invalid default value for '%s'
266    ER_INVALID_DEFAULT = 1067,
267    /// Multiple primary key defined
268    ER_MULTIPLE_PRI_KEY = 1068,
269    /// Too many keys specified; max %d keys allowed
270    ER_TOO_MANY_KEYS = 1069,
271    /// Too many key parts specified; max %d parts allowed
272    ER_TOO_MANY_KEY_PARTS = 1070,
273    /// Specified key was too long; max key length is %d bytes
274    ER_TOO_LONG_KEY = 1071,
275    /// Key column '%s' doesn't exist in table
276    ER_KEY_COLUMN_DOES_NOT_EXITS = 1072,
277    /// BLOB column '%s' can't be used in key specification with the used table type
278    ER_BLOB_USED_AS_KEY = 1073,
279    /// Column length too big for column '%s' (max = %lu); use BLOB or TEXT instead
280    ER_TOO_BIG_FIELDLENGTH = 1074,
281    /// Incorrect table definition; there can be only one auto column and it must be defined as a key
282    ER_WRONG_AUTO_KEY = 1075,
283    /// %s: ready for connections. Version: '%s' socket: '%s' port: %d
284    ER_READY = 1076,
285    /// %s: Normal shutdown
286    ER_NORMAL_SHUTDOWN = 1077,
287    /// %s: Got signal %d. Aborting!
288    ER_GOT_SIGNAL = 1078,
289    /// %s: Shutdown complete
290    ER_SHUTDOWN_COMPLETE = 1079,
291    /// %s: Forcing close of thread %ld user: '%s'
292    ER_FORCING_CLOSE = 1080,
293    /// Can't create IP socket
294    ER_IPSOCK_ERROR = 1081,
295    /// Table '%s' has no index like the one used in CREATE INDEX; recreate the table
296    ER_NO_SUCH_INDEX = 1082,
297    /// Field separator argument is not what is expected; check the manual
298    ER_WRONG_FIELD_TERMINATORS = 1083,
299    /// You can't use fixed rowlength with BLOBs; please use 'fields terminated by'
300    ER_BLOBS_AND_NO_TERMINATED = 1084,
301    /// The file '%s' must be in the database directory or be readable by all
302    ER_TEXTFILE_NOT_READABLE = 1085,
303    /// File '%s' already exists
304    ER_FILE_EXISTS_ERROR = 1086,
305    /// Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld
306    ER_LOAD_INF = 1087,
307    /// Records: %ld Duplicates: %ld
308    ER_ALTER_INF = 1088,
309    /// Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
310    ER_WRONG_SUB_KEY = 1089,
311    /// You can't delete all columns with ALTER TABLE; use DROP TABLE instead
312    ER_CANT_REMOVE_ALL_FIELDS = 1090,
313    /// Can't DROP '%s'; check that column/key exists
314    ER_CANT_DROP_FIELD_OR_KEY = 1091,
315    /// Records: %ld Duplicates: %ld Warnings: %ld
316    ER_INSERT_INF = 1092,
317    /// You can't specify target table '%s' for update in FROM clause
318    ER_UPDATE_TABLE_USED = 1093,
319    /// Unknown thread id: %lu
320    ER_NO_SUCH_THREAD = 1094,
321    /// You are not owner of thread %lu
322    ER_KILL_DENIED_ERROR = 1095,
323    /// No tables used
324    ER_NO_TABLES_USED = 1096,
325    /// Too many strings for column %s and SET
326    ER_TOO_BIG_SET = 1097,
327    /// Can't generate a unique log-filename %s.(1-999)
328    ER_NO_UNIQUE_LOGFILE = 1098,
329    /// Table '%s' was locked with a READ lock and can't be updated
330    ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099,
331    /// Table '%s' was not locked with LOCK TABLES
332    ER_TABLE_NOT_LOCKED = 1100,
333    /// BLOB/TEXT column '%s' can't have a default value
334    ER_BLOB_CANT_HAVE_DEFAULT = 1101,
335    /// Incorrect database name '%s'
336    ER_WRONG_DB_NAME = 1102,
337    /// Incorrect table name '%s'
338    ER_WRONG_TABLE_NAME = 1103,
339    /// The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
340    ER_TOO_BIG_SELECT = 1104,
341    /// Unknown error
342    ER_UNKNOWN_ERROR = 1105,
343    /// Unknown procedure '%s'
344    ER_UNKNOWN_PROCEDURE = 1106,
345    /// Incorrect parameter count to procedure '%s'
346    ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107,
347    /// Incorrect parameters to procedure '%s'
348    ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108,
349    /// Unknown table '%s' in %s
350    ER_UNKNOWN_TABLE = 1109,
351    /// Column '%s' specified twice
352    ER_FIELD_SPECIFIED_TWICE = 1110,
353    /// Invalid use of group function
354    ER_INVALID_GROUP_FUNC_USE = 1111,
355    /// Table '%s' uses an extension that doesn't exist in this MariaDB version
356    ER_UNSUPPORTED_EXTENSION = 1112,
357    /// A table must have at least 1 column
358    ER_TABLE_MUST_HAVE_COLUMNS = 1113,
359    /// The table '%s' is full
360    ER_RECORD_FILE_FULL = 1114,
361    /// Unknown character set: '%s'
362    ER_UNKNOWN_CHARACTER_SET = 1115,
363    /// Too many tables; MariaDB can only use %d tables in a join
364    ER_TOO_MANY_TABLES = 1116,
365    /// Too many columns
366    ER_TOO_MANY_FIELDS = 1117,
367    /// Row size too large. The maximum row size for the used table type, not counting BLOBs, is %ld. You have to change some columns to TEXT or BLOBs
368    ER_TOO_BIG_ROWSIZE = 1118,
369    /// Thread stack overrun: Used: %ld of a %ld stack. Use 'mysqld --thread_stack=#' to specify a bigger stack if needed
370    ER_STACK_OVERRUN = 1119,
371    /// Cross dependency found in OUTER JOIN; examine your ON conditions
372    ER_WRONG_OUTER_JOIN = 1120,
373    /// Table handler doesn't support NULL in given index. Please change column '%s' to be NOT NULL or use another handler
374    ER_NULL_COLUMN_IN_INDEX = 1121,
375    /// Can't load function '%s'
376    ER_CANT_FIND_UDF = 1122,
377    /// Can't initialize function '%s'; %s
378    ER_CANT_INITIALIZE_UDF = 1123,
379    /// No paths allowed for shared library
380    ER_UDF_NO_PATHS = 1124,
381    /// Function '%s' already exists
382    ER_UDF_EXISTS = 1125,
383    /// Can't open shared library '%s' (Errno: %d %s)
384    ER_CANT_OPEN_LIBRARY = 1126,
385    /// Can't find symbol '%s' in library
386    ER_CANT_FIND_DL_ENTRY = 1127,
387    /// Function '%s' is not defined
388    ER_FUNCTION_NOT_DEFINED = 1128,
389    /// Host '%s' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
390    ER_HOST_IS_BLOCKED = 1129,
391    /// Host '%s' is not allowed to connect to this MariaDB server
392    ER_HOST_NOT_PRIVILEGED = 1130,
393    /// You are using MariaDB as an anonymous user and anonymous users are not allowed to change passwords
394    ER_PASSWORD_ANONYMOUS_USER = 1131,
395    /// You must have privileges to update tables in the mysql database to be able to change passwords for others
396    ER_PASSWORD_NOT_ALLOWED = 1132,
397    /// Can't find any matching row in the user table
398    ER_PASSWORD_NO_MATCH = 1133,
399    /// Rows matched: %ld Changed: %ld Warnings: %ld
400    ER_UPDATE_INF = 1134,
401    /// Can't create a new thread (Errno %d); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug
402    ER_CANT_CREATE_THREAD = 1135,
403    /// Column count doesn't match value count at row %ld
404    ER_WRONG_VALUE_COUNT_ON_ROW = 1136,
405    /// Can't reopen table: '%s'
406    ER_CANT_REOPEN_TABLE = 1137,
407    /// Invalid use of NULL value
408    ER_INVALID_USE_OF_NULL = 1138,
409    /// Got error '%s' from regexp
410    ER_REGEXP_ERROR = 1139,
411    /// Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
412    ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140,
413    /// There is no such grant defined for user '%s' on host '%s'
414    ER_NONEXISTING_GRANT = 1141,
415    /// %s command denied to user '%s'@'%s' for table '%s'
416    ER_TABLEACCESS_DENIED_ERROR = 1142,
417    /// %s command denied to user '%s'@'%s' for column '%s' in table '%s'
418    ER_COLUMNACCESS_DENIED_ERROR = 1143,
419    /// Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used
420    ER_ILLEGAL_GRANT_FOR_TABLE = 1144,
421    /// The host or user argument to GRANT is too long
422    ER_GRANT_WRONG_HOST_OR_USER = 1145,
423    /// Table '%s.%s' doesn't exist
424    ER_NO_SUCH_TABLE = 1146,
425    /// There is no such grant defined for user '%s' on host '%s' on table '%s'
426    ER_NONEXISTING_TABLE_GRANT = 1147,
427    /// The used command is not allowed with this MariaDB version
428    ER_NOT_ALLOWED_COMMAND = 1148,
429    /// You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use
430    ER_SYNTAX_ERROR = 1149,
431    /// Delayed insert thread couldn't get requested lock for table %s
432    ER_DELAYED_CANT_CHANGE_LOCK = 1150,
433    /// Too many delayed threads in use
434    ER_TOO_MANY_DELAYED_THREADS = 1151,
435    /// Aborted connection %ld to db: '%s' user: '%s' (%s)
436    ER_ABORTING_CONNECTION = 1152,
437    /// Got a packet bigger than 'max_allowed_packet' bytes
438    ER_NET_PACKET_TOO_LARGE = 1153,
439    /// Got a read error from the connection pipe
440    ER_NET_READ_ERROR_FROM_PIPE = 1154,
441    /// Got an error from fcntl()
442    ER_NET_FCNTL_ERROR = 1155,
443    /// Got packets out of order
444    ER_NET_PACKETS_OUT_OF_ORDER = 1156,
445    /// Couldn't uncompress communication packet
446    ER_NET_UNCOMPRESS_ERROR = 1157,
447    /// Got an error reading communication packets
448    ER_NET_READ_ERROR = 1158,
449    /// Got timeout reading communication packets
450    ER_NET_READ_INTERRUPTED = 1159,
451    /// Got an error writing communication packets
452    ER_NET_ERROR_ON_WRITE = 1160,
453    /// Got timeout writing communication packets
454    ER_NET_WRITE_INTERRUPTED = 1161,
455    /// Result string is longer than 'max_allowed_packet' bytes
456    ER_TOO_LONG_STRING = 1162,
457    /// The used table type doesn't support BLOB/TEXT columns
458    ER_TABLE_CANT_HANDLE_BLOB = 1163,
459    /// The used table type doesn't support AUTO_INCREMENT columns
460    ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164,
461    /// INSERT DELAYED can't be used with table '%s' because it is locked with LOCK TABLES
462    ER_DELAYED_INSERT_TABLE_LOCKED = 1165,
463    /// Incorrect column name '%s'
464    ER_WRONG_COLUMN_NAME = 1166,
465    /// The used storage engine can't index column '%s'
466    ER_WRONG_KEY_COLUMN = 1167,
467    /// Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
468    ER_WRONG_MRG_TABLE = 1168,
469    /// Can't write, because of unique constraint, to table '%s'
470    ER_DUP_UNIQUE = 1169,
471    /// BLOB/TEXT column '%s' used in key specification without a key length
472    ER_BLOB_KEY_WITHOUT_LENGTH = 1170,
473    /// All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead
474    ER_PRIMARY_CANT_HAVE_NULL = 1171,
475    /// Result consisted of more than one row
476    ER_TOO_MANY_ROWS = 1172,
477    /// This table type requires a primary key
478    ER_REQUIRES_PRIMARY_KEY = 1173,
479    /// This version of MariaDB is not compiled with RAID support
480    ER_NO_RAID_COMPILED = 1174,
481    /// You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
482    ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175,
483    /// Key '%s' doesn't exist in table '%s'
484    ER_KEY_DOES_NOT_EXITS = 1176,
485    /// Can't open table
486    ER_CHECK_NO_SUCH_TABLE = 1177,
487    /// The storage engine for the table doesn't support %s
488    ER_CHECK_NOT_IMPLEMENTED = 1178,
489    /// You are not allowed to execute this command in a transaction
490    ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179,
491    /// Got error %d during COMMIT
492    ER_ERROR_DURING_COMMIT = 1180,
493    /// Got error %d during ROLLBACK
494    ER_ERROR_DURING_ROLLBACK = 1181,
495    /// Got error %d during FLUSH_LOGS
496    ER_ERROR_DURING_FLUSH_LOGS = 1182,
497    /// Got error %d during CHECKPOINT
498    ER_ERROR_DURING_CHECKPOINT = 1183,
499    /// Aborted connection %ld to db: '%s' user: '%s' host: '%s' (%s)
500    ER_NEW_ABORTING_CONNECTION = 1184,
501    /// The storage engine for the table does not support binary table dump
502    ER_DUMP_NOT_IMPLEMENTED = 1185,
503    /// Binlog closed, cannot RESET MASTER
504    ER_FLUSH_MASTER_BINLOG_CLOSED = 1186,
505    /// Failed rebuilding the index of dumped table '%s'
506    ER_INDEX_REBUILD = 1187,
507    /// Error from master: '%s'
508    ER_MASTER = 1188,
509    /// Net error reading from master
510    ER_MASTER_NET_READ = 1189,
511    /// Net error writing to master
512    ER_MASTER_NET_WRITE = 1190,
513    /// Can't find FULLTEXT index matching the column list
514    ER_FT_MATCHING_KEY_NOT_FOUND = 1191,
515    /// Can't execute the given command because you have active locked tables or an active transaction
516    ER_LOCK_OR_ACTIVE_TRANSACTION = 1192,
517    /// Unknown system variable '%s'
518    ER_UNKNOWN_SYSTEM_VARIABLE = 1193,
519    /// Table '%s' is marked as crashed and should be repaired
520    ER_CRASHED_ON_USAGE = 1194,
521    /// Table '%s' is marked as crashed and last (automatic?) repair failed
522    ER_CRASHED_ON_REPAIR = 1195,
523    /// Some non-transactional changed tables couldn't be rolled back
524    ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196,
525    /// Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again
526    ER_TRANS_CACHE_FULL = 1197,
527    /// This operation cannot be performed with a running slave; run STOP SLAVE first
528    ER_SLAVE_MUST_STOP = 1198,
529    /// This operation requires a running slave; configure slave and do START SLAVE
530    ER_SLAVE_NOT_RUNNING = 1199,
531    /// The server is not configured as slave; fix in config file or with CHANGE MASTER TO
532    ER_BAD_SLAVE = 1200,
533    /// Could not initialize master info structure; more error messages can be found in the MariaDB error log
534    ER_MASTER_INF = 1201,
535    /// Could not create slave thread; check system resources
536    ER_SLAVE_THREAD = 1202,
537    /// User %s already has more than 'max_user_connections' active connections
538    ER_TOO_MANY_USER_CONNECTIONS = 1203,
539    /// You may only use constant expressions with SET
540    ER_SET_CONSTANTS_ONLY = 1204,
541    /// Lock wait timeout exceeded; try restarting transaction
542    ER_LOCK_WAIT_TIMEOUT = 1205,
543    /// The total number of locks exceeds the lock table size
544    ER_LOCK_TABLE_FULL = 1206,
545    /// Update locks cannot be acquired during a READ UNCOMMITTED transaction
546    ER_READ_ONLY_TRANSACTION = 1207,
547    /// DROP DATABASE not allowed while thread is holding global read lock
548    ER_DROP_DB_WITH_READ_LOCK = 1208,
549    /// CREATE DATABASE not allowed while thread is holding global read lock
550    ER_CREATE_DB_WITH_READ_LOCK = 1209,
551    /// Incorrect arguments to %s
552    ER_WRONG_ARGUMENTS = 1210,
553    /// '%s'@'%s' is not allowed to create new users
554    ER_NO_PERMISSION_TO_CREATE_USER = 1211,
555    /// Incorrect table definition; all MERGE tables must be in the same database
556    ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212,
557    /// Deadlock found when trying to get lock; try restarting transaction
558    ER_LOCK_DEADLOCK = 1213,
559    /// The used table type doesn't support FULLTEXT indexes
560    ER_TABLE_CANT_HANDLE_FT = 1214,
561    /// Cannot add foreign key constraint
562    ER_CANNOT_ADD_FOREIGN = 1215,
563    /// Cannot add or update a child row: a foreign key constraint fails
564    ER_NO_REFERENCED_ROW = 1216,
565    /// Cannot delete or update a parent row: a foreign key constraint fails
566    ER_ROW_IS_REFERENCED = 1217,
567    /// Error connecting to master: %s
568    ER_CONNECT_TO_MASTER = 1218,
569    /// Error running query on master: %s
570    ER_QUERY_ON_MASTER = 1219,
571    /// Error when executing command %s: %s
572    ER_ERROR_WHEN_EXECUTING_COMMAND = 1220,
573    /// Incorrect usage of %s and %s
574    ER_WRONG_USAGE = 1221,
575    /// The used SELECT statements have a different number of columns
576    ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222,
577    /// Can't execute the query because you have a conflicting read lock
578    ER_CANT_UPDATE_WITH_READLOCK = 1223,
579    /// Mixing of transactional and non-transactional tables is disabled
580    ER_MIXING_NOT_ALLOWED = 1224,
581    /// Option '%s' used twice in statement
582    ER_DUP_ARGUMENT = 1225,
583    /// User '%s' has exceeded the '%s' resource (current value: %ld)
584    ER_USER_LIMIT_REACHED = 1226,
585    /// Access denied; you need (at least one of) the %s privilege(s) for this operation
586    ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227,
587    /// Variable '%s' is a SESSION variable and can't be used with SET GLOBAL
588    ER_LOCAL_VARIABLE = 1228,
589    /// Variable '%s' is a GLOBAL variable and should be set with SET GLOBAL
590    ER_GLOBAL_VARIABLE = 1229,
591    /// Variable '%s' doesn't have a default value
592    ER_NO_DEFAULT = 1230,
593    /// Variable '%s' can't be set to the value of '%s'
594    ER_WRONG_VALUE_FOR_VAR = 1231,
595    /// Incorrect argument type to variable '%s'
596    ER_WRONG_TYPE_FOR_VAR = 1232,
597    /// Variable '%s' can only be set, not read
598    ER_VAR_CANT_BE_READ = 1233,
599    /// Incorrect usage/placement of '%s'
600    ER_CANT_USE_OPTION_HERE = 1234,
601    /// This version of MariaDB doesn't yet support '%s'
602    ER_NOT_SUPPORTED_YET = 1235,
603    /// Got fatal error %d from master when reading data from binary log: '%s'
604    ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236,
605    /// Slave SQL thread ignored the query because of replicate-*-table rules
606    ER_SLAVE_IGNORED_TABLE = 1237,
607    /// Variable '%s' is a %s variable
608    ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238,
609    /// Incorrect foreign key definition for '%s': %s
610    ER_WRONG_FK_DEF = 1239,
611    /// Key reference and table reference don't match
612    ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240,
613    /// Operand should contain %d column(s)
614    ER_OPERAND_COLUMNS = 1241,
615    /// Subquery returns more than 1 row
616    ER_SUBQUERY_NO_1_ROW = 1242,
617    /// Unknown prepared statement handler (%.*s) given to %s
618    ER_UNKNOWN_STMT_HANDLER = 1243,
619    /// Help database is corrupt or does not exist
620    ER_CORRUPT_HELP_DB = 1244,
621    /// Cyclic reference on subqueries
622    ER_CYCLIC_REFERENCE = 1245,
623    /// Converting column '%s' from %s to %s
624    ER_AUTO_CONVERT = 1246,
625    /// Reference '%s' not supported (%s)
626    ER_ILLEGAL_REFERENCE = 1247,
627    /// Every derived table must have its own alias
628    ER_DERIVED_MUST_HAVE_ALIAS = 1248,
629    /// Select %u was reduced during optimization
630    ER_SELECT_REDUCED = 1249,
631    /// Table '%s' from one of the SELECTs cannot be used in %s
632    ER_TABLENAME_NOT_ALLOWED_HERE = 1250,
633    /// Client does not support authentication protocol requested by server; consider upgrading MariaDB client
634    ER_NOT_SUPPORTED_AUTH_MODE = 1251,
635    /// All parts of a SPATIAL index must be NOT NULL
636    ER_SPATIAL_CANT_HAVE_NULL = 1252,
637    /// COLLATION '%s' is not valid for CHARACTER SET '%s'
638    ER_COLLATION_CHARSET_MISMATCH = 1253,
639    /// Slave is already running
640    ER_SLAVE_WAS_RUNNING = 1254,
641    /// Slave already has been stopped
642    ER_SLAVE_WAS_NOT_RUNNING = 1255,
643    /// Uncompressed data size too large; the maximum size is %d (probably, length of uncompressed data was corrupted)
644    ER_TOO_BIG_FOR_UNCOMPRESS = 1256,
645    /// ZLIB: Not enough memory
646    ER_ZLIB_Z_MEM_ERROR = 1257,
647    /// ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)
648    ER_ZLIB_Z_BUF_ERROR = 1258,
649    /// ZLIB: Input data corrupted
650    ER_ZLIB_Z_DATA_ERROR = 1259,
651    /// Row %u was cut by GROUP_CONCAT()
652    ER_CUT_VALUE_GROUP_CONCAT = 1260,
653    /// Row %ld doesn't contain data for all columns
654    ER_WARN_TOO_FEW_RECORDS = 1261,
655    /// Row %ld was truncated; it contained more data than there were input columns
656    ER_WARN_TOO_MANY_RECORDS = 1262,
657    /// Column set to default value; NULL supplied to NOT NULL column '%s' at row %ld
658    ER_WARN_NULL_TO_NOTNULL = 1263,
659    /// Out of range value for column '%s' at row %ld
660    ER_WARN_DATA_OUT_OF_RANGE = 1264,
661    /// Data truncated for column '%s' at row %ld
662    WARN_DATA_TRUNCATED = 1265,
663    /// Using storage engine %s for table '%s'
664    ER_WARN_USING_OTHER_HANDLER = 1266,
665    /// Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'
666    ER_CANT_AGGREGATE_2COLLATIONS = 1267,
667    /// Cannot drop one or more of the requested users
668    ER_DROP_USER = 1268,
669    /// Can't revoke all privileges for one or more of the requested users
670    ER_REVOKE_GRANTS = 1269,
671    /// Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation '%s'
672    ER_CANT_AGGREGATE_3COLLATIONS = 1270,
673    /// Illegal mix of collations for operation '%s'
674    ER_CANT_AGGREGATE_NCOLLATIONS = 1271,
675    /// Variable '%s' is not a variable component (can't be used as XXXX.variable_name)
676    ER_VARIABLE_IS_NOT_STRUCT = 1272,
677    /// Unknown collation: '%s'
678    ER_UNKNOWN_COLLATION = 1273,
679    /// SSL parameters in CHANGE MASTER are ignored because this MariaDB slave was compiled without SSL support; they can be used later if MariaDB slave with SSL is started
680    ER_SLAVE_IGNORED_SSL_PARAMS = 1274,
681    /// Server is running in --secure-auth mode, but '%s'@'%s' has a password in the old format; please change the password to the new format
682    ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275,
683    /// Field or reference '%s%s%s%s%s' of SELECT #%d was resolved in SELECT #%d
684    ER_WARN_FIELD_RESOLVED = 1276,
685    /// Incorrect parameter or combination of parameters for START SLAVE UNTIL
686    ER_BAD_SLAVE_UNTIL_COND = 1277,
687    /// It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's mysqld restart
688    ER_MISSING_SKIP_SLAVE = 1278,
689    /// SQL thread is not to be started so UNTIL options are ignored
690    ER_UNTIL_COND_IGNORED = 1279,
691    /// Incorrect index name '%s'
692    ER_WRONG_NAME_FOR_INDEX = 1280,
693    /// Incorrect catalog name '%s'
694    ER_WRONG_NAME_FOR_CATALOG = 1281,
695    /// Query cache failed to set size %lu; new query cache size is %lu
696    ER_WARN_QC_RESIZE = 1282,
697    /// Column '%s' cannot be part of FULLTEXT index
698    ER_BAD_FT_COLUMN = 1283,
699    /// Unknown key cache '%s'
700    ER_UNKNOWN_KEY_CACHE = 1284,
701    /// MariaDB is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work
702    ER_WARN_HOSTNAME_WONT_WORK = 1285,
703    /// Unknown storage engine '%s'
704    ER_UNKNOWN_STORAGE_ENGINE = 1286,
705    /// '%s' is deprecated and will be removed in a future release. Please use %s instead
706    ER_WARN_DEPRECATED_SYNTAX = 1287,
707    /// The target table %s of the %s is not updatable
708    ER_NON_UPDATABLE_TABLE = 1288,
709    /// The '%s' feature is disabled; you need MariaDB built with '%s' to have it working
710    ER_FEATURE_DISABLED = 1289,
711    /// The MariaDB server is running with the %s option so it cannot execute this statement
712    ER_OPTION_PREVENTS_STATEMENT = 1290,
713    /// Column '%s' has duplicated value '%s' in %s
714    ER_DUPLICATED_VALUE_IN_TYPE = 1291,
715    /// Truncated incorrect %s value: '%s'
716    ER_TRUNCATED_WRONG_VALUE = 1292,
717    /// Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
718    ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293,
719    /// Invalid ON UPDATE clause for '%s' column
720    ER_INVALID_ON_UPDATE = 1294,
721    /// This command is not supported in the prepared statement protocol yet
722    ER_UNSUPPORTED_PS = 1295,
723    /// Got error %d '%s' from %s
724    ER_GET_ERRMSG = 1296,
725    /// Got temporary error %d '%s' from %s
726    ER_GET_TEMPORARY_ERRMSG = 1297,
727    /// Unknown or incorrect time zone: '%s'
728    ER_UNKNOWN_TIME_ZONE = 1298,
729    /// Invalid TIMESTAMP value in column '%s' at row %ld
730    ER_WARN_INVALID_TIMESTAMP = 1299,
731    /// Invalid %s character string: '%s'
732    ER_INVALID_CHARACTER_STRING = 1300,
733    /// Result of %s() was larger than max_allowed_packet (%ld) - truncated
734    ER_WARN_ALLOWED_PACKET_OVERFLOWED = 1301,
735    /// Conflicting declarations: '%s%s' and '%s%s'
736    ER_CONFLICTING_DECLARATIONS = 1302,
737    /// Can't create a %s from within another stored routine
738    ER_SP_NO_RECURSIVE_CREATE = 1303,
739    /// %s %s already exists
740    ER_SP_ALREADY_EXISTS = 1304,
741    /// %s %s does not exist
742    ER_SP_DOES_NOT_EXIST = 1305,
743    /// Failed to DROP %s %s
744    ER_SP_DROP_FAILED = 1306,
745    /// Failed to CREATE %s %s
746    ER_SP_STORE_FAILED = 1307,
747    /// %s with no matching label: %s
748    ER_SP_LILABEL_MISMATCH = 1308,
749    /// Redefining label %s
750    ER_SP_LABEL_REDEFINE = 1309,
751    /// End-label %s without match
752    ER_SP_LABEL_MISMATCH = 1310,
753    /// Referring to uninitialized variable %s
754    ER_SP_UNINIT_VAR = 1311,
755    /// PROCEDURE %s can't return a result set in the given context
756    ER_SP_BADSELECT = 1312,
757    /// RETURN is only allowed in a FUNCTION
758    ER_SP_BADRETURN = 1313,
759    /// %s is not allowed in stored procedures
760    ER_SP_BADSTATEMENT = 1314,
761    /// The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored. This option will be removed in MariaDB 5.6.
762    ER_UPDATE_LOG_DEPRECATED_IGNORED = 1315,
763    /// The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN. This option will be removed in MariaDB 5.6.
764    ER_UPDATE_LOG_DEPRECATED_TRANSLATED = 1316,
765    /// Query execution was interrupted
766    ER_QUERY_INTERRUPTED = 1317,
767    /// Incorrect number of arguments for %s %s; expected %u, got %u
768    ER_SP_WRONG_NO_OF_ARGS = 1318,
769    /// Undefined CONDITION: %s
770    ER_SP_COND_MISMATCH = 1319,
771    /// No RETURN found in FUNCTION %s
772    ER_SP_NORETURN = 1320,
773    /// FUNCTION %s ended without RETURN
774    ER_SP_NORETURNEND = 1321,
775    /// Cursor statement must be a SELECT
776    ER_SP_BAD_CURSOR_QUERY = 1322,
777    /// Cursor SELECT must not have INTO
778    ER_SP_BAD_CURSOR_SELECT = 1323,
779    /// Undefined CURSOR: %s
780    ER_SP_CURSOR_MISMATCH = 1324,
781    /// Cursor is already open
782    ER_SP_CURSOR_ALREADY_OPEN = 1325,
783    /// Cursor is not open
784    ER_SP_CURSOR_NOT_OPEN = 1326,
785    /// Undeclared variable: %s
786    ER_SP_UNDECLARED_VAR = 1327,
787    /// Incorrect number of FETCH variables
788    ER_SP_WRONG_NO_OF_FETCH_ARGS = 1328,
789    /// No data - zero rows fetched, selected, or processed
790    ER_SP_FETCH_NO_DATA = 1329,
791    /// Duplicate parameter: %s
792    ER_SP_DUP_PARAM = 1330,
793    /// Duplicate variable: %s
794    ER_SP_DUP_VAR = 1331,
795    /// Duplicate condition: %s
796    ER_SP_DUP_COND = 1332,
797    /// Duplicate cursor: %s
798    ER_SP_DUP_CURS = 1333,
799    /// Failed to ALTER %s %s
800    ER_SP_CANT_ALTER = 1334,
801    /// Subquery value not supported
802    ER_SP_SUBSELECT_NYI = 1335,
803    /// %s is not allowed in stored function or trigger
804    ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG = 1336,
805    /// Variable or condition declaration after cursor or handler declaration
806    ER_SP_VARCOND_AFTER_CURSHNDLR = 1337,
807    /// Cursor declaration after handler declaration
808    ER_SP_CURSOR_AFTER_HANDLER = 1338,
809    /// Case not found for CASE statement
810    ER_SP_CASE_NOT_FOUND = 1339,
811    /// Configuration file '%s' is too big
812    ER_FPARSER_TOO_BIG_FILE = 1340,
813    /// Malformed file type header in file '%s'
814    ER_FPARSER_BAD_HEADER = 1341,
815    /// Unexpected end of file while parsing comment '%s'
816    ER_FPARSER_EOF_IN_COMMENT = 1342,
817    /// Error while parsing parameter '%s' (line: '%s')
818    ER_FPARSER_ERROR_IN_PARAMETER = 1343,
819    /// Unexpected end of file while skipping unknown parameter '%s'
820    ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER = 1344,
821    /// EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
822    ER_VIEW_NO_EXPLAIN = 1345,
823    /// File '%s' has unknown type '%s' in its header
824    ER_FRM_UNKNOWN_TYPE = 1346,
825    /// '%s.%s' is not %s
826    ER_WRONG_OBJECT = 1347,
827    /// Column '%s' is not updatable
828    ER_NONUPDATEABLE_COLUMN = 1348,
829    /// View's SELECT contains a subquery in the FROM clause
830    ER_VIEW_SELECT_DERIVED = 1349,
831    /// View's SELECT contains a '%s' clause
832    ER_VIEW_SELECT_CLAUSE = 1350,
833    /// View's SELECT contains a variable or parameter
834    ER_VIEW_SELECT_VARIABLE = 1351,
835    /// View's SELECT refers to a temporary table '%s'
836    ER_VIEW_SELECT_TMPTABLE = 1352,
837    /// View's SELECT and view's field list have different column counts
838    ER_VIEW_WRONG_LIST = 1353,
839    /// View merge algorithm can't be used here for now (assumed undefined algorithm)
840    ER_WARN_VIEW_MERGE = 1354,
841    /// View being updated does not have complete key of underlying table in it
842    ER_WARN_VIEW_WITHOUT_KEY = 1355,
843    /// View '%s.%s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
844    ER_VIEW_INVALID = 1356,
845    /// Can't drop or alter a %s from within another stored routine
846    ER_SP_NO_DROP_SP = 1357,
847    /// GOTO is not allowed in a stored procedure handler
848    ER_SP_GOTO_IN_HNDLR = 1358,
849    /// Trigger already exists
850    ER_TRG_ALREADY_EXISTS = 1359,
851    /// Trigger does not exist
852    ER_TRG_DOES_NOT_EXIST = 1360,
853    /// Trigger's '%s' is view or temporary table
854    ER_TRG_ON_VIEW_OR_TEMP_TABLE = 1361,
855    /// Updating of %s row is not allowed in %strigger
856    ER_TRG_CANT_CHANGE_ROW = 1362,
857    /// There is no %s row in %s trigger
858    ER_TRG_NO_SUCH_ROW_IN_TRG = 1363,
859    /// Field '%s' doesn't have a default value
860    ER_NO_DEFAULT_FOR_FIELD = 1364,
861    /// Division by 0
862    ER_DIVISION_BY_ZER = 1365,
863    /// Incorrect %s value: '%s' for column '%s' at row %ld
864    ER_TRUNCATED_WRONG_VALUE_FOR_FIELD = 1366,
865    /// Illegal %s '%s' value found during parsing
866    ER_ILLEGAL_VALUE_FOR_TYPE = 1367,
867    /// CHECK OPTION on non-updatable view '%s.%s'
868    ER_VIEW_NONUPD_CHECK = 1368,
869    /// CHECK OPTION failed '%s.%s'
870    ER_VIEW_CHECK_FAILED = 1369,
871    /// %s command denied to user '%s'@'%s' for routine '%s'
872    ER_PROCACCESS_DENIED_ERROR = 1370,
873    /// Failed purging old relay logs: %s
874    ER_RELAY_LOG_FAIL = 1371,
875    /// Password hash should be a %d-digit hexadecimal number
876    ER_PASSWD_LENGTH = 1372,
877    /// Target log not found in binlog index
878    ER_UNKNOWN_TARGET_BINLOG = 1373,
879    /// I/O error reading log index file
880    ER_IO_ERR_LOG_INDEX_READ = 1374,
881    /// Server configuration does not permit binlog purge
882    ER_BINLOG_PURGE_PROHIBITED = 1375,
883    /// Failed on fseek()
884    ER_FSEEK_FAIL = 1376,
885    /// Fatal error during log purge
886    ER_BINLOG_PURGE_FATAL_ERR = 1377,
887    /// A purgeable log is in use, will not purge
888    ER_LOG_IN_USE = 1378,
889    /// Unknown error during log purge
890    ER_LOG_PURGE_UNKNOWN_ERR = 1379,
891    /// Failed initializing relay log position: %s
892    ER_RELAY_LOG_INIT = 1380,
893    /// You are not using binary logging
894    ER_NO_BINARY_LOGGING = 1381,
895    /// The '%s' syntax is reserved for purposes internal to the MariaDB server
896    ER_RESERVED_SYNTAX = 1382,
897    /// WSAStartup Failed
898    ER_WSAS_FAILED = 1383,
899    /// Can't handle procedures with different groups yet
900    ER_DIFF_GROUPS_PROC = 1384,
901    /// Select must have a group with this procedure
902    ER_NO_GROUP_FOR_PROC = 1385,
903    /// Can't use ORDER clause with this procedure
904    ER_ORDER_WITH_PROC = 1386,
905    /// Binary logging and replication forbid changing the global server %s
906    ER_LOGGING_PROHIBIT_CHANGING_OF = 1387,
907    /// Can't map file: %s, errno: %d
908    ER_NO_FILE_MAPPING = 1388,
909    /// Wrong magic in %s
910    ER_WRONG_MAGIC = 1389,
911    /// Prepared statement contains too many placeholders
912    ER_PS_MANY_PARAM = 1390,
913    /// Key part '%s' length cannot be 0
914    ER_KEY_PART_0 = 1391,
915    /// View text checksum failed
916    ER_VIEW_CHECKSUM = 1392,
917    /// Can not modify more than one base table through a join view '%s.%s'
918    ER_VIEW_MULTIUPDATE = 1393,
919    /// Can not insert into join view '%s.%s' without fields list
920    ER_VIEW_NO_INSERT_FIELD_LIST = 1394,
921    /// Can not delete from join view '%s.%s'
922    ER_VIEW_DELETE_MERGE_VIEW = 1395,
923    /// Operation %s failed for %s
924    ER_CANNOT_USER = 1396,
925    /// XAER_NOTA: Unknown XID
926    ER_XAER_NOTA = 1397,
927    /// XAER_INVAL: Invalid arguments (or unsupported command)
928    ER_XAER_INVAL = 1398,
929    /// XAER_RMFAIL: The command cannot be executed when global transaction is in the %s state
930    ER_XAER_RMFAIL = 1399,
931    /// XAER_OUTSIDE: Some work is done outside global transaction
932    ER_XAER_OUTSIDE = 1400,
933    /// XAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistency
934    ER_XAER_RMERR = 1401,
935    /// XA_RBROLLBACK: Transaction branch was rolled back
936    ER_XA_RBROLLBACK = 1402,
937    /// There is no such grant defined for user '%s' on host '%s' on routine '%s'
938    ER_NONEXISTING_PROC_GRANT = 1403,
939    /// Failed to grant EXECUTE and ALTER ROUTINE privileges
940    ER_PROC_AUTO_GRANT_FAIL = 1404,
941    /// Failed to revoke all privileges to dropped routine
942    ER_PROC_AUTO_REVOKE_FAIL = 1405,
943    /// Data too long for column '%s' at row %ld
944    ER_DATA_TOO_LONG = 1406,
945    /// Bad SQLSTATE: '%s'
946    ER_SP_BAD_SQLSTATE = 1407,
947    /// %s: ready for connections. Version: '%s' socket: '%s' port: %d %s
948    ER_STARTUP = 1408,
949    /// Can't load value from file with fixed size rows to variable
950    ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR = 1409,
951    /// You are not allowed to create a user with GRANT
952    ER_CANT_CREATE_USER_WITH_GRANT = 1410,
953    /// Incorrect %s value: '%s' for function %s
954    ER_WRONG_VALUE_FOR_TYPE = 1411,
955    /// Table definition has changed, please retry transaction
956    ER_TABLE_DEF_CHANGED = 1412,
957    /// Duplicate handler declared in the same block
958    ER_SP_DUP_HANDLER = 1413,
959    /// OUT or INOUT argument %d for routine %s is not a variable or NEW pseudo-variable in BEFORE trigger
960    ER_SP_NOT_VAR_ARG = 1414,
961    /// Not allowed to return a result set from a %s
962    ER_SP_NO_RETSET = 1415,
963    /// Cannot get geometry object from data you send to the GEOMETRY field
964    ER_CANT_CREATE_GEOMETRY_OBJECT = 1416,
965    /// A routine failed and has neither NO SQL nor READS SQL DATA in its declaration and binary logging is enabled; if non-transactional tables were updated, the binary log will miss their changes
966    ER_FAILED_ROUTINE_BREAK_BINLOG = 1417,
967    /// This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
968    ER_BINLOG_UNSAFE_ROUTINE = 1418,
969    /// You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
970    ER_BINLOG_CREATE_ROUTINE_NEED_SUPER = 1419,
971    /// You can't execute a prepared statement which has an open cursor associated with it. Reset the statement to re-execute it.
972    ER_EXEC_STMT_WITH_OPEN_CURSOR = 1420,
973    /// The statement (%lu) has no open cursor.
974    ER_STMT_HAS_NO_OPEN_CURSOR = 1421,
975    /// Explicit or implicit commit is not allowed in stored function or trigger.
976    ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG = 1422,
977    /// Field of view '%s.%s' underlying table doesn't have a default value
978    ER_NO_DEFAULT_FOR_VIEW_FIELD = 1423,
979    /// Recursive stored functions and triggers are not allowed.
980    ER_SP_NO_RECURSION = 1424,
981    /// Too big scale %d specified for column '%s'. Maximum is %lu.
982    ER_TOO_BIG_SCALE = 1425,
983    /// Too big precision %d specified for column '%s'. Maximum is %lu.
984    ER_TOO_BIG_PRECISION = 1426,
985    /// For float(M,D, double(M,D or decimal(M,D, M must be >= D (column '%s').
986    ER_M_BIGGER_THAN_D = 1427,
987    /// You can't combine write-locking of system tables with other tables or lock types
988    ER_WRONG_LOCK_OF_SYSTEM_TABLE = 1428,
989    /// Unable to connect to foreign data source: %s
990    ER_CONNECT_TO_FOREIGN_DATA_SOURCE = 1429,
991    /// There was a problem processing the query on the foreign data source. Data source error: %s
992    ER_QUERY_ON_FOREIGN_DATA_SOURCE = 1430,
993    /// The foreign data source you are trying to reference does not exist. Data source error: %s
994    ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST = 1431,
995    /// Can't create federated table. The data source connection string '%s' is not in the correct format
996    ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE = 1432,
997    /// The data source connection string '%s' is not in the correct format
998    ER_FOREIGN_DATA_STRING_INVALID = 1433,
999    /// Can't create federated table. Foreign data src error: %s
1000    ER_CANT_CREATE_FEDERATED_TABLE = 1434,
1001    /// Trigger in wrong schema
1002    ER_TRG_IN_WRONG_SCHEMA = 1435,
1003    /// Thread stack overrun: %ld bytes used of a %ld byte stack, and %ld bytes needed. Use 'mysqld --thread_stack=#' to specify a bigger stack.
1004    ER_STACK_OVERRUN_NEED_MORE = 1436,
1005    /// Routine body for '%s' is too long
1006    ER_TOO_LONG_BODY = 1437,
1007    /// Cannot drop default keycache
1008    ER_WARN_CANT_DROP_DEFAULT_KEYCACHE = 1438,
1009    /// Display width out of range for column '%s' (max = %lu)
1010    ER_TOO_BIG_DISPLAYWIDTH = 1439,
1011    /// XAER_DUPID: The XID already exists
1012    ER_XAER_DUPID = 1440,
1013    /// Datetime function: %s field overflow
1014    ER_DATETIME_FUNCTION_OVERFLOW = 1441,
1015    /// Can't update table '%s' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.
1016    ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG = 1442,
1017    /// The definition of table '%s' prevents operation %s on table '%s'.
1018    ER_VIEW_PREVENT_UPDATE = 1443,
1019    /// The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
1020    ER_PS_NO_RECURSION = 1444,
1021    /// Not allowed to set autocommit from a stored function or trigger
1022    ER_SP_CANT_SET_AUTOCOMMIT = 1445,
1023    /// Definer is not fully qualified
1024    ER_MALFORMED_DEFINER = 1446,
1025    /// View '%s'.'%s' has no definer information (old table format). Current user is used as definer. Please recreate the view!
1026    ER_VIEW_FRM_NO_USER = 1447,
1027    /// You need the SUPER privilege for creation view with '%s'@'%s' definer
1028    ER_VIEW_OTHER_USER = 1448,
1029    /// The user specified as a definer ('%s'@'%s') does not exist
1030    ER_NO_SUCH_USER = 1449,
1031    /// Changing schema from '%s' to '%s' is not allowed.
1032    ER_FORBID_SCHEMA_CHANGE = 1450,
1033    /// Cannot delete or update a parent row: a foreign key constraint fails (%s)
1034    ER_ROW_IS_REFERENCED_2 = 1451,
1035    /// Cannot add or update a child row: a foreign key constraint fails (%s)
1036    ER_NO_REFERENCED_ROW_2 = 1452,
1037    /// Variable '%s' must be quoted with `...`, or renamed
1038    ER_SP_BAD_VAR_SHADOW = 1453,
1039    /// No definer attribute for trigger '%s'.'%s'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger.
1040    ER_TRG_NO_DEFINER = 1454,
1041    /// '%s' has an old format, you should re-create the '%s' object(s)
1042    ER_OLD_FILE_FORMAT = 1455,
1043    /// Recursive limit %d (as set by the max_sp_recursion_depth variable) was exceeded for routine %s
1044    ER_SP_RECURSION_LIMIT = 1456,
1045    /// Failed to load routine %s. The table mysql.proc is missing, corrupt, or contains bad data (internal code %d)
1046    ER_SP_PROC_TABLE_CORRUPT = 1457,
1047    /// Incorrect routine name '%s'
1048    ER_SP_WRONG_NAME = 1458,
1049    /// Table upgrade required. Please do "REPAIR TABLE `%s`" or dump/reload to fix it!
1050    ER_TABLE_NEEDS_UPGRADE = 1459,
1051    /// AGGREGATE is not supported for stored functions
1052    ER_SP_NO_AGGREGATE = 1460,
1053    /// Can't create more than max_prepared_stmt_count statements (current value: %lu)
1054    ER_MAX_PREPARED_STMT_COUNT_REACHED = 1461,
1055    /// `%s`.`%s` contains view recursion
1056    ER_VIEW_RECURSIVE = 1462,
1057    /// Non-grouping field '%s' is used in %s clause
1058    ER_NON_GROUPING_FIELD_USED = 1463,
1059    /// The used table type doesn't support SPATIAL indexes
1060    ER_TABLE_CANT_HANDLE_SPKEYS = 1464,
1061    /// Triggers can not be created on system tables
1062    ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA = 1465,
1063    /// Leading spaces are removed from name '%s'
1064    ER_REMOVED_SPACES = 1466,
1065    /// Failed to read auto-increment value from storage engine
1066    ER_AUTOINC_READ_FAILED = 1467,
1067    /// user name
1068    ER_USERNAME = 1468,
1069    /// host name
1070    ER_HOSTNAME = 1469,
1071    /// String '%s' is too long for %s (should be no longer than %d)
1072    ER_WRONG_STRING_LENGTH = 1470,
1073    /// The target table %s of the %s is not insertable-into
1074    ER_NON_INSERTABLE_TABLE = 1471,
1075    /// Table '%s' is differently defined or of non-MyISAM type or doesn't exist
1076    ER_ADMIN_WRONG_MRG_TABLE = 1472,
1077    /// Too high level of nesting for select
1078    ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT = 1473,
1079    /// Name '%s' has become ''
1080    ER_NAME_BECOMES_EMPTY = 1474,
1081    /// First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
1082    ER_AMBIGUOUS_FIELD_TERM = 1475,
1083    /// The foreign server, %s, you are trying to create already exists.
1084    ER_FOREIGN_SERVER_EXISTS = 1476,
1085    /// The foreign server name you are trying to reference does not exist. Data source error: %s
1086    ER_FOREIGN_SERVER_DOESNT_EXIST = 1477,
1087    /// Table storage engine '%s' does not support the create option '%s'
1088    ER_ILLEGAL_HA_CREATE_OPTION = 1478,
1089    /// Syntax error: %s PARTITIONING requires definition of VALUES %s for each partition
1090    ER_PARTITION_REQUIRES_VALUES_ERROR = 1479,
1091    /// Only %s PARTITIONING can use VALUES %s in partition definition
1092    ER_PARTITION_WRONG_VALUES_ERROR = 1480,
1093    /// MAXVALUE can only be used in last partition definition
1094    ER_PARTITION_MAXVALUE_ERROR = 1481,
1095    /// Subpartitions can only be hash partitions and by key
1096    ER_PARTITION_SUBPARTITION_ERROR = 1482,
1097    /// Must define subpartitions on all partitions if on one partition
1098    ER_PARTITION_SUBPART_MIX_ERROR = 1483,
1099    /// Wrong number of partitions defined, mismatch with previous setting
1100    ER_PARTITION_WRONG_NO_PART_ERROR = 1484,
1101    /// Wrong number of subpartitions defined, mismatch with previous setting
1102    ER_PARTITION_WRONG_NO_SUBPART_ERROR = 1485,
1103    /// Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
1104    ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR = 1486,
1105    /// Expression in RANGE/LIST VALUES must be constant
1106    ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR = 1487,
1107    /// Field in list of fields for partition function not found in table
1108    ER_FIELD_NOT_FOUND_PART_ERROR = 1488,
1109    /// List of fields is only allowed in KEY partitions
1110    ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR = 1489,
1111    /// The partition info in the frm file is not consistent with what can be written into the frm file
1112    ER_INCONSISTENT_PARTITION_INFO_ERROR = 1490,
1113    /// The %s function returns the wrong type
1114    ER_PARTITION_FUNC_NOT_ALLOWED_ERROR = 1491,
1115    /// For %s partitions each partition must be defined
1116    ER_PARTITIONS_MUST_BE_DEFINED_ERROR = 1492,
1117    /// VALUES LESS THAN value must be strictly increasing for each partition
1118    ER_RANGE_NOT_INCREASING_ERROR = 1493,
1119    /// VALUES value must be of same type as partition function
1120    ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR = 1494,
1121    /// Multiple definition of same constant in list partitioning
1122    ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR = 1495,
1123    /// Partitioning can not be used stand-alone in query
1124    ER_PARTITION_ENTRY_ERROR = 1496,
1125    /// The mix of handlers in the partitions is not allowed in this version of MariaDB
1126    ER_MIX_HANDLER_ERROR = 1497,
1127    /// For the partitioned engine it is necessary to define all %s
1128    ER_PARTITION_NOT_DEFINED_ERROR = 1498,
1129    /// Too many partitions (including subpartitions) were defined
1130    ER_TOO_MANY_PARTITIONS_ERROR = 1499,
1131    /// It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
1132    ER_SUBPARTITION_ERROR = 1500,
1133    /// Failed to create specific handler file
1134    ER_CANT_CREATE_HANDLER_FILE = 1501,
1135    /// A BLOB field is not allowed in partition function
1136    ER_BLOB_FIELD_IN_PART_FUNC_ERROR = 1502,
1137    /// A %s must include all columns in the table's partitioning function
1138    ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF = 1503,
1139    /// Number of %s = 0 is not an allowed value
1140    ER_NO_PARTS_ERROR = 1504,
1141    /// Partition management on a not partitioned table is not possible
1142    ER_PARTITION_MGMT_ON_NONPARTITIONED = 1505,
1143    /// Foreign key clause is not yet supported in conjunction with partitioning
1144    ER_FOREIGN_KEY_ON_PARTITIONED = 1506,
1145    /// Error in list of partitions to %s
1146    ER_DROP_PARTITION_NON_EXISTENT = 1507,
1147    /// Cannot remove all partitions, use DROP TABLE instead
1148    ER_DROP_LAST_PARTITION = 1508,
1149    /// COALESCE PARTITION can only be used on HASH/KEY partitions
1150    ER_COALESCE_ONLY_ON_HASH_PARTITION = 1509,
1151    /// REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
1152    ER_REORG_HASH_ONLY_ON_SAME_N = 1510,
1153    /// REORGANIZE PARTITION without parameters can only be used on auto-partitioned tables using HASH PARTITIONs
1154    ER_REORG_NO_PARAM_ERROR = 1511,
1155    /// %s PARTITION can only be used on RANGE/LIST partitions
1156    ER_ONLY_ON_RANGE_LIST_PARTITION = 1512,
1157    /// Trying to Add partition(s) with wrong number of subpartitions
1158    ER_ADD_PARTITION_SUBPART_ERROR = 1513,
1159    /// At least one partition must be added
1160    ER_ADD_PARTITION_NO_NEW_PARTITION = 1514,
1161    /// At least one partition must be coalesced
1162    ER_COALESCE_PARTITION_NO_PARTITION = 1515,
1163    /// More partitions to reorganize than there are partitions
1164    ER_REORG_PARTITION_NOT_EXIST = 1516,
1165    /// Duplicate partition name %s
1166    ER_SAME_NAME_PARTITION = 1517,
1167    /// It is not allowed to shut off binlog on this command
1168    ER_NO_BINLOG_ERROR = 1518,
1169    /// When reorganizing a set of partitions they must be in consecutive order
1170    ER_CONSECUTIVE_REORG_PARTITIONS = 1519,
1171    /// Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range
1172    ER_REORG_OUTSIDE_RANGE = 1520,
1173    /// Partition function not supported in this version for this handler
1174    ER_PARTITION_FUNCTION_FAILURE = 1521,
1175    /// Partition state cannot be defined from CREATE/ALTER TABLE
1176    ER_PART_STATE_ERROR = 1522,
1177    /// The %s handler only supports 32 bit integers in VALUES
1178    ER_LIMITED_PART_RANGE = 1523,
1179    /// Plugin '%s' is not loaded
1180    ER_PLUGIN_IS_NOT_LOADED = 1524,
1181    /// Incorrect %s value: '%s'
1182    ER_WRONG_VALUE = 1525,
1183    /// Table has no partition for value %s
1184    ER_NO_PARTITION_FOR_GIVEN_VALUE = 1526,
1185    /// It is not allowed to specify %s more than once
1186    ER_FILEGROUP_OPTION_ONLY_ONCE = 1527,
1187    /// Failed to create %s
1188    ER_CREATE_FILEGROUP_FAILED = 1528,
1189    /// Failed to drop %s
1190    ER_DROP_FILEGROUP_FAILED = 1529,
1191    /// The handler doesn't support autoextend of tablespaces
1192    ER_TABLESPACE_AUTO_EXTEND_ERROR = 1530,
1193    /// A size parameter was incorrectly specified, either number or on the form 10M
1194    ER_WRONG_SIZE_NUMBER = 1531,
1195    /// The size number was correct but we don't allow the digit part to be more than 2 billion
1196    ER_SIZE_OVERFLOW_ERROR = 1532,
1197    /// Failed to alter: %s
1198    ER_ALTER_FILEGROUP_FAILED = 1533,
1199    /// Writing one row to the row-based binary log failed
1200    ER_BINLOG_ROW_LOGGING_FAILED = 1534,
1201    /// Table definition on master and slave does not match: %s
1202    ER_BINLOG_ROW_WRONG_TABLE_DEF = 1535,
1203    /// Slave running with --log-slave-updates must use row-based binary logging to be able to replicate row-based binary log events
1204    ER_BINLOG_ROW_RBR_TO_SBR = 1536,
1205    /// Event '%s' already exists
1206    ER_EVENT_ALREADY_EXISTS = 1537,
1207    /// Failed to store event %s. Error code %d from storage engine.
1208    ER_EVENT_STORE_FAILED = 1538,
1209    /// Unknown event '%s'
1210    ER_EVENT_DOES_NOT_EXIST = 1539,
1211    /// Failed to alter event '%s'
1212    ER_EVENT_CANT_ALTER = 1540,
1213    /// Failed to drop %s
1214    ER_EVENT_DROP_FAILED = 1541,
1215    /// INTERVAL is either not positive or too big
1216    ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG = 1542,
1217    /// ENDS is either invalid or before STARTS
1218    ER_EVENT_ENDS_BEFORE_STARTS = 1543,
1219    /// Event execution time is in the past. Event has been disabled
1220    ER_EVENT_EXEC_TIME_IN_THE_PAST = 1544,
1221    /// Failed to open mysql.event
1222    ER_EVENT_OPEN_TABLE_FAILED = 1545,
1223    /// No datetime expression provided
1224    ER_EVENT_NEITHER_M_EXPR_NOR_M_AT = 1546,
1225    /// Column count of mysql.%s is wrong. Expected %d, found %d. The table is probably corrupted
1226    ER_COL_COUNT_DOESNT_MATCH_CORRUPTED = 1547,
1227    /// Cannot load from mysql.%s. The table is probably corrupted
1228    ER_CANNOT_LOAD_FROM_TABLE = 1548,
1229    /// Failed to delete the event from mysql.event
1230    ER_EVENT_CANNOT_DELETE = 1549,
1231    /// Error during compilation of event's body
1232    ER_EVENT_COMPILE_ERROR = 1550,
1233    /// Same old and new event name
1234    ER_EVENT_SAME_NAME = 1551,
1235    /// Data for column '%s' too long
1236    ER_EVENT_DATA_TOO_LONG = 1552,
1237    /// Cannot drop index '%s': needed in a foreign key constraint
1238    ER_DROP_INDEX_FK = 1553,
1239    /// The syntax '%s' is deprecated and will be removed in MariaDB %s. Please use %s instead
1240    ER_WARN_DEPRECATED_SYNTAX_WITH_VER = 1554,
1241    /// You can't write-lock a log table. Only read access is possible
1242    ER_CANT_WRITE_LOCK_LOG_TABLE = 1555,
1243    /// You can't use locks with log tables.
1244    ER_CANT_LOCK_LOG_TABLE = 1556,
1245    /// Upholding foreign key constraints for table '%s', entry '%s', key %d would lead to a duplicate entry
1246    ER_FOREIGN_DUPLICATE_KEY = 1557,
1247    /// Column count of mysql.%s is wrong. Expected %d, found %d. Created with MariaDB %d, now running %d. Please use mysql_upgrade to fix this error.
1248    ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE = 1558,
1249    /// Cannot switch out of the row-based binary log format when the session has open temporary tables
1250    ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR = 1559,
1251    /// Cannot change the binary logging format inside a stored function or trigger
1252    ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1560,
1253    /// The NDB cluster engine does not support changing the binlog format on the fly yet
1254    ER_NDB_CANT_SWITCH_BINLOG_FORMAT = 1561,
1255    /// Cannot create temporary table with partitions
1256    ER_PARTITION_NO_TEMPORARY = 1562,
1257    /// Partition constant is out of partition function domain
1258    ER_PARTITION_CONST_DOMAIN_ERROR = 1563,
1259    /// This partition function is not allowed
1260    ER_PARTITION_FUNCTION_IS_NOT_ALLOWED = 1564,
1261    /// Error in DDL log
1262    ER_DDL_LOG_ERROR = 1565,
1263    /// Not allowed to use NULL value in VALUES LESS THAN
1264    ER_NULL_IN_VALUES_LESS_THAN = 1566,
1265    /// Incorrect partition name
1266    ER_WRONG_PARTITION_NAME = 1567,
1267    /// Transaction isolation level can't be changed while a transaction is in progress
1268    ER_CANT_CHANGE_TX_ISOLATION = 1568,
1269    /// ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '%s' for key '%s'
1270    ER_DUP_ENTRY_AUTOINCREMENT_CASE = 1569,
1271    /// Internal scheduler error %d
1272    ER_EVENT_MODIFY_QUEUE_ERROR = 1570,
1273    /// Error during starting/stopping of the scheduler. Error code %u
1274    ER_EVENT_SET_VAR_ERROR = 1571,
1275    /// Engine cannot be used in partitioned tables
1276    ER_PARTITION_MERGE_ERROR = 1572,
1277    /// Cannot activate '%s' log
1278    ER_CANT_ACTIVATE_LOG = 1573,
1279    /// The server was not built with row-based replication
1280    ER_RBR_NOT_AVAILABLE = 1574,
1281    /// Decoding of base64 string failed
1282    ER_BASE64_DECODE_ERROR = 1575,
1283    /// Recursion of EVENT DDL statements is forbidden when body is present
1284    ER_EVENT_RECURSION_FORBIDDEN = 1576,
1285    /// Cannot proceed because system tables used by Event Scheduler were found damaged at server start
1286    ER_EVENTS_DB_ERROR = 1577,
1287    /// Only integers allowed as number here
1288    ER_ONLY_INTEGERS_ALLOWED = 1578,
1289    /// This storage engine cannot be used for log tables"
1290    ER_UNSUPORTED_LOG_ENGINE = 1579,
1291    /// You cannot '%s' a log table if logging is enabled
1292    ER_BAD_LOG_STATEMENT = 1580,
1293    /// Cannot rename '%s'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to '%s'
1294    ER_CANT_RENAME_LOG_TABLE = 1581,
1295    /// Incorrect parameter count in the call to native function '%s'
1296    ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT = 1582,
1297    /// Incorrect parameters in the call to native function '%s'
1298    ER_WRONG_PARAMETERS_TO_NATIVE_FCT = 1583,
1299    /// Incorrect parameters in the call to stored function '%s'
1300    ER_WRONG_PARAMETERS_TO_STORED_FCT = 1584,
1301    /// This function '%s' has the same name as a native function
1302    ER_NATIVE_FCT_NAME_COLLISION = 1585,
1303    /// Duplicate entry '%s' for key '%s'
1304    ER_DUP_ENTRY_WITH_KEY_NAME = 1586,
1305    /// Too many files opened, please execute the command again
1306    ER_BINLOG_PURGE_EMFILE = 1587,
1307    /// Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
1308    ER_EVENT_CANNOT_CREATE_IN_THE_PAST = 1588,
1309    /// Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
1310    ER_EVENT_CANNOT_ALTER_IN_THE_PAST = 1589,
1311    /// The incident %s occured on the master. Message: %s
1312    ER_SLAVE_INCIDENT = 1590,
1313    /// Table has no partition for some existing values
1314    ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT = 1591,
1315    /// Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. %s
1316    ER_BINLOG_UNSAFE_STATEMENT = 1592,
1317    /// Fatal error: %s
1318    ER_SLAVE_FATAL_ERROR = 1593,
1319    /// Relay log read failure: %s
1320    ER_SLAVE_RELAY_LOG_READ_FAILURE = 1594,
1321    /// Relay log write failure: %s
1322    ER_SLAVE_RELAY_LOG_WRITE_FAILURE = 1595,
1323    /// Failed to create %s
1324    ER_SLAVE_CREATE_EVENT_FAILURE = 1596,
1325    /// Master command %s failed: %s
1326    ER_SLAVE_MASTER_COM_FAILURE = 1597,
1327    /// Binary logging not possible. Message: %s
1328    ER_BINLOG_LOGGING_IMPOSSIBLE = 1598,
1329    /// View `%s`.`%s` has no creation context
1330    ER_VIEW_NO_CREATION_CTX = 1599,
1331    /// Creation context of view `%s`.`%s' is invalid
1332    ER_VIEW_INVALID_CREATION_CTX = 1600,
1333    /// Creation context of stored routine `%s`.`%s` is invalid
1334    ER_SR_INVALID_CREATION_CTX = 1601,
1335    /// Corrupted TRG file for table `%s`.`%s`
1336    ER_TRG_CORRUPTED_FILE = 1602,
1337    /// Triggers for table `%s`.`%s` have no creation context
1338    ER_TRG_NO_CREATION_CTX = 1603,
1339    /// Trigger creation context of table `%s`.`%s` is invalid
1340    ER_TRG_INVALID_CREATION_CTX = 1604,
1341    /// Creation context of event `%s`.`%s` is invalid
1342    ER_EVENT_INVALID_CREATION_CTX = 1605,
1343    /// Cannot open table for trigger `%s`.`%s`
1344    ER_TRG_CANT_OPEN_TABLE = 1606,
1345    /// Cannot create stored routine `%s`. Check warnings
1346    ER_CANT_CREATE_SROUTINE = 1607,
1347    /// You should never see it
1348    ER_UNUSED_11 = 1608,
1349    /// The BINLOG statement of type `%s` was not preceded by a format description BINLOG statement.
1350    ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT = 1609,
1351    /// Corrupted replication event was detected
1352    ER_SLAVE_CORRUPT_EVENT = 1610,
1353    /// Invalid column reference (%s) in LOAD DATA
1354    ER_LOAD_DATA_INVALID_COLUMN = 1611,
1355    /// Being purged log %s was not found
1356    ER_LOG_PURGE_NO_FILE = 1612,
1357    /// XA_RBTIMEOUT: Transaction branch was rolled back: took too long
1358    ER_XA_RBTIMEOUT = 1613,
1359    /// XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected
1360    ER_XA_RBDEADLOCK = 1614,
1361    /// Prepared statement needs to be re-prepared
1362    ER_NEED_REPREPARE = 1615,
1363    /// DELAYED option not supported for table '%s'
1364    ER_DELAYED_NOT_SUPPORTED = 1616,
1365    /// The master info structure does not exist
1366    WARN_NO_MASTER_INF = 1617,
1367    /// <%s> option ignored
1368    WARN_OPTION_IGNORED = 1618,
1369    /// Built-in plugins cannot be deleted
1370    WARN_PLUGIN_DELETE_BUILTIN = 1619,
1371    /// Plugin is busy and will be uninstalled on shutdown
1372    WARN_PLUGIN_BUSY = 1620,
1373    /// %s variable '%s' is read-only. Use SET %s to assign the value
1374    ER_VARIABLE_IS_READONLY = 1621,
1375    /// Storage engine %s does not support rollback for this statement. Transaction rolled back and must be restarted
1376    ER_WARN_ENGINE_TRANSACTION_ROLLBACK = 1622,
1377    /// Unexpected master's heartbeat data: %s
1378    ER_SLAVE_HEARTBEAT_FAILURE = 1623,
1379    /// The requested value for the heartbeat period is either negative or exceeds the maximum allowed (%s seconds).
1380    ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624,
1381    /// Bad schema for mysql.ndb_replication table. Message: %s
1382    ER_NDB_REPLICATION_SCHEMA_ERROR = 1625,
1383    /// Error in parsing conflict function. Message: %s
1384    ER_CONFLICT_FN_PARSE_ERROR = 1626,
1385    /// Write to exceptions table failed. Message: %s"
1386    ER_EXCEPTIONS_WRITE_ERROR = 1627,
1387    /// Comment for table '%s' is too long (max = %lu)
1388    ER_TOO_LONG_TABLE_COMMENT = 1628,
1389    /// Comment for field '%s' is too long (max = %lu)
1390    ER_TOO_LONG_FIELD_COMMENT = 1629,
1391    /// FUNCTION %s does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
1392    ER_FUNC_INEXISTENT_NAME_COLLISION = 1630,
1393    /// Database
1394    ER_DATABASE_NAME = 1631,
1395    /// Table
1396    ER_TABLE_NAME = 1632,
1397    /// Partition
1398    ER_PARTITION_NAME = 1633,
1399    /// Subpartition
1400    ER_SUBPARTITION_NAME = 1634,
1401    /// Temporary
1402    ER_TEMPORARY_NAME = 1635,
1403    /// Renamed
1404    ER_RENAMED_NAME = 1636,
1405    /// Too many active concurrent transactions
1406    ER_TOO_MANY_CONCURRENT_TRXS = 1637,
1407    /// Non-ASCII separator arguments are not fully supported
1408    WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED = 1638,
1409    /// debug sync point wait timed out
1410    ER_DEBUG_SYNC_TIMEOUT = 1639,
1411    /// debug sync point hit limit reached
1412    ER_DEBUG_SYNC_HIT_LIMIT = 1640,
1413    /// Duplicate condition information item '%s'
1414    ER_DUP_SIGNAL_SET = 1641,
1415    /// Unhandled user-defined warning condition
1416    ER_SIGNAL_WARN = 1642,
1417    /// Unhandled user-defined not found condition
1418    ER_SIGNAL_NOT_FOUND = 1643,
1419    /// Unhandled user-defined exception condition
1420    ER_SIGNAL_EXCEPTION = 1644,
1421    /// RESIGNAL when handler not active
1422    ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER = 1645,
1423    /// SIGNAL/RESIGNAL can only use a CONDITION defined with SQLSTATE
1424    ER_SIGNAL_BAD_CONDITION_TYPE = 1646,
1425    /// Data truncated for condition item '%s'
1426    WARN_COND_ITEM_TRUNCATED = 1647,
1427    /// Data too long for condition item '%s'
1428    ER_COND_ITEM_TOO_LONG = 1648,
1429    /// Unknown locale: '%s'
1430    ER_UNKNOWN_LOCALE = 1649,
1431    /// The requested server id %d clashes with the slave startup option --replicate-same-server-id
1432    ER_SLAVE_IGNORE_SERVER_IDS = 1650,
1433    /// Query cache is disabled; restart the server with query_cache_type=1 to enable it
1434    ER_QUERY_CACHE_DISABLED = 1651,
1435    /// Duplicate partition field name '%s'
1436    ER_SAME_NAME_PARTITION_FIELD = 1652,
1437    /// Inconsistency in usage of column lists for partitioning
1438    ER_PARTITION_COLUMN_LIST_ERROR = 1653,
1439    /// Partition column values of incorrect type
1440    ER_WRONG_TYPE_COLUMN_VALUE_ERROR = 1654,
1441    /// Too many fields in '%s'
1442    ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR = 1655,
1443    /// Cannot use MAXVALUE as value in VALUES IN
1444    ER_MAXVALUE_IN_VALUES_IN = 1656,
1445    /// Cannot have more than one value for this type of %s partitioning
1446    ER_TOO_MANY_VALUES_ERROR = 1657,
1447    /// Row expressions in VALUES IN only allowed for multi-field column partitioning
1448    ER_ROW_SINGLE_PARTITION_FIELD_ERROR = 1658,
1449    /// Field '%s' is of a not allowed type for this type of partitioning
1450    ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD = 1659,
1451    /// The total length of the partitioning fields is too large
1452    ER_PARTITION_FIELDS_TOO_LONG = 1660,
1453    /// Cannot execute statement: impossible to write to binary log since both row-incapable engines and statement-incapable engines are involved.
1454    ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE = 1661,
1455    /// Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = ROW and at least one table uses a storage engine limited to statement-based logging.
1456    ER_BINLOG_ROW_MODE_AND_STMT_ENGINE = 1662,
1457    /// Cannot execute statement: impossible to write to binary log since statement is unsafe, storage engine is limited to statement-based logging, and BINLOG_FORMAT = MIXED. %s
1458    ER_BINLOG_UNSAFE_AND_STMT_ENGINE = 1663,
1459    /// Cannot execute statement: impossible to write to binary log since statement is in row format and at least one table uses a storage engine limited to statement-based logging.
1460    ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE = 1664,
1461    /// Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging.%s
1462    ER_BINLOG_STMT_MODE_AND_ROW_ENGINE = 1665,
1463    /// Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.
1464    ER_BINLOG_ROW_INJECTION_AND_STMT_MODE = 1666,
1465    /// Cannot execute statement: impossible to write to binary log since more than one engine is involved and at least one engine is self-logging.
1466    ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1667,
1467    /// The statement is unsafe because it uses a LIMIT clause. This is unsafe because the set of rows included cannot be predicted.
1468    ER_BINLOG_UNSAFE_LIMIT = 1668,
1469    /// The statement is unsafe because it uses INSERT DELAYED. This is unsafe because the times when rows are inserted cannot be predicted.
1470    ER_BINLOG_UNSAFE_INSERT_DELAYED = 1669,
1471    /// The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves.
1472    ER_BINLOG_UNSAFE_SYSTEM_TABLE = 1670,
1473    /// Statement is unsafe because it invokes a trigger or a stored function that inserts into an AUTO_INCREMENT column. Inserted values cannot be logged correctly.
1474    ER_BINLOG_UNSAFE_AUTOINC_COLUMNS = 1671,
1475    /// Statement is unsafe because it uses a UDF which may not return the same value on the slave.
1476    ER_BINLOG_UNSAFE_UDF = 1672,
1477    /// Statement is unsafe because it uses a system variable that may have a different value on the slave.
1478    ER_BINLOG_UNSAFE_SYSTEM_VARIABLE = 1673,
1479    /// Statement is unsafe because it uses a system function that may return a different value on the slave.
1480    ER_BINLOG_UNSAFE_SYSTEM_FUNCTION = 1674,
1481    /// Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
1482    ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS = 1675,
1483    /// %s Statement: %s
1484    ER_MESSAGE_AND_STATEMENT = 1676,
1485    /// Column %d of table '%s.%s' cannot be converted from type '%s' to type '%s'
1486    ER_SLAVE_CONVERSION_FAILED = 1677,
1487    /// Can't create conversion table for table '%s.%s'
1488    ER_SLAVE_CANT_CREATE_CONVERSION = 1678,
1489    /// Cannot modify @@session.binlog_format inside a transaction
1490    ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1679,
1491    /// The path specified for %s is too long.
1492    ER_PATH_LENGTH = 1680,
1493    /// '%s' is deprecated and will be removed in a future release.
1494    ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT = 1681,
1495    /// Native table '%s'.'%s' has the wrong structure
1496    ER_WRONG_NATIVE_TABLE_STRUCTURE = 1682,
1497    /// Invalid performance_schema usage.
1498    ER_WRONG_PERFSCHEMA_USAGE = 1683,
1499    /// Table '%s'.'%s' was skipped since its definition is being modified by concurrent DDL statement
1500    ER_WARN_I_S_SKIPPED_TABLE = 1684,
1501    /// Cannot modify @@session.binlog_direct_non_transactional_updates inside a transaction
1502    ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1685,
1503    /// Cannot change the binlog direct flag inside a stored function or trigger
1504    ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1686,
1505    /// A SPATIAL index may only contain a geometrical type column
1506    ER_SPATIAL_MUST_HAVE_GEOM_COL = 1687,
1507    /// Comment for index '%s' is too long (max = %lu)
1508    ER_TOO_LONG_INDEX_COMMENT = 1688,
1509    /// Wait on a lock was aborted due to a pending exclusive lock
1510    ER_LOCK_ABORTED = 1689,
1511    /// %s value is out of range in '%s'
1512    ER_DATA_OUT_OF_RANGE = 1690,
1513    /// A variable of a non-integer based type in LIMIT clause
1514    ER_WRONG_SPVAR_TYPE_IN_LIMIT = 1691,
1515    /// Mixing self-logging and non-self-logging engines in a statement is unsafe.
1516    ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1692,
1517    /// Statement accesses nontransactional table as well as transactional or temporary table, and writes to any of them.
1518    ER_BINLOG_UNSAFE_MIXED_STATEMENT = 1693,
1519    /// Cannot modify @@session.sql_log_bin inside a transaction
1520    ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1694,
1521    /// Cannot change the sql_log_bin inside a stored function or trigger
1522    ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1695,
1523    /// Failed to read from the .par file
1524    ER_FAILED_READ_FROM_PAR_FILE = 1696,
1525    /// VALUES value for partition '%s' must have type INT
1526    ER_VALUES_IS_NOT_INT_TYPE_ERROR = 1697,
1527    /// Access denied for user '%s'@'%s'
1528    ER_ACCESS_DENIED_NO_PASSWORD_ERROR = 1698,
1529    /// SET PASSWORD has no significance for users authenticating via plugins
1530    ER_SET_PASSWORD_AUTH_PLUGIN = 1699,
1531    /// GRANT with IDENTIFIED WITH is illegal because the user %-.*s already exists
1532    ER_GRANT_PLUGIN_USER_EXISTS = 1700,
1533    /// Cannot truncate a table referenced in a foreign key constraint (%s)
1534    ER_TRUNCATE_ILLEGAL_FK = 1701,
1535    /// Plugin '%s' is force_plus_permanent and can not be unloaded
1536    ER_PLUGIN_IS_PERMANENT = 1702,
1537    /// The requested value for the heartbeat period is less than 1 millisecond. The value is reset to 0, meaning that heartbeating will effectively be disabled.
1538    ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703,
1539    /// The requested value for the heartbeat period exceeds the value of slave_net_timeout seconds. A sensible value for the period should be less than the timeout.
1540    ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704,
1541    /// Multi-row statements required more than 'max_binlog_stmt_cache_size' bytes of storage; increase this mysqld variable and try again
1542    ER_STMT_CACHE_FULL = 1705,
1543    /// Primary key/partition key update is not allowed since the table is updated both as '%s' and '%s'.
1544    ER_MULTI_UPDATE_KEY_CONFLICT = 1706,
1545    /// Table rebuild required. Please do "ALTER TABLE `%s` FORCE" or dump/reload to fix it!
1546    ER_TABLE_NEEDS_REBUILD = 1707,
1547    /// The value of '%s' should be no less than the value of '%s'
1548    WARN_OPTION_BELOW_LIMIT = 1708,
1549    /// Index column size too large. The maximum column size is %lu bytes.
1550    ER_INDEX_COLUMN_TOO_LONG = 1709,
1551    /// Trigger '%s' has an error in its body: '%s'
1552    ER_ERROR_IN_TRIGGER_BODY = 1710,
1553    /// Unknown trigger has an error in its body: '%s'
1554    ER_ERROR_IN_UNKNOWN_TRIGGER_BODY = 1711,
1555    /// Index %s is corrupted
1556    ER_INDEX_CORRUPT = 1712,
1557    /// Undo log record is too big.
1558    ER_UNDO_RECORD_TOO_BIG = 1713,
1559    /// INSERT IGNORE... SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are ignored. This order cannot be predicted and may differ on master and the slave.
1560    ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT = 1714,
1561    /// INSERT... SELECT... ON DUPLICATE KEY UPDATE is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are updated. This order cannot be predicted and may differ on master and the slave.
1562    ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE = 1715,
1563    /// REPLACE... SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are replaced. This order cannot be predicted and may differ on master and the slave.
1564    ER_BINLOG_UNSAFE_REPLACE_SELECT = 1716,
1565    /// CREATE... IGNORE SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are ignored. This order cannot be predicted and may differ on master and the slave.
1566    ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT = 1717,
1567    /// CREATE... REPLACE SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are replaced. This order cannot be predicted and may differ on master and the slave.
1568    ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT = 1718,
1569    /// UPDATE IGNORE is unsafe because the order in which rows are updated determines which (if any) rows are ignored. This order cannot be predicted and may differ on master and the slave.
1570    ER_BINLOG_UNSAFE_UPDATE_IGNORE = 1719,
1571    /// Plugin '%s' is marked as not dynamically uninstallable. You have to stop the server to uninstall it.
1572    ER_PLUGIN_NO_UNINSTALL = 1720,
1573    /// Plugin '%s' is marked as not dynamically installable. You have to stop the server to install it.
1574    ER_PLUGIN_NO_INSTALL = 1721,
1575    /// Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave.
1576    ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT = 1722,
1577    /// CREATE TABLE... SELECT... on a table with an auto-increment column is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are inserted. This order cannot be predicted and may differ on master and the slave.
1578    ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC = 1723,
1579    /// INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe
1580    ER_BINLOG_UNSAFE_INSERT_TWO_KEYS = 1724,
1581    /// Table is being used in foreign key check.
1582    ER_TABLE_IN_FK_CHECK = 1725,
1583    /// Storage engine '%s' does not support system tables. [%s.%s]
1584    ER_UNSUPPORTED_ENGINE = 1726,
1585    /// INSERT into autoincrement field which is not the first part in the composed primary key is unsafe.
1586    ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST = 1727,
1587    /// Cannot load from %s.%s. The table is probably corrupted
1588    ER_CANNOT_LOAD_FROM_TABLE_V2 = 1728,
1589    /// The requested value %s for the master delay exceeds the maximum %u
1590    ER_MASTER_DELAY_VALUE_OUT_OF_RANGE = 1729,
1591    /// Only Format_description_log_event and row events are allowed in BINLOG statements (but %s was provided
1592    ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT = 1730,
1593    /// Non matching attribute '%s' between partition and table
1594    ER_PARTITION_EXCHANGE_DIFFERENT_OPTION = 1731,
1595    /// Table to exchange with partition is partitioned: '%s'
1596    ER_PARTITION_EXCHANGE_PART_TABLE = 1732,
1597    /// Table to exchange with partition is temporary: '%s'
1598    ER_PARTITION_EXCHANGE_TEMP_TABLE = 1733,
1599    /// Subpartitioned table, use subpartition instead of partition
1600    ER_PARTITION_INSTEAD_OF_SUBPARTITION = 1734,
1601    /// Unknown partition '%s' in table '%s'
1602    ER_UNKNOWN_PARTITION = 1735,
1603    /// Tables have different definitions
1604    ER_TABLES_DIFFERENT_METADATA = 1736,
1605    /// Found a row that does not match the partition
1606    ER_ROW_DOES_NOT_MATCH_PARTITION = 1737,
1607    /// Option binlog_cache_size (%lu) is greater than max_binlog_cache_size (%lu); setting binlog_cache_size equal to max_binlog_cache_size.
1608    ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX = 1738,
1609    /// Cannot use %s access on index '%s' due to type or collation conversion on field '%s'
1610    ER_WARN_INDEX_NOT_APPLICABLE = 1739,
1611    /// Table to exchange with partition has foreign key references: '%s'
1612    ER_PARTITION_EXCHANGE_FOREIGN_KEY = 1740,
1613    /// Key value '%s' was not found in table '%s.%s'
1614    ER_NO_SUCH_KEY_VALUE = 1741,
1615    /// Data for column '%s' too long
1616    ER_RPL_INFO_DATA_TOO_LONG = 1742,
1617    /// Replication event checksum verification failed while reading from network.
1618    ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE = 1743,
1619    /// Replication event checksum verification failed while reading from a log file.
1620    ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE = 1744,
1621    /// Option binlog_stmt_cache_size (%lu) is greater than max_binlog_stmt_cache_size (%lu); setting binlog_stmt_cache_size equal to max_binlog_stmt_cache_size.
1622    ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX = 1745,
1623    /// Can't update table '%s' while '%s' is being created.
1624    ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT = 1746,
1625    /// PARTITION () clause on non partitioned table
1626    ER_PARTITION_CLAUSE_ON_NONPARTITIONED = 1747,
1627    /// Found a row not matching the given partition set
1628    ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET = 1748,
1629    /// partition '%s' doesn't exist
1630    ER_NO_SUCH_PARTITION_UNUSED = 1749,
1631    /// Failure while changing the type of replication repository: %s.
1632    ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE = 1750,
1633    /// The creation of some temporary tables could not be rolled back.
1634    ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE = 1751,
1635    /// Some temporary tables were dropped, but these operations could not be rolled back.
1636    ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE = 1752,
1637    /// %s is not supported in multi-threaded slave mode. %s
1638    ER_MTS_FEATURE_IS_NOT_SUPPORTED = 1753,
1639    /// The number of modified databases exceeds the maximum %d; the database names will not be included in the replication event metadata.
1640    ER_MTS_UPDATED_DBS_GREATER_MAX = 1754,
1641    /// Cannot execute the current event group in the parallel mode. Encountered event %s, relay-log name %s, position %s which prevents execution of this event group in parallel mode. Reason: %s.
1642    ER_MTS_CANT_PARALLEL = 1755,
1643    /// %s
1644    ER_MTS_INCONSISTENT_DATA = 1756,
1645    /// FULLTEXT index is not supported for partitioned tables.
1646    ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING = 1757,
1647    /// Invalid condition number
1648    ER_DA_INVALID_CONDITION_NUMBER = 1758,
1649    /// Sending passwords in plain text without SSL/TLS is extremely insecure.
1650    ER_INSECURE_PLAIN_TEXT = 1759,
1651    /// Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
1652    ER_INSECURE_CHANGE_MASTER = 1760,
1653    /// Foreign key constraint for table '%s', record '%s' would lead to a duplicate entry in table '%s', key '%s'
1654    ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO = 1761,
1655    /// Foreign key constraint for table '%s', record '%s' would lead to a duplicate entry in a child table
1656    ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO = 1762,
1657    /// Setting authentication options is not possible when only the Slave SQL Thread is being started.
1658    ER_SQLTHREAD_WITH_SECURE_SLAVE = 1763,
1659    /// The table does not have FULLTEXT index to support this query
1660    ER_TABLE_HAS_NO_FT = 1764,
1661    /// The system variable %s cannot be set in stored functions or triggers.
1662    ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER = 1765,
1663    /// The system variable %s cannot be set when there is an ongoing transaction.
1664    ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION = 1766,
1665    /// The system variable @@SESSION.GTID_NEXT has the value %s, which is not listed in @@SESSION.GTID_NEXT_LIST.
1666    ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST = 1767,
1667    /// The system variable @@SESSION.GTID_NEXT cannot change inside a transaction.
1668    ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL = 1768,
1669    /// The statement 'SET %s' cannot invoke a stored function.
1670    ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION = 1769,
1671    /// The system variable @@SESSION.GTID_NEXT cannot be 'AUTOMATIC' when @@SESSION.GTID_NEXT_LIST is non-NULL.
1672    ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL = 1770,
1673    /// Skipping transaction %s because it has already been executed and logged.
1674    ER_SKIPPING_LOGGED_TRANSACTION = 1771,
1675    /// Malformed GTID set specification '%s'.
1676    ER_MALFORMED_GTID_SET_SPECIFICATION = 1772,
1677    /// Malformed GTID set encoding.
1678    ER_MALFORMED_GTID_SET_ENCODING = 1773,
1679    /// Malformed GTID specification '%s'.
1680    ER_MALFORMED_GTID_SPECIFICATION = 1774,
1681    /// Impossible to generate Global Transaction Identifier: the integer component reached the maximal value. Restart the server with a new server_uuid.
1682    ER_GNO_EXHAUSTED = 1775,
1683    /// Parameters MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE and RELAY_LOG_POS cannot be set when MASTER_AUTO_POSITION is active.
1684    ER_BAD_SLAVE_AUTO_POSITION = 1776,
1685    /// CHANGE MASTER TO MASTER_AUTO_POSITION = 1 can only be executed when @@GLOBAL.GTID_MODE = ON.
1686    ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON = 1777,
1687    /// Cannot execute statements with implicit commit inside a transaction when @@SESSION.GTID_NEXT != AUTOMATIC.
1688    ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET = 1778,
1689    /// GTID_MODE = ON or GTID_MODE = UPGRADE_STEP_2 requires DISABLE_GTID_UNSAFE_STATEMENTS = 1.
1690    ER_GTID_MODE_2_OR_3_REQUIRES_DISABLE_GTID_UNSAFE_STATEMENTS_ON = 1779,
1691    /// @@GLOBAL.GTID_MODE = ON or UPGRADE_STEP_1 or UPGRADE_STEP_2 requires --log-bin and --log-slave-updates.
1692    ER_GTID_MODE_REQUIRES_BINLOG = 1780,
1693    /// @@SESSION.GTID_NEXT cannot be set to UUID:NUMBER when @@GLOBAL.GTID_MODE = OFF.
1694    ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF = 1781,
1695    /// @@SESSION.GTID_NEXT cannot be set to ANONYMOUS when @@GLOBAL.GTID_MODE = ON.
1696    ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON = 1782,
1697    /// @@SESSION.GTID_NEXT_LIST cannot be set to a non-NULL value when @@GLOBAL.GTID_MODE = OFF.
1698    ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF = 1783,
1699    /// Found a Gtid_log_event or Previous_gtids_log_event when @@GLOBAL.GTID_MODE = OFF.
1700    ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF = 1784,
1701    /// When @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1, updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables.
1702    ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE = 1785,
1703    /// CREATE TABLE ... SELECT is forbidden when @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1.
1704    ER_GTID_UNSAFE_CREATE_SELECT = 1786,
1705    /// When @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1, the statements CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can be executed in a non-transactional context only, and require that AUTOCOMMIT = 1.
1706    ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION = 1787,
1707    /// The value of @@GLOBAL.GTID_MODE can only change one step at a time: OFF <-> UPGRADE_STEP_1 <-> UPGRADE_STEP_2 <-> ON. Also note that this value must be stepped up or down simultaneously on all servers; see the Manual for instructions.
1708    ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME = 1788,
1709    /// The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.
1710    ER_MASTER_HAS_PURGED_REQUIRED_GTIDS = 1789,
1711    /// @@SESSION.GTID_NEXT cannot be changed by a client that owns a GTID. The client owns %s. Ownership is released on COMMIT or ROLLBACK.
1712    ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID = 1790,
1713    /// Unknown EXPLAIN format name: '%s'
1714    ER_UNKNOWN_EXPLAIN_FORMAT = 1791,
1715    /// Cannot execute statement in a READ ONLY transaction.
1716    ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION = 1792,
1717    /// Comment for table partition '%s' is too long (max = %lu
1718    ER_TOO_LONG_TABLE_PARTITION_COMMENT = 1793,
1719    /// Slave is not configured or failed to initialize properly. You must at least set --server-id to enable either a master or a slave. Additional error messages can be found in the MySQL error log.
1720    ER_SLAVE_CONFIGURATION = 1794,
1721    /// InnoDB presently supports one FULLTEXT index creation at a time
1722    ER_INNODB_FT_LIMIT = 1795,
1723    /// Cannot create FULLTEXT index on temporary InnoDB table
1724    ER_INNODB_NO_FT_TEMP_TABLE = 1796,
1725    /// Column '%s' is of wrong type for an InnoDB FULLTEXT index
1726    ER_INNODB_FT_WRONG_DOCID_COLUMN = 1797,
1727    /// Index '%s' is of wrong type for an InnoDB FULLTEXT index
1728    ER_INNODB_FT_WRONG_DOCID_INDEX = 1798,
1729    /// Creating index '%s' required more than 'innodb_online_alter_log_max_size' bytes of modification log. Please try again.
1730    ER_INNODB_ONLINE_LOG_TOO_BIG = 1799,
1731    /// Unknown ALGORITHM '%s'
1732    ER_UNKNOWN_ALTER_ALGORITHM = 1800,
1733    /// Unknown LOCK type '%s'
1734    ER_UNKNOWN_ALTER_LOCK = 1801,
1735    /// CHANGE MASTER cannot be executed when the slave was stopped with an error or killed in MTS mode. Consider using RESET SLAVE or START SLAVE UNTIL.
1736    ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS = 1802,
1737    /// Cannot recover after SLAVE errored out in parallel execution mode. Additional error messages can be found in the MySQL error log.
1738    ER_MTS_RECOVERY_FAILURE = 1803,
1739    /// Cannot clean up worker info tables. Additional error messages can be found in the MySQL error log.
1740    ER_MTS_RESET_WORKERS = 1804,
1741    /// Column count of %s.%s is wrong. Expected %d, found %d. The table is probably corrupted
1742    ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2 = 1805,
1743    /// Slave must silently retry current transaction
1744    ER_SLAVE_SILENT_RETRY_TRANSACTION = 1806,
1745    /// There is a foreign key check running on table '%s'. Cannot discard the table.
1746    ER_DISCARD_FK_CHECKS_RUNNING = 1807,
1747    /// Schema mismatch (%s
1748    ER_TABLE_SCHEMA_MISMATCH = 1808,
1749    /// Table '%s' in system tablespace
1750    ER_TABLE_IN_SYSTEM_TABLESPACE = 1809,
1751    /// IO Read error: (%lu, %s) %s
1752    ER_IO_READ_ERROR = 1810,
1753    /// IO Write error: (%lu, %s) %s
1754    ER_IO_WRITE_ERROR = 1811,
1755    /// Tablespace is missing for table '%s'
1756    ER_TABLESPACE_MISSING = 1812,
1757    /// Tablespace for table '%s' exists. Please DISCARD the tablespace before IMPORT.
1758    ER_TABLESPACE_EXISTS = 1813,
1759    /// Tablespace has been discarded for table '%s'
1760    ER_TABLESPACE_DISCARDED = 1814,
1761    /// Internal error: %s
1762    ER_INTERNAL_ERROR = 1815,
1763    /// ALTER TABLE '%s' IMPORT TABLESPACE failed with error %lu : '%s'
1764    ER_INNODB_IMPORT_ERROR = 1816,
1765    /// Index corrupt: %s
1766    ER_INNODB_INDEX_CORRUPT = 1817,
1767    /// YEAR(%lu) column type is deprecated. Creating YEAR(4) column instead.
1768    ER_INVALID_YEAR_COLUMN_LENGTH = 1818,
1769    /// Your password does not satisfy the current policy requirements
1770    ER_NOT_VALID_PASSWORD = 1819,
1771    /// You must SET PASSWORD before executing this statement
1772    ER_MUST_CHANGE_PASSWORD = 1820,
1773    /// Failed to add the foreign key constaint. Missing index for constraint '%s' in the foreign table '%s'
1774    ER_FK_NO_INDEX_CHILD = 1821,
1775    /// Failed to add the foreign key constaint. Missing index for constraint '%s' in the referenced table '%s'
1776    ER_FK_NO_INDEX_PARENT = 1822,
1777    /// Failed to add the foreign key constraint '%s' to system tables
1778    ER_FK_FAIL_ADD_SYSTEM = 1823,
1779    /// Failed to open the referenced table '%s'
1780    ER_FK_CANNOT_OPEN_PARENT = 1824,
1781    /// Failed to add the foreign key constraint on table '%s'. Incorrect options in FOREIGN KEY constraint '%s'
1782    ER_FK_INCORRECT_OPTION = 1825,
1783    /// Duplicate foreign key constraint name '%s'
1784    ER_FK_DUP_NAME = 1826,
1785    /// The password hash doesn't have the expected format. Check if the correct password algorithm is being used with the PASSWORD() function.
1786    ER_PASSWORD_FORMAT = 1827,
1787    /// Cannot drop column '%s': needed in a foreign key constraint '%s'
1788    ER_FK_COLUMN_CANNOT_DROP = 1828,
1789    /// Cannot drop column '%s': needed in a foreign key constraint '%s' of table '%s'
1790    ER_FK_COLUMN_CANNOT_DROP_CHILD = 1829,
1791    /// Column '%s' cannot be NOT NULL: needed in a foreign key constraint '%s' SET NULL
1792    ER_FK_COLUMN_NOT_NULL = 1830,
1793    /// Duplicate index '%s' defined on the table '%s.%s'. This is deprecated and will be disallowed in a future release.
1794    ER_DUP_INDEX = 1831,
1795    /// Cannot change column '%s': used in a foreign key constraint '%s'
1796    ER_FK_COLUMN_CANNOT_CHANGE = 1832,
1797    /// Cannot change column '%s': used in a foreign key constraint '%s' of table '%s'
1798    ER_FK_COLUMN_CANNOT_CHANGE_CHILD = 1833,
1799    /// Cannot delete rows from table which is parent in a foreign key constraint '%s' of table '%s'
1800    ER_FK_CANNOT_DELETE_PARENT = 1834,
1801    /// Malformed communication packet.
1802    ER_MALFORMED_PACKET = 1835,
1803    /// Running in read-only mode
1804    ER_READ_ONLY_MODE = 1836,
1805    /// When @@SESSION.GTID_NEXT is set to a GTID, you must explicitly set it to a different value after a COMMIT or ROLLBACK. Please check GTID_NEXT variable manual page for detailed explanation. Current @@SESSION.GTID_NEXT is '%s'.
1806    ER_GTID_NEXT_TYPE_UNDEFINED_GROUP = 1837,
1807    /// The system variable %s cannot be set in stored procedures.
1808    ER_VARIABLE_NOT_SETTABLE_IN_SP = 1838,
1809    /// @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON.
1810    ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF = 1839,
1811    /// @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.
1812    ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY = 1840,
1813    /// @@GLOBAL.GTID_PURGED can only be set when there are no ongoing transactions (not even in other clients).
1814    ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY = 1841,
1815    /// @@GLOBAL.GTID_PURGED was changed from '%s' to '%s'.
1816    ER_GTID_PURGED_WAS_CHANGED = 1842,
1817    /// @@GLOBAL.GTID_EXECUTED was changed from '%s' to '%s'.
1818    ER_GTID_EXECUTED_WAS_CHANGED = 1843,
1819    /// Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT, and both replicated and non replicated tables are written to.
1820    ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES = 1844,
1821    /// %s is not supported for this operation. Try %s.
1822    ER_ALTER_OPERATION_NOT_SUPPORTED = 1845,
1823    /// %s is not supported. Reason: %s. Try %s.
1824    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON = 1846,
1825    /// COPY algorithm requires a lock
1826    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY = 1847,
1827    /// Partition specific operations do not yet support LOCK/ALGORITHM
1828    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION = 1848,
1829    /// Columns participating in a foreign key are renamed
1830    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME = 1849,
1831    /// Cannot change column type INPLACE
1832    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE = 1850,
1833    /// Adding foreign keys needs foreign_key_checks=OFF
1834    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK = 1851,
1835    /// Creating unique indexes with IGNORE requires COPY algorithm to remove duplicate rows
1836    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE = 1852,
1837    /// Dropping a primary key is not allowed without also adding a new primary key
1838    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK = 1853,
1839    /// Adding an auto-increment column requires a lock
1840    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC = 1854,
1841    /// Cannot replace hidden FTS_DOC_ID with a user-visible one
1842    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS = 1855,
1843    /// Cannot drop or rename FTS_DOC_ID
1844    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS = 1856,
1845    /// Fulltext index creation requires a lock
1846    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS = 1857,
1847    /// sql_slave_skip_counter can not be set when the server is running with @@GLOBAL.GTID_MODE = ON. Instead, for each transaction that you want to skip, generate an empty transaction with the same GTID as the transaction
1848    ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE = 1858,
1849    /// Duplicate entry for key '%s'
1850    ER_DUP_UNKNOWN_IN_INDEX = 1859,
1851    /// Long database name and identifier for object resulted in path length exceeding %d characters. Path: '%s'.
1852    ER_IDENT_CAUSES_TOO_LONG_PATH = 1860,
1853    /// cannot silently convert NULL values, as required in this SQL_MODE
1854    ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL = 1861,
1855    /// Your password has expired. To log in you must change it using a client that supports expired passwords.
1856    ER_MUST_CHANGE_PASSWORD_LOGIN = 1862,
1857    /// Found a row in wrong partition %s
1858    ER_ROW_IN_WRONG_PARTITION = 1863,
1859    /// Cannot schedule event %s, relay-log name %s, position %s to Worker thread because its size %lu exceeds %lu of slave_pending_jobs_size_max.
1860    ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX = 1864,
1861    /// Cannot CREATE FULLTEXT INDEX WITH PARSER on InnoDB table
1862    ER_INNODB_NO_FT_USES_PARSER = 1865,
1863    /// The binary log file '%s' is logically corrupted: %s
1864    ER_BINLOG_LOGICAL_CORRUPTION = 1866,
1865    /// file %s was not purged because it was being read by %d thread(s), purged only %d out of %d files.
1866    ER_WARN_PURGE_LOG_IN_USE = 1867,
1867    /// file %s was not purged because it is the active log file.
1868    ER_WARN_PURGE_LOG_IS_ACTIVE = 1868,
1869    /// Auto-increment value in UPDATE conflicts with internally generated values
1870    ER_AUTO_INCREMENT_CONFLICT = 1869,
1871    /// Row events are not logged for %s statements that modify BLACKHOLE tables in row format. Table(s): '%s'
1872    WARN_ON_BLOCKHOLE_IN_RBR = 1870,
1873    /// Slave failed to initialize master info structure from the repository
1874    ER_SLAVE_MI_INIT_REPOSITORY = 1871,
1875    /// Slave failed to initialize relay log info structure from the repository
1876    ER_SLAVE_RLI_INIT_REPOSITORY = 1872,
1877    /// Access denied trying to change to user '%s'@'%s' (using password: %s). Disconnecting.
1878    ER_ACCESS_DENIED_CHANGE_USER_ERROR = 1873,
1879    /// InnoDB is in read only mode.
1880    ER_INNODB_READ_ONLY = 1874,
1881    /// STOP SLAVE command execution is incomplete: Slave SQL thread got the stop signal, thread is busy, SQL thread will stop once the current task is complete.
1882    ER_STOP_SLAVE_SQL_THREAD_TIMEOUT = 1875,
1883    /// STOP SLAVE command execution is incomplete: Slave IO thread got the stop signal, thread is busy, IO thread will stop once the current task is complete.
1884    ER_STOP_SLAVE_IO_THREAD_TIMEOUT = 1876,
1885    /// Operation cannot be performed. The table '%s.%s' is missing, corrupt or contains bad data.
1886    ER_TABLE_CORRUPT = 1877,
1887    /// Temporary file write failure.
1888    ER_TEMP_FILE_WRITE_FAILURE = 1878,
1889    /// Upgrade index name failed, please use create index(alter table) algorithm copy to rebuild index.
1890    ER_INNODB_FT_AUX_NOT_HEX_ID = 1879,
1891    /// TIME/TIMESTAMP/DATETIME columns of old format have been upgraded to the new format.
1892    ER_OLD_TEMPORALS_UPGRADED = 1880,
1893    /// Operation not allowed when innodb_forced_recovery > 0.
1894    ER_INNODB_FORCED_RECOVERY = 1881,
1895    /// The initialization vector supplied to %s is too short. Must be at least %d bytes long
1896    ER_AES_INVALID_IV = 1882,
1897    /// Plugin '%s' cannot be uninstalled now. %s
1898    ER_PLUGIN_CANNOT_BE_UNINSTALLED = 1883,
1899    /// Cannot execute statement because it needs to be written to the binary log as multiple statements, and this is not allowed when @@SESSION.GTID_NEXT == 'UUID:NUMBER'.
1900    ER_GTID_UNSAFE_BINLOG_SPLITTABLE_STATEMENT_AND_GTID_GROUP = 1884,
1901    /// Slave has more GTIDs than the master has, using the master's SERVER_UUID. This may indicate that the end of the binary log was truncated or that the last binary log file was lost, e.g., after a power or disk failure when sync_binlog != 1. The master may or may not have rolled back transactions that were already replicated to the slave. Suggest to replicate any transactions that master has rolled back from slave to master, and/or commit empty transactions on master to account for transactions that have been committed on master but are not included in GTID_EXECUTED.
1902    ER_SLAVE_HAS_MORE_GTIDS_THAN_MASTER = 1885,
1903}
1904
1905impl From<u16> for ErrorKind {
1906    fn from(x: u16) -> Self {
1907        match x {
1908            1000_u16 => ErrorKind::ER_HASHCHK,
1909            1001_u16 => ErrorKind::ER_NISAMCHK,
1910            1002_u16 => ErrorKind::ER_NO,
1911            1003_u16 => ErrorKind::ER_YES,
1912            1004_u16 => ErrorKind::ER_CANT_CREATE_FILE,
1913            1005_u16 => ErrorKind::ER_CANT_CREATE_TABLE,
1914            1006_u16 => ErrorKind::ER_CANT_CREATE_DB,
1915            1007_u16 => ErrorKind::ER_DB_CREATE_EXISTS,
1916            1008_u16 => ErrorKind::ER_DB_DROP_EXISTS,
1917            1009_u16 => ErrorKind::ER_DB_DROP_DELETE,
1918            1010_u16 => ErrorKind::ER_DB_DROP_RMDIR,
1919            1011_u16 => ErrorKind::ER_CANT_DELETE_FILE,
1920            1012_u16 => ErrorKind::ER_CANT_FIND_SYSTEM_REC,
1921            1013_u16 => ErrorKind::ER_CANT_GET_STAT,
1922            1014_u16 => ErrorKind::ER_CANT_GET_WD,
1923            1015_u16 => ErrorKind::ER_CANT_LOCK,
1924            1016_u16 => ErrorKind::ER_CANT_OPEN_FILE,
1925            1017_u16 => ErrorKind::ER_FILE_NOT_FOUND,
1926            1018_u16 => ErrorKind::ER_CANT_READ_DIR,
1927            1019_u16 => ErrorKind::ER_CANT_SET_WD,
1928            1020_u16 => ErrorKind::ER_CHECKREAD,
1929            1021_u16 => ErrorKind::ER_DISK_FULL,
1930            1022_u16 => ErrorKind::ER_DUP_KEY,
1931            1023_u16 => ErrorKind::ER_ERROR_ON_CLOSE,
1932            1024_u16 => ErrorKind::ER_ERROR_ON_READ,
1933            1025_u16 => ErrorKind::ER_ERROR_ON_RENAME,
1934            1026_u16 => ErrorKind::ER_ERROR_ON_WRITE,
1935            1027_u16 => ErrorKind::ER_FILE_USED,
1936            1028_u16 => ErrorKind::ER_FILSORT_ABORT,
1937            1029_u16 => ErrorKind::ER_FORM_NOT_FOUND,
1938            1030_u16 => ErrorKind::ER_GET_ERRN,
1939            1031_u16 => ErrorKind::ER_ILLEGAL_HA,
1940            1032_u16 => ErrorKind::ER_KEY_NOT_FOUND,
1941            1033_u16 => ErrorKind::ER_NOT_FORM_FILE,
1942            1034_u16 => ErrorKind::ER_NOT_KEYFILE,
1943            1035_u16 => ErrorKind::ER_OLD_KEYFILE,
1944            1036_u16 => ErrorKind::ER_OPEN_AS_READONLY,
1945            1037_u16 => ErrorKind::ER_OUTOFMEMORY,
1946            1038_u16 => ErrorKind::ER_OUT_OF_SORTMEMORY,
1947            1039_u16 => ErrorKind::ER_UNEXPECTED_EOF,
1948            1040_u16 => ErrorKind::ER_CON_COUNT_ERROR,
1949            1041_u16 => ErrorKind::ER_OUT_OF_RESOURCES,
1950            1042_u16 => ErrorKind::ER_BAD_HOST_ERROR,
1951            1043_u16 => ErrorKind::ER_HANDSHAKE_ERROR,
1952            1044_u16 => ErrorKind::ER_DBACCESS_DENIED_ERROR,
1953            1045_u16 => ErrorKind::ER_ACCESS_DENIED_ERROR,
1954            1046_u16 => ErrorKind::ER_NO_DB_ERROR,
1955            1047_u16 => ErrorKind::ER_UNKNOWN_COM_ERROR,
1956            1048_u16 => ErrorKind::ER_BAD_NULL_ERROR,
1957            1049_u16 => ErrorKind::ER_BAD_DB_ERROR,
1958            1050_u16 => ErrorKind::ER_TABLE_EXISTS_ERROR,
1959            1051_u16 => ErrorKind::ER_BAD_TABLE_ERROR,
1960            1052_u16 => ErrorKind::ER_NON_UNIQ_ERROR,
1961            1053_u16 => ErrorKind::ER_SERVER_SHUTDOWN,
1962            1054_u16 => ErrorKind::ER_BAD_FIELD_ERROR,
1963            1055_u16 => ErrorKind::ER_WRONG_FIELD_WITH_GROUP,
1964            1056_u16 => ErrorKind::ER_WRONG_GROUP_FIELD,
1965            1057_u16 => ErrorKind::ER_WRONG_SUM_SELECT,
1966            1058_u16 => ErrorKind::ER_WRONG_VALUE_COUNT,
1967            1059_u16 => ErrorKind::ER_TOO_LONG_IDENT,
1968            1060_u16 => ErrorKind::ER_DUP_FIELDNAME,
1969            1061_u16 => ErrorKind::ER_DUP_KEYNAME,
1970            1062_u16 => ErrorKind::ER_DUP_ENTRY,
1971            1063_u16 => ErrorKind::ER_WRONG_FIELD_SPEC,
1972            1064_u16 => ErrorKind::ER_PARSE_ERROR,
1973            1065_u16 => ErrorKind::ER_EMPTY_QUERY,
1974            1066_u16 => ErrorKind::ER_NONUNIQ_TABLE,
1975            1067_u16 => ErrorKind::ER_INVALID_DEFAULT,
1976            1068_u16 => ErrorKind::ER_MULTIPLE_PRI_KEY,
1977            1069_u16 => ErrorKind::ER_TOO_MANY_KEYS,
1978            1070_u16 => ErrorKind::ER_TOO_MANY_KEY_PARTS,
1979            1071_u16 => ErrorKind::ER_TOO_LONG_KEY,
1980            1072_u16 => ErrorKind::ER_KEY_COLUMN_DOES_NOT_EXITS,
1981            1073_u16 => ErrorKind::ER_BLOB_USED_AS_KEY,
1982            1074_u16 => ErrorKind::ER_TOO_BIG_FIELDLENGTH,
1983            1075_u16 => ErrorKind::ER_WRONG_AUTO_KEY,
1984            1076_u16 => ErrorKind::ER_READY,
1985            1077_u16 => ErrorKind::ER_NORMAL_SHUTDOWN,
1986            1078_u16 => ErrorKind::ER_GOT_SIGNAL,
1987            1079_u16 => ErrorKind::ER_SHUTDOWN_COMPLETE,
1988            1080_u16 => ErrorKind::ER_FORCING_CLOSE,
1989            1081_u16 => ErrorKind::ER_IPSOCK_ERROR,
1990            1082_u16 => ErrorKind::ER_NO_SUCH_INDEX,
1991            1083_u16 => ErrorKind::ER_WRONG_FIELD_TERMINATORS,
1992            1084_u16 => ErrorKind::ER_BLOBS_AND_NO_TERMINATED,
1993            1085_u16 => ErrorKind::ER_TEXTFILE_NOT_READABLE,
1994            1086_u16 => ErrorKind::ER_FILE_EXISTS_ERROR,
1995            1087_u16 => ErrorKind::ER_LOAD_INF,
1996            1088_u16 => ErrorKind::ER_ALTER_INF,
1997            1089_u16 => ErrorKind::ER_WRONG_SUB_KEY,
1998            1090_u16 => ErrorKind::ER_CANT_REMOVE_ALL_FIELDS,
1999            1091_u16 => ErrorKind::ER_CANT_DROP_FIELD_OR_KEY,
2000            1092_u16 => ErrorKind::ER_INSERT_INF,
2001            1093_u16 => ErrorKind::ER_UPDATE_TABLE_USED,
2002            1094_u16 => ErrorKind::ER_NO_SUCH_THREAD,
2003            1095_u16 => ErrorKind::ER_KILL_DENIED_ERROR,
2004            1096_u16 => ErrorKind::ER_NO_TABLES_USED,
2005            1097_u16 => ErrorKind::ER_TOO_BIG_SET,
2006            1098_u16 => ErrorKind::ER_NO_UNIQUE_LOGFILE,
2007            1099_u16 => ErrorKind::ER_TABLE_NOT_LOCKED_FOR_WRITE,
2008            1100_u16 => ErrorKind::ER_TABLE_NOT_LOCKED,
2009            1101_u16 => ErrorKind::ER_BLOB_CANT_HAVE_DEFAULT,
2010            1102_u16 => ErrorKind::ER_WRONG_DB_NAME,
2011            1103_u16 => ErrorKind::ER_WRONG_TABLE_NAME,
2012            1104_u16 => ErrorKind::ER_TOO_BIG_SELECT,
2013            1105_u16 => ErrorKind::ER_UNKNOWN_ERROR,
2014            1106_u16 => ErrorKind::ER_UNKNOWN_PROCEDURE,
2015            1107_u16 => ErrorKind::ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
2016            1108_u16 => ErrorKind::ER_WRONG_PARAMETERS_TO_PROCEDURE,
2017            1109_u16 => ErrorKind::ER_UNKNOWN_TABLE,
2018            1110_u16 => ErrorKind::ER_FIELD_SPECIFIED_TWICE,
2019            1111_u16 => ErrorKind::ER_INVALID_GROUP_FUNC_USE,
2020            1112_u16 => ErrorKind::ER_UNSUPPORTED_EXTENSION,
2021            1113_u16 => ErrorKind::ER_TABLE_MUST_HAVE_COLUMNS,
2022            1114_u16 => ErrorKind::ER_RECORD_FILE_FULL,
2023            1115_u16 => ErrorKind::ER_UNKNOWN_CHARACTER_SET,
2024            1116_u16 => ErrorKind::ER_TOO_MANY_TABLES,
2025            1117_u16 => ErrorKind::ER_TOO_MANY_FIELDS,
2026            1118_u16 => ErrorKind::ER_TOO_BIG_ROWSIZE,
2027            1119_u16 => ErrorKind::ER_STACK_OVERRUN,
2028            1120_u16 => ErrorKind::ER_WRONG_OUTER_JOIN,
2029            1121_u16 => ErrorKind::ER_NULL_COLUMN_IN_INDEX,
2030            1122_u16 => ErrorKind::ER_CANT_FIND_UDF,
2031            1123_u16 => ErrorKind::ER_CANT_INITIALIZE_UDF,
2032            1124_u16 => ErrorKind::ER_UDF_NO_PATHS,
2033            1125_u16 => ErrorKind::ER_UDF_EXISTS,
2034            1126_u16 => ErrorKind::ER_CANT_OPEN_LIBRARY,
2035            1127_u16 => ErrorKind::ER_CANT_FIND_DL_ENTRY,
2036            1128_u16 => ErrorKind::ER_FUNCTION_NOT_DEFINED,
2037            1129_u16 => ErrorKind::ER_HOST_IS_BLOCKED,
2038            1130_u16 => ErrorKind::ER_HOST_NOT_PRIVILEGED,
2039            1131_u16 => ErrorKind::ER_PASSWORD_ANONYMOUS_USER,
2040            1132_u16 => ErrorKind::ER_PASSWORD_NOT_ALLOWED,
2041            1133_u16 => ErrorKind::ER_PASSWORD_NO_MATCH,
2042            1134_u16 => ErrorKind::ER_UPDATE_INF,
2043            1135_u16 => ErrorKind::ER_CANT_CREATE_THREAD,
2044            1136_u16 => ErrorKind::ER_WRONG_VALUE_COUNT_ON_ROW,
2045            1137_u16 => ErrorKind::ER_CANT_REOPEN_TABLE,
2046            1138_u16 => ErrorKind::ER_INVALID_USE_OF_NULL,
2047            1139_u16 => ErrorKind::ER_REGEXP_ERROR,
2048            1140_u16 => ErrorKind::ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
2049            1141_u16 => ErrorKind::ER_NONEXISTING_GRANT,
2050            1142_u16 => ErrorKind::ER_TABLEACCESS_DENIED_ERROR,
2051            1143_u16 => ErrorKind::ER_COLUMNACCESS_DENIED_ERROR,
2052            1144_u16 => ErrorKind::ER_ILLEGAL_GRANT_FOR_TABLE,
2053            1145_u16 => ErrorKind::ER_GRANT_WRONG_HOST_OR_USER,
2054            1146_u16 => ErrorKind::ER_NO_SUCH_TABLE,
2055            1147_u16 => ErrorKind::ER_NONEXISTING_TABLE_GRANT,
2056            1148_u16 => ErrorKind::ER_NOT_ALLOWED_COMMAND,
2057            1149_u16 => ErrorKind::ER_SYNTAX_ERROR,
2058            1150_u16 => ErrorKind::ER_DELAYED_CANT_CHANGE_LOCK,
2059            1151_u16 => ErrorKind::ER_TOO_MANY_DELAYED_THREADS,
2060            1152_u16 => ErrorKind::ER_ABORTING_CONNECTION,
2061            1153_u16 => ErrorKind::ER_NET_PACKET_TOO_LARGE,
2062            1154_u16 => ErrorKind::ER_NET_READ_ERROR_FROM_PIPE,
2063            1155_u16 => ErrorKind::ER_NET_FCNTL_ERROR,
2064            1156_u16 => ErrorKind::ER_NET_PACKETS_OUT_OF_ORDER,
2065            1157_u16 => ErrorKind::ER_NET_UNCOMPRESS_ERROR,
2066            1158_u16 => ErrorKind::ER_NET_READ_ERROR,
2067            1159_u16 => ErrorKind::ER_NET_READ_INTERRUPTED,
2068            1160_u16 => ErrorKind::ER_NET_ERROR_ON_WRITE,
2069            1161_u16 => ErrorKind::ER_NET_WRITE_INTERRUPTED,
2070            1162_u16 => ErrorKind::ER_TOO_LONG_STRING,
2071            1163_u16 => ErrorKind::ER_TABLE_CANT_HANDLE_BLOB,
2072            1164_u16 => ErrorKind::ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
2073            1165_u16 => ErrorKind::ER_DELAYED_INSERT_TABLE_LOCKED,
2074            1166_u16 => ErrorKind::ER_WRONG_COLUMN_NAME,
2075            1167_u16 => ErrorKind::ER_WRONG_KEY_COLUMN,
2076            1168_u16 => ErrorKind::ER_WRONG_MRG_TABLE,
2077            1169_u16 => ErrorKind::ER_DUP_UNIQUE,
2078            1170_u16 => ErrorKind::ER_BLOB_KEY_WITHOUT_LENGTH,
2079            1171_u16 => ErrorKind::ER_PRIMARY_CANT_HAVE_NULL,
2080            1172_u16 => ErrorKind::ER_TOO_MANY_ROWS,
2081            1173_u16 => ErrorKind::ER_REQUIRES_PRIMARY_KEY,
2082            1174_u16 => ErrorKind::ER_NO_RAID_COMPILED,
2083            1175_u16 => ErrorKind::ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE,
2084            1176_u16 => ErrorKind::ER_KEY_DOES_NOT_EXITS,
2085            1177_u16 => ErrorKind::ER_CHECK_NO_SUCH_TABLE,
2086            1178_u16 => ErrorKind::ER_CHECK_NOT_IMPLEMENTED,
2087            1179_u16 => ErrorKind::ER_CANT_DO_THIS_DURING_AN_TRANSACTION,
2088            1180_u16 => ErrorKind::ER_ERROR_DURING_COMMIT,
2089            1181_u16 => ErrorKind::ER_ERROR_DURING_ROLLBACK,
2090            1182_u16 => ErrorKind::ER_ERROR_DURING_FLUSH_LOGS,
2091            1183_u16 => ErrorKind::ER_ERROR_DURING_CHECKPOINT,
2092            1184_u16 => ErrorKind::ER_NEW_ABORTING_CONNECTION,
2093            1185_u16 => ErrorKind::ER_DUMP_NOT_IMPLEMENTED,
2094            1186_u16 => ErrorKind::ER_FLUSH_MASTER_BINLOG_CLOSED,
2095            1187_u16 => ErrorKind::ER_INDEX_REBUILD,
2096            1188_u16 => ErrorKind::ER_MASTER,
2097            1189_u16 => ErrorKind::ER_MASTER_NET_READ,
2098            1190_u16 => ErrorKind::ER_MASTER_NET_WRITE,
2099            1191_u16 => ErrorKind::ER_FT_MATCHING_KEY_NOT_FOUND,
2100            1192_u16 => ErrorKind::ER_LOCK_OR_ACTIVE_TRANSACTION,
2101            1193_u16 => ErrorKind::ER_UNKNOWN_SYSTEM_VARIABLE,
2102            1194_u16 => ErrorKind::ER_CRASHED_ON_USAGE,
2103            1195_u16 => ErrorKind::ER_CRASHED_ON_REPAIR,
2104            1196_u16 => ErrorKind::ER_WARNING_NOT_COMPLETE_ROLLBACK,
2105            1197_u16 => ErrorKind::ER_TRANS_CACHE_FULL,
2106            1198_u16 => ErrorKind::ER_SLAVE_MUST_STOP,
2107            1199_u16 => ErrorKind::ER_SLAVE_NOT_RUNNING,
2108            1200_u16 => ErrorKind::ER_BAD_SLAVE,
2109            1201_u16 => ErrorKind::ER_MASTER_INF,
2110            1202_u16 => ErrorKind::ER_SLAVE_THREAD,
2111            1203_u16 => ErrorKind::ER_TOO_MANY_USER_CONNECTIONS,
2112            1204_u16 => ErrorKind::ER_SET_CONSTANTS_ONLY,
2113            1205_u16 => ErrorKind::ER_LOCK_WAIT_TIMEOUT,
2114            1206_u16 => ErrorKind::ER_LOCK_TABLE_FULL,
2115            1207_u16 => ErrorKind::ER_READ_ONLY_TRANSACTION,
2116            1208_u16 => ErrorKind::ER_DROP_DB_WITH_READ_LOCK,
2117            1209_u16 => ErrorKind::ER_CREATE_DB_WITH_READ_LOCK,
2118            1210_u16 => ErrorKind::ER_WRONG_ARGUMENTS,
2119            1211_u16 => ErrorKind::ER_NO_PERMISSION_TO_CREATE_USER,
2120            1212_u16 => ErrorKind::ER_UNION_TABLES_IN_DIFFERENT_DIR,
2121            1213_u16 => ErrorKind::ER_LOCK_DEADLOCK,
2122            1214_u16 => ErrorKind::ER_TABLE_CANT_HANDLE_FT,
2123            1215_u16 => ErrorKind::ER_CANNOT_ADD_FOREIGN,
2124            1216_u16 => ErrorKind::ER_NO_REFERENCED_ROW,
2125            1217_u16 => ErrorKind::ER_ROW_IS_REFERENCED,
2126            1218_u16 => ErrorKind::ER_CONNECT_TO_MASTER,
2127            1219_u16 => ErrorKind::ER_QUERY_ON_MASTER,
2128            1220_u16 => ErrorKind::ER_ERROR_WHEN_EXECUTING_COMMAND,
2129            1221_u16 => ErrorKind::ER_WRONG_USAGE,
2130            1222_u16 => ErrorKind::ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
2131            1223_u16 => ErrorKind::ER_CANT_UPDATE_WITH_READLOCK,
2132            1224_u16 => ErrorKind::ER_MIXING_NOT_ALLOWED,
2133            1225_u16 => ErrorKind::ER_DUP_ARGUMENT,
2134            1226_u16 => ErrorKind::ER_USER_LIMIT_REACHED,
2135            1227_u16 => ErrorKind::ER_SPECIFIC_ACCESS_DENIED_ERROR,
2136            1228_u16 => ErrorKind::ER_LOCAL_VARIABLE,
2137            1229_u16 => ErrorKind::ER_GLOBAL_VARIABLE,
2138            1230_u16 => ErrorKind::ER_NO_DEFAULT,
2139            1231_u16 => ErrorKind::ER_WRONG_VALUE_FOR_VAR,
2140            1232_u16 => ErrorKind::ER_WRONG_TYPE_FOR_VAR,
2141            1233_u16 => ErrorKind::ER_VAR_CANT_BE_READ,
2142            1234_u16 => ErrorKind::ER_CANT_USE_OPTION_HERE,
2143            1235_u16 => ErrorKind::ER_NOT_SUPPORTED_YET,
2144            1236_u16 => ErrorKind::ER_MASTER_FATAL_ERROR_READING_BINLOG,
2145            1237_u16 => ErrorKind::ER_SLAVE_IGNORED_TABLE,
2146            1238_u16 => ErrorKind::ER_INCORRECT_GLOBAL_LOCAL_VAR,
2147            1239_u16 => ErrorKind::ER_WRONG_FK_DEF,
2148            1240_u16 => ErrorKind::ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
2149            1241_u16 => ErrorKind::ER_OPERAND_COLUMNS,
2150            1242_u16 => ErrorKind::ER_SUBQUERY_NO_1_ROW,
2151            1243_u16 => ErrorKind::ER_UNKNOWN_STMT_HANDLER,
2152            1244_u16 => ErrorKind::ER_CORRUPT_HELP_DB,
2153            1245_u16 => ErrorKind::ER_CYCLIC_REFERENCE,
2154            1246_u16 => ErrorKind::ER_AUTO_CONVERT,
2155            1247_u16 => ErrorKind::ER_ILLEGAL_REFERENCE,
2156            1248_u16 => ErrorKind::ER_DERIVED_MUST_HAVE_ALIAS,
2157            1249_u16 => ErrorKind::ER_SELECT_REDUCED,
2158            1250_u16 => ErrorKind::ER_TABLENAME_NOT_ALLOWED_HERE,
2159            1251_u16 => ErrorKind::ER_NOT_SUPPORTED_AUTH_MODE,
2160            1252_u16 => ErrorKind::ER_SPATIAL_CANT_HAVE_NULL,
2161            1253_u16 => ErrorKind::ER_COLLATION_CHARSET_MISMATCH,
2162            1254_u16 => ErrorKind::ER_SLAVE_WAS_RUNNING,
2163            1255_u16 => ErrorKind::ER_SLAVE_WAS_NOT_RUNNING,
2164            1256_u16 => ErrorKind::ER_TOO_BIG_FOR_UNCOMPRESS,
2165            1257_u16 => ErrorKind::ER_ZLIB_Z_MEM_ERROR,
2166            1258_u16 => ErrorKind::ER_ZLIB_Z_BUF_ERROR,
2167            1259_u16 => ErrorKind::ER_ZLIB_Z_DATA_ERROR,
2168            1260_u16 => ErrorKind::ER_CUT_VALUE_GROUP_CONCAT,
2169            1261_u16 => ErrorKind::ER_WARN_TOO_FEW_RECORDS,
2170            1262_u16 => ErrorKind::ER_WARN_TOO_MANY_RECORDS,
2171            1263_u16 => ErrorKind::ER_WARN_NULL_TO_NOTNULL,
2172            1264_u16 => ErrorKind::ER_WARN_DATA_OUT_OF_RANGE,
2173            1265_u16 => ErrorKind::WARN_DATA_TRUNCATED,
2174            1266_u16 => ErrorKind::ER_WARN_USING_OTHER_HANDLER,
2175            1267_u16 => ErrorKind::ER_CANT_AGGREGATE_2COLLATIONS,
2176            1268_u16 => ErrorKind::ER_DROP_USER,
2177            1269_u16 => ErrorKind::ER_REVOKE_GRANTS,
2178            1270_u16 => ErrorKind::ER_CANT_AGGREGATE_3COLLATIONS,
2179            1271_u16 => ErrorKind::ER_CANT_AGGREGATE_NCOLLATIONS,
2180            1272_u16 => ErrorKind::ER_VARIABLE_IS_NOT_STRUCT,
2181            1273_u16 => ErrorKind::ER_UNKNOWN_COLLATION,
2182            1274_u16 => ErrorKind::ER_SLAVE_IGNORED_SSL_PARAMS,
2183            1275_u16 => ErrorKind::ER_SERVER_IS_IN_SECURE_AUTH_MODE,
2184            1276_u16 => ErrorKind::ER_WARN_FIELD_RESOLVED,
2185            1277_u16 => ErrorKind::ER_BAD_SLAVE_UNTIL_COND,
2186            1278_u16 => ErrorKind::ER_MISSING_SKIP_SLAVE,
2187            1279_u16 => ErrorKind::ER_UNTIL_COND_IGNORED,
2188            1280_u16 => ErrorKind::ER_WRONG_NAME_FOR_INDEX,
2189            1281_u16 => ErrorKind::ER_WRONG_NAME_FOR_CATALOG,
2190            1282_u16 => ErrorKind::ER_WARN_QC_RESIZE,
2191            1283_u16 => ErrorKind::ER_BAD_FT_COLUMN,
2192            1284_u16 => ErrorKind::ER_UNKNOWN_KEY_CACHE,
2193            1285_u16 => ErrorKind::ER_WARN_HOSTNAME_WONT_WORK,
2194            1286_u16 => ErrorKind::ER_UNKNOWN_STORAGE_ENGINE,
2195            1287_u16 => ErrorKind::ER_WARN_DEPRECATED_SYNTAX,
2196            1288_u16 => ErrorKind::ER_NON_UPDATABLE_TABLE,
2197            1289_u16 => ErrorKind::ER_FEATURE_DISABLED,
2198            1290_u16 => ErrorKind::ER_OPTION_PREVENTS_STATEMENT,
2199            1291_u16 => ErrorKind::ER_DUPLICATED_VALUE_IN_TYPE,
2200            1292_u16 => ErrorKind::ER_TRUNCATED_WRONG_VALUE,
2201            1293_u16 => ErrorKind::ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
2202            1294_u16 => ErrorKind::ER_INVALID_ON_UPDATE,
2203            1295_u16 => ErrorKind::ER_UNSUPPORTED_PS,
2204            1296_u16 => ErrorKind::ER_GET_ERRMSG,
2205            1297_u16 => ErrorKind::ER_GET_TEMPORARY_ERRMSG,
2206            1298_u16 => ErrorKind::ER_UNKNOWN_TIME_ZONE,
2207            1299_u16 => ErrorKind::ER_WARN_INVALID_TIMESTAMP,
2208            1300_u16 => ErrorKind::ER_INVALID_CHARACTER_STRING,
2209            1301_u16 => ErrorKind::ER_WARN_ALLOWED_PACKET_OVERFLOWED,
2210            1302_u16 => ErrorKind::ER_CONFLICTING_DECLARATIONS,
2211            1303_u16 => ErrorKind::ER_SP_NO_RECURSIVE_CREATE,
2212            1304_u16 => ErrorKind::ER_SP_ALREADY_EXISTS,
2213            1305_u16 => ErrorKind::ER_SP_DOES_NOT_EXIST,
2214            1306_u16 => ErrorKind::ER_SP_DROP_FAILED,
2215            1307_u16 => ErrorKind::ER_SP_STORE_FAILED,
2216            1308_u16 => ErrorKind::ER_SP_LILABEL_MISMATCH,
2217            1309_u16 => ErrorKind::ER_SP_LABEL_REDEFINE,
2218            1310_u16 => ErrorKind::ER_SP_LABEL_MISMATCH,
2219            1311_u16 => ErrorKind::ER_SP_UNINIT_VAR,
2220            1312_u16 => ErrorKind::ER_SP_BADSELECT,
2221            1313_u16 => ErrorKind::ER_SP_BADRETURN,
2222            1314_u16 => ErrorKind::ER_SP_BADSTATEMENT,
2223            1315_u16 => ErrorKind::ER_UPDATE_LOG_DEPRECATED_IGNORED,
2224            1316_u16 => ErrorKind::ER_UPDATE_LOG_DEPRECATED_TRANSLATED,
2225            1317_u16 => ErrorKind::ER_QUERY_INTERRUPTED,
2226            1318_u16 => ErrorKind::ER_SP_WRONG_NO_OF_ARGS,
2227            1319_u16 => ErrorKind::ER_SP_COND_MISMATCH,
2228            1320_u16 => ErrorKind::ER_SP_NORETURN,
2229            1321_u16 => ErrorKind::ER_SP_NORETURNEND,
2230            1322_u16 => ErrorKind::ER_SP_BAD_CURSOR_QUERY,
2231            1323_u16 => ErrorKind::ER_SP_BAD_CURSOR_SELECT,
2232            1324_u16 => ErrorKind::ER_SP_CURSOR_MISMATCH,
2233            1325_u16 => ErrorKind::ER_SP_CURSOR_ALREADY_OPEN,
2234            1326_u16 => ErrorKind::ER_SP_CURSOR_NOT_OPEN,
2235            1327_u16 => ErrorKind::ER_SP_UNDECLARED_VAR,
2236            1328_u16 => ErrorKind::ER_SP_WRONG_NO_OF_FETCH_ARGS,
2237            1329_u16 => ErrorKind::ER_SP_FETCH_NO_DATA,
2238            1330_u16 => ErrorKind::ER_SP_DUP_PARAM,
2239            1331_u16 => ErrorKind::ER_SP_DUP_VAR,
2240            1332_u16 => ErrorKind::ER_SP_DUP_COND,
2241            1333_u16 => ErrorKind::ER_SP_DUP_CURS,
2242            1334_u16 => ErrorKind::ER_SP_CANT_ALTER,
2243            1335_u16 => ErrorKind::ER_SP_SUBSELECT_NYI,
2244            1336_u16 => ErrorKind::ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG,
2245            1337_u16 => ErrorKind::ER_SP_VARCOND_AFTER_CURSHNDLR,
2246            1338_u16 => ErrorKind::ER_SP_CURSOR_AFTER_HANDLER,
2247            1339_u16 => ErrorKind::ER_SP_CASE_NOT_FOUND,
2248            1340_u16 => ErrorKind::ER_FPARSER_TOO_BIG_FILE,
2249            1341_u16 => ErrorKind::ER_FPARSER_BAD_HEADER,
2250            1342_u16 => ErrorKind::ER_FPARSER_EOF_IN_COMMENT,
2251            1343_u16 => ErrorKind::ER_FPARSER_ERROR_IN_PARAMETER,
2252            1344_u16 => ErrorKind::ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER,
2253            1345_u16 => ErrorKind::ER_VIEW_NO_EXPLAIN,
2254            1346_u16 => ErrorKind::ER_FRM_UNKNOWN_TYPE,
2255            1347_u16 => ErrorKind::ER_WRONG_OBJECT,
2256            1348_u16 => ErrorKind::ER_NONUPDATEABLE_COLUMN,
2257            1349_u16 => ErrorKind::ER_VIEW_SELECT_DERIVED,
2258            1350_u16 => ErrorKind::ER_VIEW_SELECT_CLAUSE,
2259            1351_u16 => ErrorKind::ER_VIEW_SELECT_VARIABLE,
2260            1352_u16 => ErrorKind::ER_VIEW_SELECT_TMPTABLE,
2261            1353_u16 => ErrorKind::ER_VIEW_WRONG_LIST,
2262            1354_u16 => ErrorKind::ER_WARN_VIEW_MERGE,
2263            1355_u16 => ErrorKind::ER_WARN_VIEW_WITHOUT_KEY,
2264            1356_u16 => ErrorKind::ER_VIEW_INVALID,
2265            1357_u16 => ErrorKind::ER_SP_NO_DROP_SP,
2266            1358_u16 => ErrorKind::ER_SP_GOTO_IN_HNDLR,
2267            1359_u16 => ErrorKind::ER_TRG_ALREADY_EXISTS,
2268            1360_u16 => ErrorKind::ER_TRG_DOES_NOT_EXIST,
2269            1361_u16 => ErrorKind::ER_TRG_ON_VIEW_OR_TEMP_TABLE,
2270            1362_u16 => ErrorKind::ER_TRG_CANT_CHANGE_ROW,
2271            1363_u16 => ErrorKind::ER_TRG_NO_SUCH_ROW_IN_TRG,
2272            1364_u16 => ErrorKind::ER_NO_DEFAULT_FOR_FIELD,
2273            1365_u16 => ErrorKind::ER_DIVISION_BY_ZER,
2274            1366_u16 => ErrorKind::ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
2275            1367_u16 => ErrorKind::ER_ILLEGAL_VALUE_FOR_TYPE,
2276            1368_u16 => ErrorKind::ER_VIEW_NONUPD_CHECK,
2277            1369_u16 => ErrorKind::ER_VIEW_CHECK_FAILED,
2278            1370_u16 => ErrorKind::ER_PROCACCESS_DENIED_ERROR,
2279            1371_u16 => ErrorKind::ER_RELAY_LOG_FAIL,
2280            1372_u16 => ErrorKind::ER_PASSWD_LENGTH,
2281            1373_u16 => ErrorKind::ER_UNKNOWN_TARGET_BINLOG,
2282            1374_u16 => ErrorKind::ER_IO_ERR_LOG_INDEX_READ,
2283            1375_u16 => ErrorKind::ER_BINLOG_PURGE_PROHIBITED,
2284            1376_u16 => ErrorKind::ER_FSEEK_FAIL,
2285            1377_u16 => ErrorKind::ER_BINLOG_PURGE_FATAL_ERR,
2286            1378_u16 => ErrorKind::ER_LOG_IN_USE,
2287            1379_u16 => ErrorKind::ER_LOG_PURGE_UNKNOWN_ERR,
2288            1380_u16 => ErrorKind::ER_RELAY_LOG_INIT,
2289            1381_u16 => ErrorKind::ER_NO_BINARY_LOGGING,
2290            1382_u16 => ErrorKind::ER_RESERVED_SYNTAX,
2291            1383_u16 => ErrorKind::ER_WSAS_FAILED,
2292            1384_u16 => ErrorKind::ER_DIFF_GROUPS_PROC,
2293            1385_u16 => ErrorKind::ER_NO_GROUP_FOR_PROC,
2294            1386_u16 => ErrorKind::ER_ORDER_WITH_PROC,
2295            1387_u16 => ErrorKind::ER_LOGGING_PROHIBIT_CHANGING_OF,
2296            1388_u16 => ErrorKind::ER_NO_FILE_MAPPING,
2297            1389_u16 => ErrorKind::ER_WRONG_MAGIC,
2298            1390_u16 => ErrorKind::ER_PS_MANY_PARAM,
2299            1391_u16 => ErrorKind::ER_KEY_PART_0,
2300            1392_u16 => ErrorKind::ER_VIEW_CHECKSUM,
2301            1393_u16 => ErrorKind::ER_VIEW_MULTIUPDATE,
2302            1394_u16 => ErrorKind::ER_VIEW_NO_INSERT_FIELD_LIST,
2303            1395_u16 => ErrorKind::ER_VIEW_DELETE_MERGE_VIEW,
2304            1396_u16 => ErrorKind::ER_CANNOT_USER,
2305            1397_u16 => ErrorKind::ER_XAER_NOTA,
2306            1398_u16 => ErrorKind::ER_XAER_INVAL,
2307            1399_u16 => ErrorKind::ER_XAER_RMFAIL,
2308            1400_u16 => ErrorKind::ER_XAER_OUTSIDE,
2309            1401_u16 => ErrorKind::ER_XAER_RMERR,
2310            1402_u16 => ErrorKind::ER_XA_RBROLLBACK,
2311            1403_u16 => ErrorKind::ER_NONEXISTING_PROC_GRANT,
2312            1404_u16 => ErrorKind::ER_PROC_AUTO_GRANT_FAIL,
2313            1405_u16 => ErrorKind::ER_PROC_AUTO_REVOKE_FAIL,
2314            1406_u16 => ErrorKind::ER_DATA_TOO_LONG,
2315            1407_u16 => ErrorKind::ER_SP_BAD_SQLSTATE,
2316            1408_u16 => ErrorKind::ER_STARTUP,
2317            1409_u16 => ErrorKind::ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
2318            1410_u16 => ErrorKind::ER_CANT_CREATE_USER_WITH_GRANT,
2319            1411_u16 => ErrorKind::ER_WRONG_VALUE_FOR_TYPE,
2320            1412_u16 => ErrorKind::ER_TABLE_DEF_CHANGED,
2321            1413_u16 => ErrorKind::ER_SP_DUP_HANDLER,
2322            1414_u16 => ErrorKind::ER_SP_NOT_VAR_ARG,
2323            1415_u16 => ErrorKind::ER_SP_NO_RETSET,
2324            1416_u16 => ErrorKind::ER_CANT_CREATE_GEOMETRY_OBJECT,
2325            1417_u16 => ErrorKind::ER_FAILED_ROUTINE_BREAK_BINLOG,
2326            1418_u16 => ErrorKind::ER_BINLOG_UNSAFE_ROUTINE,
2327            1419_u16 => ErrorKind::ER_BINLOG_CREATE_ROUTINE_NEED_SUPER,
2328            1420_u16 => ErrorKind::ER_EXEC_STMT_WITH_OPEN_CURSOR,
2329            1421_u16 => ErrorKind::ER_STMT_HAS_NO_OPEN_CURSOR,
2330            1422_u16 => ErrorKind::ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
2331            1423_u16 => ErrorKind::ER_NO_DEFAULT_FOR_VIEW_FIELD,
2332            1424_u16 => ErrorKind::ER_SP_NO_RECURSION,
2333            1425_u16 => ErrorKind::ER_TOO_BIG_SCALE,
2334            1426_u16 => ErrorKind::ER_TOO_BIG_PRECISION,
2335            1427_u16 => ErrorKind::ER_M_BIGGER_THAN_D,
2336            1428_u16 => ErrorKind::ER_WRONG_LOCK_OF_SYSTEM_TABLE,
2337            1429_u16 => ErrorKind::ER_CONNECT_TO_FOREIGN_DATA_SOURCE,
2338            1430_u16 => ErrorKind::ER_QUERY_ON_FOREIGN_DATA_SOURCE,
2339            1431_u16 => ErrorKind::ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST,
2340            1432_u16 => ErrorKind::ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE,
2341            1433_u16 => ErrorKind::ER_FOREIGN_DATA_STRING_INVALID,
2342            1434_u16 => ErrorKind::ER_CANT_CREATE_FEDERATED_TABLE,
2343            1435_u16 => ErrorKind::ER_TRG_IN_WRONG_SCHEMA,
2344            1436_u16 => ErrorKind::ER_STACK_OVERRUN_NEED_MORE,
2345            1437_u16 => ErrorKind::ER_TOO_LONG_BODY,
2346            1438_u16 => ErrorKind::ER_WARN_CANT_DROP_DEFAULT_KEYCACHE,
2347            1439_u16 => ErrorKind::ER_TOO_BIG_DISPLAYWIDTH,
2348            1440_u16 => ErrorKind::ER_XAER_DUPID,
2349            1441_u16 => ErrorKind::ER_DATETIME_FUNCTION_OVERFLOW,
2350            1442_u16 => ErrorKind::ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG,
2351            1443_u16 => ErrorKind::ER_VIEW_PREVENT_UPDATE,
2352            1444_u16 => ErrorKind::ER_PS_NO_RECURSION,
2353            1445_u16 => ErrorKind::ER_SP_CANT_SET_AUTOCOMMIT,
2354            1446_u16 => ErrorKind::ER_MALFORMED_DEFINER,
2355            1447_u16 => ErrorKind::ER_VIEW_FRM_NO_USER,
2356            1448_u16 => ErrorKind::ER_VIEW_OTHER_USER,
2357            1449_u16 => ErrorKind::ER_NO_SUCH_USER,
2358            1450_u16 => ErrorKind::ER_FORBID_SCHEMA_CHANGE,
2359            1451_u16 => ErrorKind::ER_ROW_IS_REFERENCED_2,
2360            1452_u16 => ErrorKind::ER_NO_REFERENCED_ROW_2,
2361            1453_u16 => ErrorKind::ER_SP_BAD_VAR_SHADOW,
2362            1454_u16 => ErrorKind::ER_TRG_NO_DEFINER,
2363            1455_u16 => ErrorKind::ER_OLD_FILE_FORMAT,
2364            1456_u16 => ErrorKind::ER_SP_RECURSION_LIMIT,
2365            1457_u16 => ErrorKind::ER_SP_PROC_TABLE_CORRUPT,
2366            1458_u16 => ErrorKind::ER_SP_WRONG_NAME,
2367            1459_u16 => ErrorKind::ER_TABLE_NEEDS_UPGRADE,
2368            1460_u16 => ErrorKind::ER_SP_NO_AGGREGATE,
2369            1461_u16 => ErrorKind::ER_MAX_PREPARED_STMT_COUNT_REACHED,
2370            1462_u16 => ErrorKind::ER_VIEW_RECURSIVE,
2371            1463_u16 => ErrorKind::ER_NON_GROUPING_FIELD_USED,
2372            1464_u16 => ErrorKind::ER_TABLE_CANT_HANDLE_SPKEYS,
2373            1465_u16 => ErrorKind::ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA,
2374            1466_u16 => ErrorKind::ER_REMOVED_SPACES,
2375            1467_u16 => ErrorKind::ER_AUTOINC_READ_FAILED,
2376            1468_u16 => ErrorKind::ER_USERNAME,
2377            1469_u16 => ErrorKind::ER_HOSTNAME,
2378            1470_u16 => ErrorKind::ER_WRONG_STRING_LENGTH,
2379            1471_u16 => ErrorKind::ER_NON_INSERTABLE_TABLE,
2380            1472_u16 => ErrorKind::ER_ADMIN_WRONG_MRG_TABLE,
2381            1473_u16 => ErrorKind::ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
2382            1474_u16 => ErrorKind::ER_NAME_BECOMES_EMPTY,
2383            1475_u16 => ErrorKind::ER_AMBIGUOUS_FIELD_TERM,
2384            1476_u16 => ErrorKind::ER_FOREIGN_SERVER_EXISTS,
2385            1477_u16 => ErrorKind::ER_FOREIGN_SERVER_DOESNT_EXIST,
2386            1478_u16 => ErrorKind::ER_ILLEGAL_HA_CREATE_OPTION,
2387            1479_u16 => ErrorKind::ER_PARTITION_REQUIRES_VALUES_ERROR,
2388            1480_u16 => ErrorKind::ER_PARTITION_WRONG_VALUES_ERROR,
2389            1481_u16 => ErrorKind::ER_PARTITION_MAXVALUE_ERROR,
2390            1482_u16 => ErrorKind::ER_PARTITION_SUBPARTITION_ERROR,
2391            1483_u16 => ErrorKind::ER_PARTITION_SUBPART_MIX_ERROR,
2392            1484_u16 => ErrorKind::ER_PARTITION_WRONG_NO_PART_ERROR,
2393            1485_u16 => ErrorKind::ER_PARTITION_WRONG_NO_SUBPART_ERROR,
2394            1486_u16 => ErrorKind::ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR,
2395            1487_u16 => ErrorKind::ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR,
2396            1488_u16 => ErrorKind::ER_FIELD_NOT_FOUND_PART_ERROR,
2397            1489_u16 => ErrorKind::ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR,
2398            1490_u16 => ErrorKind::ER_INCONSISTENT_PARTITION_INFO_ERROR,
2399            1491_u16 => ErrorKind::ER_PARTITION_FUNC_NOT_ALLOWED_ERROR,
2400            1492_u16 => ErrorKind::ER_PARTITIONS_MUST_BE_DEFINED_ERROR,
2401            1493_u16 => ErrorKind::ER_RANGE_NOT_INCREASING_ERROR,
2402            1494_u16 => ErrorKind::ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR,
2403            1495_u16 => ErrorKind::ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR,
2404            1496_u16 => ErrorKind::ER_PARTITION_ENTRY_ERROR,
2405            1497_u16 => ErrorKind::ER_MIX_HANDLER_ERROR,
2406            1498_u16 => ErrorKind::ER_PARTITION_NOT_DEFINED_ERROR,
2407            1499_u16 => ErrorKind::ER_TOO_MANY_PARTITIONS_ERROR,
2408            1500_u16 => ErrorKind::ER_SUBPARTITION_ERROR,
2409            1501_u16 => ErrorKind::ER_CANT_CREATE_HANDLER_FILE,
2410            1502_u16 => ErrorKind::ER_BLOB_FIELD_IN_PART_FUNC_ERROR,
2411            1503_u16 => ErrorKind::ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF,
2412            1504_u16 => ErrorKind::ER_NO_PARTS_ERROR,
2413            1505_u16 => ErrorKind::ER_PARTITION_MGMT_ON_NONPARTITIONED,
2414            1506_u16 => ErrorKind::ER_FOREIGN_KEY_ON_PARTITIONED,
2415            1507_u16 => ErrorKind::ER_DROP_PARTITION_NON_EXISTENT,
2416            1508_u16 => ErrorKind::ER_DROP_LAST_PARTITION,
2417            1509_u16 => ErrorKind::ER_COALESCE_ONLY_ON_HASH_PARTITION,
2418            1510_u16 => ErrorKind::ER_REORG_HASH_ONLY_ON_SAME_N,
2419            1511_u16 => ErrorKind::ER_REORG_NO_PARAM_ERROR,
2420            1512_u16 => ErrorKind::ER_ONLY_ON_RANGE_LIST_PARTITION,
2421            1513_u16 => ErrorKind::ER_ADD_PARTITION_SUBPART_ERROR,
2422            1514_u16 => ErrorKind::ER_ADD_PARTITION_NO_NEW_PARTITION,
2423            1515_u16 => ErrorKind::ER_COALESCE_PARTITION_NO_PARTITION,
2424            1516_u16 => ErrorKind::ER_REORG_PARTITION_NOT_EXIST,
2425            1517_u16 => ErrorKind::ER_SAME_NAME_PARTITION,
2426            1518_u16 => ErrorKind::ER_NO_BINLOG_ERROR,
2427            1519_u16 => ErrorKind::ER_CONSECUTIVE_REORG_PARTITIONS,
2428            1520_u16 => ErrorKind::ER_REORG_OUTSIDE_RANGE,
2429            1521_u16 => ErrorKind::ER_PARTITION_FUNCTION_FAILURE,
2430            1522_u16 => ErrorKind::ER_PART_STATE_ERROR,
2431            1523_u16 => ErrorKind::ER_LIMITED_PART_RANGE,
2432            1524_u16 => ErrorKind::ER_PLUGIN_IS_NOT_LOADED,
2433            1525_u16 => ErrorKind::ER_WRONG_VALUE,
2434            1526_u16 => ErrorKind::ER_NO_PARTITION_FOR_GIVEN_VALUE,
2435            1527_u16 => ErrorKind::ER_FILEGROUP_OPTION_ONLY_ONCE,
2436            1528_u16 => ErrorKind::ER_CREATE_FILEGROUP_FAILED,
2437            1529_u16 => ErrorKind::ER_DROP_FILEGROUP_FAILED,
2438            1530_u16 => ErrorKind::ER_TABLESPACE_AUTO_EXTEND_ERROR,
2439            1531_u16 => ErrorKind::ER_WRONG_SIZE_NUMBER,
2440            1532_u16 => ErrorKind::ER_SIZE_OVERFLOW_ERROR,
2441            1533_u16 => ErrorKind::ER_ALTER_FILEGROUP_FAILED,
2442            1534_u16 => ErrorKind::ER_BINLOG_ROW_LOGGING_FAILED,
2443            1535_u16 => ErrorKind::ER_BINLOG_ROW_WRONG_TABLE_DEF,
2444            1536_u16 => ErrorKind::ER_BINLOG_ROW_RBR_TO_SBR,
2445            1537_u16 => ErrorKind::ER_EVENT_ALREADY_EXISTS,
2446            1538_u16 => ErrorKind::ER_EVENT_STORE_FAILED,
2447            1539_u16 => ErrorKind::ER_EVENT_DOES_NOT_EXIST,
2448            1540_u16 => ErrorKind::ER_EVENT_CANT_ALTER,
2449            1541_u16 => ErrorKind::ER_EVENT_DROP_FAILED,
2450            1542_u16 => ErrorKind::ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG,
2451            1543_u16 => ErrorKind::ER_EVENT_ENDS_BEFORE_STARTS,
2452            1544_u16 => ErrorKind::ER_EVENT_EXEC_TIME_IN_THE_PAST,
2453            1545_u16 => ErrorKind::ER_EVENT_OPEN_TABLE_FAILED,
2454            1546_u16 => ErrorKind::ER_EVENT_NEITHER_M_EXPR_NOR_M_AT,
2455            1547_u16 => ErrorKind::ER_COL_COUNT_DOESNT_MATCH_CORRUPTED,
2456            1548_u16 => ErrorKind::ER_CANNOT_LOAD_FROM_TABLE,
2457            1549_u16 => ErrorKind::ER_EVENT_CANNOT_DELETE,
2458            1550_u16 => ErrorKind::ER_EVENT_COMPILE_ERROR,
2459            1551_u16 => ErrorKind::ER_EVENT_SAME_NAME,
2460            1552_u16 => ErrorKind::ER_EVENT_DATA_TOO_LONG,
2461            1553_u16 => ErrorKind::ER_DROP_INDEX_FK,
2462            1554_u16 => ErrorKind::ER_WARN_DEPRECATED_SYNTAX_WITH_VER,
2463            1555_u16 => ErrorKind::ER_CANT_WRITE_LOCK_LOG_TABLE,
2464            1556_u16 => ErrorKind::ER_CANT_LOCK_LOG_TABLE,
2465            1557_u16 => ErrorKind::ER_FOREIGN_DUPLICATE_KEY,
2466            1558_u16 => ErrorKind::ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE,
2467            1559_u16 => ErrorKind::ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR,
2468            1560_u16 => ErrorKind::ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT,
2469            1561_u16 => ErrorKind::ER_NDB_CANT_SWITCH_BINLOG_FORMAT,
2470            1562_u16 => ErrorKind::ER_PARTITION_NO_TEMPORARY,
2471            1563_u16 => ErrorKind::ER_PARTITION_CONST_DOMAIN_ERROR,
2472            1564_u16 => ErrorKind::ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,
2473            1565_u16 => ErrorKind::ER_DDL_LOG_ERROR,
2474            1566_u16 => ErrorKind::ER_NULL_IN_VALUES_LESS_THAN,
2475            1567_u16 => ErrorKind::ER_WRONG_PARTITION_NAME,
2476            1568_u16 => ErrorKind::ER_CANT_CHANGE_TX_ISOLATION,
2477            1569_u16 => ErrorKind::ER_DUP_ENTRY_AUTOINCREMENT_CASE,
2478            1570_u16 => ErrorKind::ER_EVENT_MODIFY_QUEUE_ERROR,
2479            1571_u16 => ErrorKind::ER_EVENT_SET_VAR_ERROR,
2480            1572_u16 => ErrorKind::ER_PARTITION_MERGE_ERROR,
2481            1573_u16 => ErrorKind::ER_CANT_ACTIVATE_LOG,
2482            1574_u16 => ErrorKind::ER_RBR_NOT_AVAILABLE,
2483            1575_u16 => ErrorKind::ER_BASE64_DECODE_ERROR,
2484            1576_u16 => ErrorKind::ER_EVENT_RECURSION_FORBIDDEN,
2485            1577_u16 => ErrorKind::ER_EVENTS_DB_ERROR,
2486            1578_u16 => ErrorKind::ER_ONLY_INTEGERS_ALLOWED,
2487            1579_u16 => ErrorKind::ER_UNSUPORTED_LOG_ENGINE,
2488            1580_u16 => ErrorKind::ER_BAD_LOG_STATEMENT,
2489            1581_u16 => ErrorKind::ER_CANT_RENAME_LOG_TABLE,
2490            1582_u16 => ErrorKind::ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT,
2491            1583_u16 => ErrorKind::ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
2492            1584_u16 => ErrorKind::ER_WRONG_PARAMETERS_TO_STORED_FCT,
2493            1585_u16 => ErrorKind::ER_NATIVE_FCT_NAME_COLLISION,
2494            1586_u16 => ErrorKind::ER_DUP_ENTRY_WITH_KEY_NAME,
2495            1587_u16 => ErrorKind::ER_BINLOG_PURGE_EMFILE,
2496            1588_u16 => ErrorKind::ER_EVENT_CANNOT_CREATE_IN_THE_PAST,
2497            1589_u16 => ErrorKind::ER_EVENT_CANNOT_ALTER_IN_THE_PAST,
2498            1590_u16 => ErrorKind::ER_SLAVE_INCIDENT,
2499            1591_u16 => ErrorKind::ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT,
2500            1592_u16 => ErrorKind::ER_BINLOG_UNSAFE_STATEMENT,
2501            1593_u16 => ErrorKind::ER_SLAVE_FATAL_ERROR,
2502            1594_u16 => ErrorKind::ER_SLAVE_RELAY_LOG_READ_FAILURE,
2503            1595_u16 => ErrorKind::ER_SLAVE_RELAY_LOG_WRITE_FAILURE,
2504            1596_u16 => ErrorKind::ER_SLAVE_CREATE_EVENT_FAILURE,
2505            1597_u16 => ErrorKind::ER_SLAVE_MASTER_COM_FAILURE,
2506            1598_u16 => ErrorKind::ER_BINLOG_LOGGING_IMPOSSIBLE,
2507            1599_u16 => ErrorKind::ER_VIEW_NO_CREATION_CTX,
2508            1600_u16 => ErrorKind::ER_VIEW_INVALID_CREATION_CTX,
2509            1601_u16 => ErrorKind::ER_SR_INVALID_CREATION_CTX,
2510            1602_u16 => ErrorKind::ER_TRG_CORRUPTED_FILE,
2511            1603_u16 => ErrorKind::ER_TRG_NO_CREATION_CTX,
2512            1604_u16 => ErrorKind::ER_TRG_INVALID_CREATION_CTX,
2513            1605_u16 => ErrorKind::ER_EVENT_INVALID_CREATION_CTX,
2514            1606_u16 => ErrorKind::ER_TRG_CANT_OPEN_TABLE,
2515            1607_u16 => ErrorKind::ER_CANT_CREATE_SROUTINE,
2516            1608_u16 => ErrorKind::ER_UNUSED_11,
2517            1609_u16 => ErrorKind::ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT,
2518            1610_u16 => ErrorKind::ER_SLAVE_CORRUPT_EVENT,
2519            1611_u16 => ErrorKind::ER_LOAD_DATA_INVALID_COLUMN,
2520            1612_u16 => ErrorKind::ER_LOG_PURGE_NO_FILE,
2521            1613_u16 => ErrorKind::ER_XA_RBTIMEOUT,
2522            1614_u16 => ErrorKind::ER_XA_RBDEADLOCK,
2523            1615_u16 => ErrorKind::ER_NEED_REPREPARE,
2524            1616_u16 => ErrorKind::ER_DELAYED_NOT_SUPPORTED,
2525            1617_u16 => ErrorKind::WARN_NO_MASTER_INF,
2526            1618_u16 => ErrorKind::WARN_OPTION_IGNORED,
2527            1619_u16 => ErrorKind::WARN_PLUGIN_DELETE_BUILTIN,
2528            1620_u16 => ErrorKind::WARN_PLUGIN_BUSY,
2529            1621_u16 => ErrorKind::ER_VARIABLE_IS_READONLY,
2530            1622_u16 => ErrorKind::ER_WARN_ENGINE_TRANSACTION_ROLLBACK,
2531            1623_u16 => ErrorKind::ER_SLAVE_HEARTBEAT_FAILURE,
2532            1624_u16 => ErrorKind::ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE,
2533            1625_u16 => ErrorKind::ER_NDB_REPLICATION_SCHEMA_ERROR,
2534            1626_u16 => ErrorKind::ER_CONFLICT_FN_PARSE_ERROR,
2535            1627_u16 => ErrorKind::ER_EXCEPTIONS_WRITE_ERROR,
2536            1628_u16 => ErrorKind::ER_TOO_LONG_TABLE_COMMENT,
2537            1629_u16 => ErrorKind::ER_TOO_LONG_FIELD_COMMENT,
2538            1630_u16 => ErrorKind::ER_FUNC_INEXISTENT_NAME_COLLISION,
2539            1631_u16 => ErrorKind::ER_DATABASE_NAME,
2540            1632_u16 => ErrorKind::ER_TABLE_NAME,
2541            1633_u16 => ErrorKind::ER_PARTITION_NAME,
2542            1634_u16 => ErrorKind::ER_SUBPARTITION_NAME,
2543            1635_u16 => ErrorKind::ER_TEMPORARY_NAME,
2544            1636_u16 => ErrorKind::ER_RENAMED_NAME,
2545            1637_u16 => ErrorKind::ER_TOO_MANY_CONCURRENT_TRXS,
2546            1638_u16 => ErrorKind::WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED,
2547            1639_u16 => ErrorKind::ER_DEBUG_SYNC_TIMEOUT,
2548            1640_u16 => ErrorKind::ER_DEBUG_SYNC_HIT_LIMIT,
2549            1641_u16 => ErrorKind::ER_DUP_SIGNAL_SET,
2550            1642_u16 => ErrorKind::ER_SIGNAL_WARN,
2551            1643_u16 => ErrorKind::ER_SIGNAL_NOT_FOUND,
2552            1644_u16 => ErrorKind::ER_SIGNAL_EXCEPTION,
2553            1645_u16 => ErrorKind::ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER,
2554            1646_u16 => ErrorKind::ER_SIGNAL_BAD_CONDITION_TYPE,
2555            1647_u16 => ErrorKind::WARN_COND_ITEM_TRUNCATED,
2556            1648_u16 => ErrorKind::ER_COND_ITEM_TOO_LONG,
2557            1649_u16 => ErrorKind::ER_UNKNOWN_LOCALE,
2558            1650_u16 => ErrorKind::ER_SLAVE_IGNORE_SERVER_IDS,
2559            1651_u16 => ErrorKind::ER_QUERY_CACHE_DISABLED,
2560            1652_u16 => ErrorKind::ER_SAME_NAME_PARTITION_FIELD,
2561            1653_u16 => ErrorKind::ER_PARTITION_COLUMN_LIST_ERROR,
2562            1654_u16 => ErrorKind::ER_WRONG_TYPE_COLUMN_VALUE_ERROR,
2563            1655_u16 => ErrorKind::ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR,
2564            1656_u16 => ErrorKind::ER_MAXVALUE_IN_VALUES_IN,
2565            1657_u16 => ErrorKind::ER_TOO_MANY_VALUES_ERROR,
2566            1658_u16 => ErrorKind::ER_ROW_SINGLE_PARTITION_FIELD_ERROR,
2567            1659_u16 => ErrorKind::ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD,
2568            1660_u16 => ErrorKind::ER_PARTITION_FIELDS_TOO_LONG,
2569            1661_u16 => ErrorKind::ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE,
2570            1662_u16 => ErrorKind::ER_BINLOG_ROW_MODE_AND_STMT_ENGINE,
2571            1663_u16 => ErrorKind::ER_BINLOG_UNSAFE_AND_STMT_ENGINE,
2572            1664_u16 => ErrorKind::ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE,
2573            1665_u16 => ErrorKind::ER_BINLOG_STMT_MODE_AND_ROW_ENGINE,
2574            1666_u16 => ErrorKind::ER_BINLOG_ROW_INJECTION_AND_STMT_MODE,
2575            1667_u16 => ErrorKind::ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE,
2576            1668_u16 => ErrorKind::ER_BINLOG_UNSAFE_LIMIT,
2577            1669_u16 => ErrorKind::ER_BINLOG_UNSAFE_INSERT_DELAYED,
2578            1670_u16 => ErrorKind::ER_BINLOG_UNSAFE_SYSTEM_TABLE,
2579            1671_u16 => ErrorKind::ER_BINLOG_UNSAFE_AUTOINC_COLUMNS,
2580            1672_u16 => ErrorKind::ER_BINLOG_UNSAFE_UDF,
2581            1673_u16 => ErrorKind::ER_BINLOG_UNSAFE_SYSTEM_VARIABLE,
2582            1674_u16 => ErrorKind::ER_BINLOG_UNSAFE_SYSTEM_FUNCTION,
2583            1675_u16 => ErrorKind::ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS,
2584            1676_u16 => ErrorKind::ER_MESSAGE_AND_STATEMENT,
2585            1677_u16 => ErrorKind::ER_SLAVE_CONVERSION_FAILED,
2586            1678_u16 => ErrorKind::ER_SLAVE_CANT_CREATE_CONVERSION,
2587            1679_u16 => ErrorKind::ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT,
2588            1680_u16 => ErrorKind::ER_PATH_LENGTH,
2589            1681_u16 => ErrorKind::ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT,
2590            1682_u16 => ErrorKind::ER_WRONG_NATIVE_TABLE_STRUCTURE,
2591            1683_u16 => ErrorKind::ER_WRONG_PERFSCHEMA_USAGE,
2592            1684_u16 => ErrorKind::ER_WARN_I_S_SKIPPED_TABLE,
2593            1685_u16 => ErrorKind::ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT,
2594            1686_u16 => ErrorKind::ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT,
2595            1687_u16 => ErrorKind::ER_SPATIAL_MUST_HAVE_GEOM_COL,
2596            1688_u16 => ErrorKind::ER_TOO_LONG_INDEX_COMMENT,
2597            1689_u16 => ErrorKind::ER_LOCK_ABORTED,
2598            1690_u16 => ErrorKind::ER_DATA_OUT_OF_RANGE,
2599            1691_u16 => ErrorKind::ER_WRONG_SPVAR_TYPE_IN_LIMIT,
2600            1692_u16 => ErrorKind::ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE,
2601            1693_u16 => ErrorKind::ER_BINLOG_UNSAFE_MIXED_STATEMENT,
2602            1694_u16 => ErrorKind::ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN,
2603            1695_u16 => ErrorKind::ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN,
2604            1696_u16 => ErrorKind::ER_FAILED_READ_FROM_PAR_FILE,
2605            1697_u16 => ErrorKind::ER_VALUES_IS_NOT_INT_TYPE_ERROR,
2606            1698_u16 => ErrorKind::ER_ACCESS_DENIED_NO_PASSWORD_ERROR,
2607            1699_u16 => ErrorKind::ER_SET_PASSWORD_AUTH_PLUGIN,
2608            1700_u16 => ErrorKind::ER_GRANT_PLUGIN_USER_EXISTS,
2609            1701_u16 => ErrorKind::ER_TRUNCATE_ILLEGAL_FK,
2610            1702_u16 => ErrorKind::ER_PLUGIN_IS_PERMANENT,
2611            1703_u16 => ErrorKind::ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN,
2612            1704_u16 => ErrorKind::ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX,
2613            1705_u16 => ErrorKind::ER_STMT_CACHE_FULL,
2614            1706_u16 => ErrorKind::ER_MULTI_UPDATE_KEY_CONFLICT,
2615            1707_u16 => ErrorKind::ER_TABLE_NEEDS_REBUILD,
2616            1708_u16 => ErrorKind::WARN_OPTION_BELOW_LIMIT,
2617            1709_u16 => ErrorKind::ER_INDEX_COLUMN_TOO_LONG,
2618            1710_u16 => ErrorKind::ER_ERROR_IN_TRIGGER_BODY,
2619            1711_u16 => ErrorKind::ER_ERROR_IN_UNKNOWN_TRIGGER_BODY,
2620            1712_u16 => ErrorKind::ER_INDEX_CORRUPT,
2621            1713_u16 => ErrorKind::ER_UNDO_RECORD_TOO_BIG,
2622            1714_u16 => ErrorKind::ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT,
2623            1715_u16 => ErrorKind::ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE,
2624            1716_u16 => ErrorKind::ER_BINLOG_UNSAFE_REPLACE_SELECT,
2625            1717_u16 => ErrorKind::ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT,
2626            1718_u16 => ErrorKind::ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT,
2627            1719_u16 => ErrorKind::ER_BINLOG_UNSAFE_UPDATE_IGNORE,
2628            1720_u16 => ErrorKind::ER_PLUGIN_NO_UNINSTALL,
2629            1721_u16 => ErrorKind::ER_PLUGIN_NO_INSTALL,
2630            1722_u16 => ErrorKind::ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT,
2631            1723_u16 => ErrorKind::ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC,
2632            1724_u16 => ErrorKind::ER_BINLOG_UNSAFE_INSERT_TWO_KEYS,
2633            1725_u16 => ErrorKind::ER_TABLE_IN_FK_CHECK,
2634            1726_u16 => ErrorKind::ER_UNSUPPORTED_ENGINE,
2635            1727_u16 => ErrorKind::ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST,
2636            1728_u16 => ErrorKind::ER_CANNOT_LOAD_FROM_TABLE_V2,
2637            1729_u16 => ErrorKind::ER_MASTER_DELAY_VALUE_OUT_OF_RANGE,
2638            1730_u16 => ErrorKind::ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT,
2639            1731_u16 => ErrorKind::ER_PARTITION_EXCHANGE_DIFFERENT_OPTION,
2640            1732_u16 => ErrorKind::ER_PARTITION_EXCHANGE_PART_TABLE,
2641            1733_u16 => ErrorKind::ER_PARTITION_EXCHANGE_TEMP_TABLE,
2642            1734_u16 => ErrorKind::ER_PARTITION_INSTEAD_OF_SUBPARTITION,
2643            1735_u16 => ErrorKind::ER_UNKNOWN_PARTITION,
2644            1736_u16 => ErrorKind::ER_TABLES_DIFFERENT_METADATA,
2645            1737_u16 => ErrorKind::ER_ROW_DOES_NOT_MATCH_PARTITION,
2646            1738_u16 => ErrorKind::ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX,
2647            1739_u16 => ErrorKind::ER_WARN_INDEX_NOT_APPLICABLE,
2648            1740_u16 => ErrorKind::ER_PARTITION_EXCHANGE_FOREIGN_KEY,
2649            1741_u16 => ErrorKind::ER_NO_SUCH_KEY_VALUE,
2650            1742_u16 => ErrorKind::ER_RPL_INFO_DATA_TOO_LONG,
2651            1743_u16 => ErrorKind::ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE,
2652            1744_u16 => ErrorKind::ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE,
2653            1745_u16 => ErrorKind::ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX,
2654            1746_u16 => ErrorKind::ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT,
2655            1747_u16 => ErrorKind::ER_PARTITION_CLAUSE_ON_NONPARTITIONED,
2656            1748_u16 => ErrorKind::ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET,
2657            1749_u16 => ErrorKind::ER_NO_SUCH_PARTITION_UNUSED,
2658            1750_u16 => ErrorKind::ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE,
2659            1751_u16 => ErrorKind::ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE,
2660            1752_u16 => ErrorKind::ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE,
2661            1753_u16 => ErrorKind::ER_MTS_FEATURE_IS_NOT_SUPPORTED,
2662            1754_u16 => ErrorKind::ER_MTS_UPDATED_DBS_GREATER_MAX,
2663            1755_u16 => ErrorKind::ER_MTS_CANT_PARALLEL,
2664            1756_u16 => ErrorKind::ER_MTS_INCONSISTENT_DATA,
2665            1757_u16 => ErrorKind::ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING,
2666            1758_u16 => ErrorKind::ER_DA_INVALID_CONDITION_NUMBER,
2667            1759_u16 => ErrorKind::ER_INSECURE_PLAIN_TEXT,
2668            1760_u16 => ErrorKind::ER_INSECURE_CHANGE_MASTER,
2669            1761_u16 => ErrorKind::ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO,
2670            1762_u16 => ErrorKind::ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO,
2671            1763_u16 => ErrorKind::ER_SQLTHREAD_WITH_SECURE_SLAVE,
2672            1764_u16 => ErrorKind::ER_TABLE_HAS_NO_FT,
2673            1765_u16 => ErrorKind::ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER,
2674            1766_u16 => ErrorKind::ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION,
2675            1767_u16 => ErrorKind::ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST,
2676            1768_u16 => {
2677                ErrorKind::ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL
2678            }
2679            1769_u16 => ErrorKind::ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION,
2680            1770_u16 => ErrorKind::ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL,
2681            1771_u16 => ErrorKind::ER_SKIPPING_LOGGED_TRANSACTION,
2682            1772_u16 => ErrorKind::ER_MALFORMED_GTID_SET_SPECIFICATION,
2683            1773_u16 => ErrorKind::ER_MALFORMED_GTID_SET_ENCODING,
2684            1774_u16 => ErrorKind::ER_MALFORMED_GTID_SPECIFICATION,
2685            1775_u16 => ErrorKind::ER_GNO_EXHAUSTED,
2686            1776_u16 => ErrorKind::ER_BAD_SLAVE_AUTO_POSITION,
2687            1777_u16 => ErrorKind::ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON,
2688            1778_u16 => ErrorKind::ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET,
2689            1779_u16 => ErrorKind::ER_GTID_MODE_2_OR_3_REQUIRES_DISABLE_GTID_UNSAFE_STATEMENTS_ON,
2690            1780_u16 => ErrorKind::ER_GTID_MODE_REQUIRES_BINLOG,
2691            1781_u16 => ErrorKind::ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF,
2692            1782_u16 => ErrorKind::ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON,
2693            1783_u16 => ErrorKind::ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF,
2694            1784_u16 => ErrorKind::ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF,
2695            1785_u16 => ErrorKind::ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE,
2696            1786_u16 => ErrorKind::ER_GTID_UNSAFE_CREATE_SELECT,
2697            1787_u16 => ErrorKind::ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION,
2698            1788_u16 => ErrorKind::ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME,
2699            1789_u16 => ErrorKind::ER_MASTER_HAS_PURGED_REQUIRED_GTIDS,
2700            1790_u16 => ErrorKind::ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID,
2701            1791_u16 => ErrorKind::ER_UNKNOWN_EXPLAIN_FORMAT,
2702            1792_u16 => ErrorKind::ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION,
2703            1793_u16 => ErrorKind::ER_TOO_LONG_TABLE_PARTITION_COMMENT,
2704            1794_u16 => ErrorKind::ER_SLAVE_CONFIGURATION,
2705            1795_u16 => ErrorKind::ER_INNODB_FT_LIMIT,
2706            1796_u16 => ErrorKind::ER_INNODB_NO_FT_TEMP_TABLE,
2707            1797_u16 => ErrorKind::ER_INNODB_FT_WRONG_DOCID_COLUMN,
2708            1798_u16 => ErrorKind::ER_INNODB_FT_WRONG_DOCID_INDEX,
2709            1799_u16 => ErrorKind::ER_INNODB_ONLINE_LOG_TOO_BIG,
2710            1800_u16 => ErrorKind::ER_UNKNOWN_ALTER_ALGORITHM,
2711            1801_u16 => ErrorKind::ER_UNKNOWN_ALTER_LOCK,
2712            1802_u16 => ErrorKind::ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS,
2713            1803_u16 => ErrorKind::ER_MTS_RECOVERY_FAILURE,
2714            1804_u16 => ErrorKind::ER_MTS_RESET_WORKERS,
2715            1805_u16 => ErrorKind::ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2,
2716            1806_u16 => ErrorKind::ER_SLAVE_SILENT_RETRY_TRANSACTION,
2717            1807_u16 => ErrorKind::ER_DISCARD_FK_CHECKS_RUNNING,
2718            1808_u16 => ErrorKind::ER_TABLE_SCHEMA_MISMATCH,
2719            1809_u16 => ErrorKind::ER_TABLE_IN_SYSTEM_TABLESPACE,
2720            1810_u16 => ErrorKind::ER_IO_READ_ERROR,
2721            1811_u16 => ErrorKind::ER_IO_WRITE_ERROR,
2722            1812_u16 => ErrorKind::ER_TABLESPACE_MISSING,
2723            1813_u16 => ErrorKind::ER_TABLESPACE_EXISTS,
2724            1814_u16 => ErrorKind::ER_TABLESPACE_DISCARDED,
2725            1815_u16 => ErrorKind::ER_INTERNAL_ERROR,
2726            1816_u16 => ErrorKind::ER_INNODB_IMPORT_ERROR,
2727            1817_u16 => ErrorKind::ER_INNODB_INDEX_CORRUPT,
2728            1818_u16 => ErrorKind::ER_INVALID_YEAR_COLUMN_LENGTH,
2729            1819_u16 => ErrorKind::ER_NOT_VALID_PASSWORD,
2730            1820_u16 => ErrorKind::ER_MUST_CHANGE_PASSWORD,
2731            1821_u16 => ErrorKind::ER_FK_NO_INDEX_CHILD,
2732            1822_u16 => ErrorKind::ER_FK_NO_INDEX_PARENT,
2733            1823_u16 => ErrorKind::ER_FK_FAIL_ADD_SYSTEM,
2734            1824_u16 => ErrorKind::ER_FK_CANNOT_OPEN_PARENT,
2735            1825_u16 => ErrorKind::ER_FK_INCORRECT_OPTION,
2736            1826_u16 => ErrorKind::ER_FK_DUP_NAME,
2737            1827_u16 => ErrorKind::ER_PASSWORD_FORMAT,
2738            1828_u16 => ErrorKind::ER_FK_COLUMN_CANNOT_DROP,
2739            1829_u16 => ErrorKind::ER_FK_COLUMN_CANNOT_DROP_CHILD,
2740            1830_u16 => ErrorKind::ER_FK_COLUMN_NOT_NULL,
2741            1831_u16 => ErrorKind::ER_DUP_INDEX,
2742            1832_u16 => ErrorKind::ER_FK_COLUMN_CANNOT_CHANGE,
2743            1833_u16 => ErrorKind::ER_FK_COLUMN_CANNOT_CHANGE_CHILD,
2744            1834_u16 => ErrorKind::ER_FK_CANNOT_DELETE_PARENT,
2745            1835_u16 => ErrorKind::ER_MALFORMED_PACKET,
2746            1836_u16 => ErrorKind::ER_READ_ONLY_MODE,
2747            1837_u16 => ErrorKind::ER_GTID_NEXT_TYPE_UNDEFINED_GROUP,
2748            1838_u16 => ErrorKind::ER_VARIABLE_NOT_SETTABLE_IN_SP,
2749            1839_u16 => ErrorKind::ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF,
2750            1840_u16 => ErrorKind::ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY,
2751            1841_u16 => ErrorKind::ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY,
2752            1842_u16 => ErrorKind::ER_GTID_PURGED_WAS_CHANGED,
2753            1843_u16 => ErrorKind::ER_GTID_EXECUTED_WAS_CHANGED,
2754            1844_u16 => ErrorKind::ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES,
2755            1845_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED,
2756            1846_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON,
2757            1847_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY,
2758            1848_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION,
2759            1849_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME,
2760            1850_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE,
2761            1851_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK,
2762            1852_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE,
2763            1853_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK,
2764            1854_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC,
2765            1855_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS,
2766            1856_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS,
2767            1857_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS,
2768            1858_u16 => ErrorKind::ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE,
2769            1859_u16 => ErrorKind::ER_DUP_UNKNOWN_IN_INDEX,
2770            1860_u16 => ErrorKind::ER_IDENT_CAUSES_TOO_LONG_PATH,
2771            1861_u16 => ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL,
2772            1862_u16 => ErrorKind::ER_MUST_CHANGE_PASSWORD_LOGIN,
2773            1863_u16 => ErrorKind::ER_ROW_IN_WRONG_PARTITION,
2774            1864_u16 => ErrorKind::ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX,
2775            1865_u16 => ErrorKind::ER_INNODB_NO_FT_USES_PARSER,
2776            1866_u16 => ErrorKind::ER_BINLOG_LOGICAL_CORRUPTION,
2777            1867_u16 => ErrorKind::ER_WARN_PURGE_LOG_IN_USE,
2778            1868_u16 => ErrorKind::ER_WARN_PURGE_LOG_IS_ACTIVE,
2779            1869_u16 => ErrorKind::ER_AUTO_INCREMENT_CONFLICT,
2780            1870_u16 => ErrorKind::WARN_ON_BLOCKHOLE_IN_RBR,
2781            1871_u16 => ErrorKind::ER_SLAVE_MI_INIT_REPOSITORY,
2782            1872_u16 => ErrorKind::ER_SLAVE_RLI_INIT_REPOSITORY,
2783            1873_u16 => ErrorKind::ER_ACCESS_DENIED_CHANGE_USER_ERROR,
2784            1874_u16 => ErrorKind::ER_INNODB_READ_ONLY,
2785            1875_u16 => ErrorKind::ER_STOP_SLAVE_SQL_THREAD_TIMEOUT,
2786            1876_u16 => ErrorKind::ER_STOP_SLAVE_IO_THREAD_TIMEOUT,
2787            1877_u16 => ErrorKind::ER_TABLE_CORRUPT,
2788            1878_u16 => ErrorKind::ER_TEMP_FILE_WRITE_FAILURE,
2789            1879_u16 => ErrorKind::ER_INNODB_FT_AUX_NOT_HEX_ID,
2790            1880_u16 => ErrorKind::ER_OLD_TEMPORALS_UPGRADED,
2791            1881_u16 => ErrorKind::ER_INNODB_FORCED_RECOVERY,
2792            1882_u16 => ErrorKind::ER_AES_INVALID_IV,
2793            1883_u16 => ErrorKind::ER_PLUGIN_CANNOT_BE_UNINSTALLED,
2794            1884_u16 => ErrorKind::ER_GTID_UNSAFE_BINLOG_SPLITTABLE_STATEMENT_AND_GTID_GROUP,
2795            1885_u16 => ErrorKind::ER_SLAVE_HAS_MORE_GTIDS_THAN_MASTER,
2796            _ => panic!("Unknown error type {}", x),
2797        }
2798    }
2799}
2800
2801impl ErrorKind {
2802    /// SQLSTATE is a code which identifies SQL error conditions. It composed by five characters:
2803    /// first two characters that indicate a class, and then three that indicate a subclass.
2804    ///
2805    /// There are three important standard classes.
2806    ///
2807    ///  - `00` means the operation completed successfully.
2808    ///  - `01` contains warnings (`SQLWARNING`).
2809    ///  - `02` is the `NOT FOUND` class.
2810    ///
2811    /// All other classes are exceptions (`SQLEXCEPTION`). Classes beginning with 0, 1, 2, 3, 4, A,
2812    /// B, C, D, E, F and G are reserved for standard-defined classes, while other classes are
2813    /// vendor-specific.
2814    ///
2815    /// The subclass, if it is set, indicates a particular condition, or a particular group of
2816    /// conditions within the class. `000` means 'no subclass'.
2817    ///
2818    /// See also https://mariadb.com/kb/en/library/sqlstate/
2819    pub fn sqlstate(self) -> &'static [u8; 5] {
2820        match self {
2821            ErrorKind::ER_BAD_HOST_ERROR
2822            | ErrorKind::ER_HANDSHAKE_ERROR
2823            | ErrorKind::ER_UNKNOWN_COM_ERROR
2824            | ErrorKind::ER_SERVER_SHUTDOWN
2825            | ErrorKind::ER_FORCING_CLOSE
2826            | ErrorKind::ER_IPSOCK_ERROR
2827            | ErrorKind::ER_ABORTING_CONNECTION
2828            | ErrorKind::ER_NET_PACKET_TOO_LARGE
2829            | ErrorKind::ER_NET_READ_ERROR_FROM_PIPE
2830            | ErrorKind::ER_NET_FCNTL_ERROR
2831            | ErrorKind::ER_NET_PACKETS_OUT_OF_ORDER
2832            | ErrorKind::ER_NET_UNCOMPRESS_ERROR
2833            | ErrorKind::ER_NET_READ_ERROR
2834            | ErrorKind::ER_NET_READ_INTERRUPTED
2835            | ErrorKind::ER_NET_ERROR_ON_WRITE
2836            | ErrorKind::ER_NET_WRITE_INTERRUPTED
2837            | ErrorKind::ER_NEW_ABORTING_CONNECTION
2838            | ErrorKind::ER_MASTER_NET_READ
2839            | ErrorKind::ER_MASTER_NET_WRITE
2840            | ErrorKind::ER_CONNECT_TO_MASTER => b"08S01",
2841            ErrorKind::ER_NO_DB_ERROR => b"3D000",
2842            ErrorKind::ER_DA_INVALID_CONDITION_NUMBER => b"35000",
2843            ErrorKind::ER_TABLE_EXISTS_ERROR => b"42S01",
2844            ErrorKind::ER_SP_FETCH_NO_DATA | ErrorKind::ER_SIGNAL_NOT_FOUND => b"02000",
2845            ErrorKind::ER_BAD_TABLE_ERROR
2846            | ErrorKind::ER_UNKNOWN_TABLE
2847            | ErrorKind::ER_NO_SUCH_TABLE => b"42S02",
2848            ErrorKind::ER_TRUNCATED_WRONG_VALUE | ErrorKind::ER_ILLEGAL_VALUE_FOR_TYPE => b"22007",
2849            ErrorKind::ER_XA_RBTIMEOUT => b"XA106",
2850            ErrorKind::ER_XAER_DUPID => b"XAE08",
2851            ErrorKind::ER_XA_RBDEADLOCK => b"XA102",
2852            ErrorKind::ER_XAER_OUTSIDE => b"XAE09",
2853            ErrorKind::ER_DATETIME_FUNCTION_OVERFLOW => b"22008",
2854            ErrorKind::ER_WARN_DATA_OUT_OF_RANGE
2855            | ErrorKind::ER_CANT_CREATE_GEOMETRY_OBJECT
2856            | ErrorKind::ER_DATA_OUT_OF_RANGE => b"22003",
2857            ErrorKind::ER_CANT_DO_THIS_DURING_AN_TRANSACTION
2858            | ErrorKind::ER_READ_ONLY_TRANSACTION => b"25000",
2859            ErrorKind::ER_OUTOFMEMORY | ErrorKind::ER_OUT_OF_SORTMEMORY => b"HY001",
2860            ErrorKind::ER_SP_NO_RECURSIVE_CREATE => b"2F003",
2861            ErrorKind::ER_DUP_KEY
2862            | ErrorKind::ER_BAD_NULL_ERROR
2863            | ErrorKind::ER_NON_UNIQ_ERROR
2864            | ErrorKind::ER_DUP_ENTRY
2865            | ErrorKind::ER_DUP_UNIQUE
2866            | ErrorKind::ER_NO_REFERENCED_ROW
2867            | ErrorKind::ER_ROW_IS_REFERENCED
2868            | ErrorKind::ER_ROW_IS_REFERENCED_2
2869            | ErrorKind::ER_NO_REFERENCED_ROW_2
2870            | ErrorKind::ER_FOREIGN_DUPLICATE_KEY
2871            | ErrorKind::ER_DUP_ENTRY_WITH_KEY_NAME
2872            | ErrorKind::ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO
2873            | ErrorKind::ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO
2874            | ErrorKind::ER_DUP_UNKNOWN_IN_INDEX => b"23000",
2875            ErrorKind::ER_DUP_FIELDNAME => b"42S21",
2876            ErrorKind::ER_SELECT_REDUCED
2877            | ErrorKind::ER_WARN_TOO_FEW_RECORDS
2878            | ErrorKind::ER_WARN_TOO_MANY_RECORDS
2879            | ErrorKind::WARN_DATA_TRUNCATED
2880            | ErrorKind::ER_SP_UNINIT_VAR
2881            | ErrorKind::ER_SIGNAL_WARN => b"01000",
2882            ErrorKind::ER_XAER_RMERR => b"XAE03",
2883            ErrorKind::ER_XAER_RMFAIL => b"XAE07",
2884            ErrorKind::ER_NO_SUCH_INDEX => b"42S12",
2885            ErrorKind::ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION => b"25006",
2886            ErrorKind::ER_SP_BADSELECT
2887            | ErrorKind::ER_SP_BADSTATEMENT
2888            | ErrorKind::ER_SP_SUBSELECT_NYI
2889            | ErrorKind::ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG
2890            | ErrorKind::ER_SP_NO_RETSET
2891            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED
2892            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON => b"0A000",
2893            ErrorKind::ER_WRONG_VALUE_COUNT | ErrorKind::ER_WRONG_VALUE_COUNT_ON_ROW => b"21S01",
2894            ErrorKind::ER_ACCESS_DENIED_ERROR
2895            | ErrorKind::ER_ACCESS_DENIED_NO_PASSWORD_ERROR
2896            | ErrorKind::ER_ACCESS_DENIED_CHANGE_USER_ERROR => b"28000",
2897            ErrorKind::ER_SP_CURSOR_ALREADY_OPEN | ErrorKind::ER_SP_CURSOR_NOT_OPEN => b"24000",
2898            ErrorKind::ER_QUERY_INTERRUPTED => b"70100",
2899            ErrorKind::ER_SP_NORETURNEND => b"2F005",
2900            ErrorKind::ER_CON_COUNT_ERROR | ErrorKind::ER_NOT_SUPPORTED_AUTH_MODE => b"08004",
2901            ErrorKind::ER_DBACCESS_DENIED_ERROR
2902            | ErrorKind::ER_BAD_DB_ERROR
2903            | ErrorKind::ER_WRONG_FIELD_WITH_GROUP
2904            | ErrorKind::ER_WRONG_GROUP_FIELD
2905            | ErrorKind::ER_WRONG_SUM_SELECT
2906            | ErrorKind::ER_TOO_LONG_IDENT
2907            | ErrorKind::ER_DUP_KEYNAME
2908            | ErrorKind::ER_WRONG_FIELD_SPEC
2909            | ErrorKind::ER_PARSE_ERROR
2910            | ErrorKind::ER_EMPTY_QUERY
2911            | ErrorKind::ER_NONUNIQ_TABLE
2912            | ErrorKind::ER_INVALID_DEFAULT
2913            | ErrorKind::ER_MULTIPLE_PRI_KEY
2914            | ErrorKind::ER_TOO_MANY_KEYS
2915            | ErrorKind::ER_TOO_MANY_KEY_PARTS
2916            | ErrorKind::ER_TOO_LONG_KEY
2917            | ErrorKind::ER_KEY_COLUMN_DOES_NOT_EXITS
2918            | ErrorKind::ER_BLOB_USED_AS_KEY
2919            | ErrorKind::ER_TOO_BIG_FIELDLENGTH
2920            | ErrorKind::ER_WRONG_AUTO_KEY
2921            | ErrorKind::ER_WRONG_FIELD_TERMINATORS
2922            | ErrorKind::ER_BLOBS_AND_NO_TERMINATED
2923            | ErrorKind::ER_CANT_REMOVE_ALL_FIELDS
2924            | ErrorKind::ER_CANT_DROP_FIELD_OR_KEY
2925            | ErrorKind::ER_BLOB_CANT_HAVE_DEFAULT
2926            | ErrorKind::ER_WRONG_DB_NAME
2927            | ErrorKind::ER_WRONG_TABLE_NAME
2928            | ErrorKind::ER_TOO_BIG_SELECT
2929            | ErrorKind::ER_UNKNOWN_PROCEDURE
2930            | ErrorKind::ER_WRONG_PARAMCOUNT_TO_PROCEDURE
2931            | ErrorKind::ER_FIELD_SPECIFIED_TWICE
2932            | ErrorKind::ER_UNSUPPORTED_EXTENSION
2933            | ErrorKind::ER_TABLE_MUST_HAVE_COLUMNS
2934            | ErrorKind::ER_UNKNOWN_CHARACTER_SET
2935            | ErrorKind::ER_TOO_BIG_ROWSIZE
2936            | ErrorKind::ER_WRONG_OUTER_JOIN
2937            | ErrorKind::ER_NULL_COLUMN_IN_INDEX
2938            | ErrorKind::ER_PASSWORD_ANONYMOUS_USER
2939            | ErrorKind::ER_PASSWORD_NOT_ALLOWED
2940            | ErrorKind::ER_PASSWORD_NO_MATCH
2941            | ErrorKind::ER_REGEXP_ERROR
2942            | ErrorKind::ER_MIX_OF_GROUP_FUNC_AND_FIELDS
2943            | ErrorKind::ER_NONEXISTING_GRANT
2944            | ErrorKind::ER_TABLEACCESS_DENIED_ERROR
2945            | ErrorKind::ER_COLUMNACCESS_DENIED_ERROR
2946            | ErrorKind::ER_ILLEGAL_GRANT_FOR_TABLE
2947            | ErrorKind::ER_GRANT_WRONG_HOST_OR_USER
2948            | ErrorKind::ER_NONEXISTING_TABLE_GRANT
2949            | ErrorKind::ER_NOT_ALLOWED_COMMAND
2950            | ErrorKind::ER_SYNTAX_ERROR
2951            | ErrorKind::ER_TOO_LONG_STRING
2952            | ErrorKind::ER_TABLE_CANT_HANDLE_BLOB
2953            | ErrorKind::ER_TABLE_CANT_HANDLE_AUTO_INCREMENT
2954            | ErrorKind::ER_WRONG_COLUMN_NAME
2955            | ErrorKind::ER_WRONG_KEY_COLUMN
2956            | ErrorKind::ER_BLOB_KEY_WITHOUT_LENGTH
2957            | ErrorKind::ER_PRIMARY_CANT_HAVE_NULL
2958            | ErrorKind::ER_TOO_MANY_ROWS
2959            | ErrorKind::ER_REQUIRES_PRIMARY_KEY
2960            | ErrorKind::ER_KEY_DOES_NOT_EXITS
2961            | ErrorKind::ER_CHECK_NO_SUCH_TABLE
2962            | ErrorKind::ER_CHECK_NOT_IMPLEMENTED
2963            | ErrorKind::ER_TOO_MANY_USER_CONNECTIONS
2964            | ErrorKind::ER_NO_PERMISSION_TO_CREATE_USER
2965            | ErrorKind::ER_USER_LIMIT_REACHED
2966            | ErrorKind::ER_SPECIFIC_ACCESS_DENIED_ERROR
2967            | ErrorKind::ER_NO_DEFAULT
2968            | ErrorKind::ER_WRONG_VALUE_FOR_VAR
2969            | ErrorKind::ER_WRONG_TYPE_FOR_VAR
2970            | ErrorKind::ER_CANT_USE_OPTION_HERE
2971            | ErrorKind::ER_NOT_SUPPORTED_YET
2972            | ErrorKind::ER_WRONG_FK_DEF
2973            | ErrorKind::ER_DERIVED_MUST_HAVE_ALIAS
2974            | ErrorKind::ER_TABLENAME_NOT_ALLOWED_HERE
2975            | ErrorKind::ER_SPATIAL_CANT_HAVE_NULL
2976            | ErrorKind::ER_COLLATION_CHARSET_MISMATCH
2977            | ErrorKind::ER_WRONG_NAME_FOR_INDEX
2978            | ErrorKind::ER_WRONG_NAME_FOR_CATALOG
2979            | ErrorKind::ER_UNKNOWN_STORAGE_ENGINE
2980            | ErrorKind::ER_SP_ALREADY_EXISTS
2981            | ErrorKind::ER_SP_DOES_NOT_EXIST
2982            | ErrorKind::ER_SP_LILABEL_MISMATCH
2983            | ErrorKind::ER_SP_LABEL_REDEFINE
2984            | ErrorKind::ER_SP_LABEL_MISMATCH
2985            | ErrorKind::ER_SP_BADRETURN
2986            | ErrorKind::ER_UPDATE_LOG_DEPRECATED_IGNORED
2987            | ErrorKind::ER_UPDATE_LOG_DEPRECATED_TRANSLATED
2988            | ErrorKind::ER_SP_WRONG_NO_OF_ARGS
2989            | ErrorKind::ER_SP_COND_MISMATCH
2990            | ErrorKind::ER_SP_NORETURN
2991            | ErrorKind::ER_SP_BAD_CURSOR_QUERY
2992            | ErrorKind::ER_SP_BAD_CURSOR_SELECT
2993            | ErrorKind::ER_SP_CURSOR_MISMATCH
2994            | ErrorKind::ER_SP_UNDECLARED_VAR
2995            | ErrorKind::ER_SP_DUP_PARAM
2996            | ErrorKind::ER_SP_DUP_VAR
2997            | ErrorKind::ER_SP_DUP_COND
2998            | ErrorKind::ER_SP_DUP_CURS
2999            | ErrorKind::ER_SP_VARCOND_AFTER_CURSHNDLR
3000            | ErrorKind::ER_SP_CURSOR_AFTER_HANDLER
3001            | ErrorKind::ER_PROCACCESS_DENIED_ERROR
3002            | ErrorKind::ER_NONEXISTING_PROC_GRANT
3003            | ErrorKind::ER_SP_BAD_SQLSTATE
3004            | ErrorKind::ER_CANT_CREATE_USER_WITH_GRANT
3005            | ErrorKind::ER_SP_DUP_HANDLER
3006            | ErrorKind::ER_SP_NOT_VAR_ARG
3007            | ErrorKind::ER_TOO_BIG_SCALE
3008            | ErrorKind::ER_TOO_BIG_PRECISION
3009            | ErrorKind::ER_M_BIGGER_THAN_D
3010            | ErrorKind::ER_TOO_LONG_BODY
3011            | ErrorKind::ER_TOO_BIG_DISPLAYWIDTH
3012            | ErrorKind::ER_SP_BAD_VAR_SHADOW
3013            | ErrorKind::ER_SP_WRONG_NAME
3014            | ErrorKind::ER_SP_NO_AGGREGATE
3015            | ErrorKind::ER_MAX_PREPARED_STMT_COUNT_REACHED
3016            | ErrorKind::ER_NON_GROUPING_FIELD_USED
3017            | ErrorKind::ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
3018            | ErrorKind::ER_WRONG_PARAMETERS_TO_NATIVE_FCT
3019            | ErrorKind::ER_WRONG_PARAMETERS_TO_STORED_FCT
3020            | ErrorKind::ER_FUNC_INEXISTENT_NAME_COLLISION
3021            | ErrorKind::ER_DUP_SIGNAL_SET
3022            | ErrorKind::ER_SPATIAL_MUST_HAVE_GEOM_COL
3023            | ErrorKind::ER_TRUNCATE_ILLEGAL_FK => b"42000",
3024            ErrorKind::ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER => b"0K000",
3025            ErrorKind::ER_CANT_CHANGE_TX_ISOLATION => b"25001",
3026            ErrorKind::ER_INVALID_USE_OF_NULL | ErrorKind::ER_WARN_NULL_TO_NOTNULL => b"22004",
3027            ErrorKind::ER_SP_CASE_NOT_FOUND => b"20000",
3028            ErrorKind::ER_DIVISION_BY_ZER => b"22012",
3029            ErrorKind::ER_BAD_FIELD_ERROR | ErrorKind::ER_ILLEGAL_REFERENCE => b"42S22",
3030            ErrorKind::ER_XAER_INVAL => b"XAE05",
3031            ErrorKind::ER_HASHCHK
3032            | ErrorKind::ER_NISAMCHK
3033            | ErrorKind::ER_NO
3034            | ErrorKind::ER_YES
3035            | ErrorKind::ER_CANT_CREATE_FILE
3036            | ErrorKind::ER_CANT_CREATE_TABLE
3037            | ErrorKind::ER_CANT_CREATE_DB
3038            | ErrorKind::ER_DB_CREATE_EXISTS
3039            | ErrorKind::ER_DB_DROP_EXISTS
3040            | ErrorKind::ER_DB_DROP_DELETE
3041            | ErrorKind::ER_DB_DROP_RMDIR
3042            | ErrorKind::ER_CANT_DELETE_FILE
3043            | ErrorKind::ER_CANT_FIND_SYSTEM_REC
3044            | ErrorKind::ER_CANT_GET_STAT
3045            | ErrorKind::ER_CANT_GET_WD
3046            | ErrorKind::ER_CANT_LOCK
3047            | ErrorKind::ER_CANT_OPEN_FILE
3048            | ErrorKind::ER_FILE_NOT_FOUND
3049            | ErrorKind::ER_CANT_READ_DIR
3050            | ErrorKind::ER_CANT_SET_WD
3051            | ErrorKind::ER_CHECKREAD
3052            | ErrorKind::ER_DISK_FULL
3053            | ErrorKind::ER_ERROR_ON_CLOSE
3054            | ErrorKind::ER_ERROR_ON_READ
3055            | ErrorKind::ER_ERROR_ON_RENAME
3056            | ErrorKind::ER_ERROR_ON_WRITE
3057            | ErrorKind::ER_FILE_USED
3058            | ErrorKind::ER_FILSORT_ABORT
3059            | ErrorKind::ER_FORM_NOT_FOUND
3060            | ErrorKind::ER_GET_ERRN
3061            | ErrorKind::ER_ILLEGAL_HA
3062            | ErrorKind::ER_KEY_NOT_FOUND
3063            | ErrorKind::ER_NOT_FORM_FILE
3064            | ErrorKind::ER_NOT_KEYFILE
3065            | ErrorKind::ER_OLD_KEYFILE
3066            | ErrorKind::ER_OPEN_AS_READONLY
3067            | ErrorKind::ER_UNEXPECTED_EOF
3068            | ErrorKind::ER_OUT_OF_RESOURCES
3069            | ErrorKind::ER_READY
3070            | ErrorKind::ER_NORMAL_SHUTDOWN
3071            | ErrorKind::ER_GOT_SIGNAL
3072            | ErrorKind::ER_SHUTDOWN_COMPLETE
3073            | ErrorKind::ER_TEXTFILE_NOT_READABLE
3074            | ErrorKind::ER_FILE_EXISTS_ERROR
3075            | ErrorKind::ER_LOAD_INF
3076            | ErrorKind::ER_ALTER_INF
3077            | ErrorKind::ER_WRONG_SUB_KEY
3078            | ErrorKind::ER_INSERT_INF
3079            | ErrorKind::ER_UPDATE_TABLE_USED
3080            | ErrorKind::ER_NO_SUCH_THREAD
3081            | ErrorKind::ER_KILL_DENIED_ERROR
3082            | ErrorKind::ER_NO_TABLES_USED
3083            | ErrorKind::ER_TOO_BIG_SET
3084            | ErrorKind::ER_NO_UNIQUE_LOGFILE
3085            | ErrorKind::ER_TABLE_NOT_LOCKED_FOR_WRITE
3086            | ErrorKind::ER_TABLE_NOT_LOCKED
3087            | ErrorKind::ER_UNKNOWN_ERROR
3088            | ErrorKind::ER_WRONG_PARAMETERS_TO_PROCEDURE
3089            | ErrorKind::ER_INVALID_GROUP_FUNC_USE
3090            | ErrorKind::ER_RECORD_FILE_FULL
3091            | ErrorKind::ER_TOO_MANY_TABLES
3092            | ErrorKind::ER_TOO_MANY_FIELDS
3093            | ErrorKind::ER_STACK_OVERRUN
3094            | ErrorKind::ER_CANT_FIND_UDF
3095            | ErrorKind::ER_CANT_INITIALIZE_UDF
3096            | ErrorKind::ER_UDF_NO_PATHS
3097            | ErrorKind::ER_UDF_EXISTS
3098            | ErrorKind::ER_CANT_OPEN_LIBRARY
3099            | ErrorKind::ER_CANT_FIND_DL_ENTRY
3100            | ErrorKind::ER_FUNCTION_NOT_DEFINED
3101            | ErrorKind::ER_HOST_IS_BLOCKED
3102            | ErrorKind::ER_HOST_NOT_PRIVILEGED
3103            | ErrorKind::ER_UPDATE_INF
3104            | ErrorKind::ER_CANT_CREATE_THREAD
3105            | ErrorKind::ER_CANT_REOPEN_TABLE
3106            | ErrorKind::ER_DELAYED_CANT_CHANGE_LOCK
3107            | ErrorKind::ER_TOO_MANY_DELAYED_THREADS
3108            | ErrorKind::ER_DELAYED_INSERT_TABLE_LOCKED
3109            | ErrorKind::ER_WRONG_MRG_TABLE
3110            | ErrorKind::ER_NO_RAID_COMPILED
3111            | ErrorKind::ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE
3112            | ErrorKind::ER_ERROR_DURING_COMMIT
3113            | ErrorKind::ER_ERROR_DURING_ROLLBACK
3114            | ErrorKind::ER_ERROR_DURING_FLUSH_LOGS
3115            | ErrorKind::ER_ERROR_DURING_CHECKPOINT
3116            | ErrorKind::ER_DUMP_NOT_IMPLEMENTED
3117            | ErrorKind::ER_FLUSH_MASTER_BINLOG_CLOSED
3118            | ErrorKind::ER_INDEX_REBUILD
3119            | ErrorKind::ER_MASTER
3120            | ErrorKind::ER_FT_MATCHING_KEY_NOT_FOUND
3121            | ErrorKind::ER_LOCK_OR_ACTIVE_TRANSACTION
3122            | ErrorKind::ER_UNKNOWN_SYSTEM_VARIABLE
3123            | ErrorKind::ER_CRASHED_ON_USAGE
3124            | ErrorKind::ER_CRASHED_ON_REPAIR
3125            | ErrorKind::ER_WARNING_NOT_COMPLETE_ROLLBACK
3126            | ErrorKind::ER_TRANS_CACHE_FULL
3127            | ErrorKind::ER_SLAVE_MUST_STOP
3128            | ErrorKind::ER_SLAVE_NOT_RUNNING
3129            | ErrorKind::ER_BAD_SLAVE
3130            | ErrorKind::ER_MASTER_INF
3131            | ErrorKind::ER_SLAVE_THREAD
3132            | ErrorKind::ER_SET_CONSTANTS_ONLY
3133            | ErrorKind::ER_LOCK_WAIT_TIMEOUT
3134            | ErrorKind::ER_LOCK_TABLE_FULL
3135            | ErrorKind::ER_DROP_DB_WITH_READ_LOCK
3136            | ErrorKind::ER_CREATE_DB_WITH_READ_LOCK
3137            | ErrorKind::ER_WRONG_ARGUMENTS
3138            | ErrorKind::ER_UNION_TABLES_IN_DIFFERENT_DIR
3139            | ErrorKind::ER_TABLE_CANT_HANDLE_FT
3140            | ErrorKind::ER_CANNOT_ADD_FOREIGN
3141            | ErrorKind::ER_QUERY_ON_MASTER
3142            | ErrorKind::ER_ERROR_WHEN_EXECUTING_COMMAND
3143            | ErrorKind::ER_WRONG_USAGE
3144            | ErrorKind::ER_CANT_UPDATE_WITH_READLOCK
3145            | ErrorKind::ER_MIXING_NOT_ALLOWED
3146            | ErrorKind::ER_DUP_ARGUMENT
3147            | ErrorKind::ER_LOCAL_VARIABLE
3148            | ErrorKind::ER_GLOBAL_VARIABLE
3149            | ErrorKind::ER_VAR_CANT_BE_READ
3150            | ErrorKind::ER_MASTER_FATAL_ERROR_READING_BINLOG
3151            | ErrorKind::ER_SLAVE_IGNORED_TABLE
3152            | ErrorKind::ER_INCORRECT_GLOBAL_LOCAL_VAR
3153            | ErrorKind::ER_KEY_REF_DO_NOT_MATCH_TABLE_REF
3154            | ErrorKind::ER_UNKNOWN_STMT_HANDLER
3155            | ErrorKind::ER_CORRUPT_HELP_DB
3156            | ErrorKind::ER_CYCLIC_REFERENCE
3157            | ErrorKind::ER_AUTO_CONVERT
3158            | ErrorKind::ER_SLAVE_WAS_RUNNING
3159            | ErrorKind::ER_SLAVE_WAS_NOT_RUNNING
3160            | ErrorKind::ER_TOO_BIG_FOR_UNCOMPRESS
3161            | ErrorKind::ER_ZLIB_Z_MEM_ERROR
3162            | ErrorKind::ER_ZLIB_Z_BUF_ERROR
3163            | ErrorKind::ER_ZLIB_Z_DATA_ERROR
3164            | ErrorKind::ER_CUT_VALUE_GROUP_CONCAT
3165            | ErrorKind::ER_WARN_USING_OTHER_HANDLER
3166            | ErrorKind::ER_CANT_AGGREGATE_2COLLATIONS
3167            | ErrorKind::ER_DROP_USER
3168            | ErrorKind::ER_REVOKE_GRANTS
3169            | ErrorKind::ER_CANT_AGGREGATE_3COLLATIONS
3170            | ErrorKind::ER_CANT_AGGREGATE_NCOLLATIONS
3171            | ErrorKind::ER_VARIABLE_IS_NOT_STRUCT
3172            | ErrorKind::ER_UNKNOWN_COLLATION
3173            | ErrorKind::ER_SLAVE_IGNORED_SSL_PARAMS
3174            | ErrorKind::ER_SERVER_IS_IN_SECURE_AUTH_MODE
3175            | ErrorKind::ER_WARN_FIELD_RESOLVED
3176            | ErrorKind::ER_BAD_SLAVE_UNTIL_COND
3177            | ErrorKind::ER_MISSING_SKIP_SLAVE
3178            | ErrorKind::ER_UNTIL_COND_IGNORED
3179            | ErrorKind::ER_WARN_QC_RESIZE
3180            | ErrorKind::ER_BAD_FT_COLUMN
3181            | ErrorKind::ER_UNKNOWN_KEY_CACHE
3182            | ErrorKind::ER_WARN_HOSTNAME_WONT_WORK
3183            | ErrorKind::ER_WARN_DEPRECATED_SYNTAX
3184            | ErrorKind::ER_NON_UPDATABLE_TABLE
3185            | ErrorKind::ER_FEATURE_DISABLED
3186            | ErrorKind::ER_OPTION_PREVENTS_STATEMENT
3187            | ErrorKind::ER_DUPLICATED_VALUE_IN_TYPE
3188            | ErrorKind::ER_TOO_MUCH_AUTO_TIMESTAMP_COLS
3189            | ErrorKind::ER_INVALID_ON_UPDATE
3190            | ErrorKind::ER_UNSUPPORTED_PS
3191            | ErrorKind::ER_GET_ERRMSG
3192            | ErrorKind::ER_GET_TEMPORARY_ERRMSG
3193            | ErrorKind::ER_UNKNOWN_TIME_ZONE
3194            | ErrorKind::ER_WARN_INVALID_TIMESTAMP
3195            | ErrorKind::ER_INVALID_CHARACTER_STRING
3196            | ErrorKind::ER_WARN_ALLOWED_PACKET_OVERFLOWED
3197            | ErrorKind::ER_CONFLICTING_DECLARATIONS
3198            | ErrorKind::ER_SP_DROP_FAILED
3199            | ErrorKind::ER_SP_STORE_FAILED
3200            | ErrorKind::ER_SP_WRONG_NO_OF_FETCH_ARGS
3201            | ErrorKind::ER_SP_CANT_ALTER
3202            | ErrorKind::ER_FPARSER_TOO_BIG_FILE
3203            | ErrorKind::ER_FPARSER_BAD_HEADER
3204            | ErrorKind::ER_FPARSER_EOF_IN_COMMENT
3205            | ErrorKind::ER_FPARSER_ERROR_IN_PARAMETER
3206            | ErrorKind::ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER
3207            | ErrorKind::ER_VIEW_NO_EXPLAIN
3208            | ErrorKind::ER_FRM_UNKNOWN_TYPE
3209            | ErrorKind::ER_WRONG_OBJECT
3210            | ErrorKind::ER_NONUPDATEABLE_COLUMN
3211            | ErrorKind::ER_VIEW_SELECT_DERIVED
3212            | ErrorKind::ER_VIEW_SELECT_CLAUSE
3213            | ErrorKind::ER_VIEW_SELECT_VARIABLE
3214            | ErrorKind::ER_VIEW_SELECT_TMPTABLE
3215            | ErrorKind::ER_VIEW_WRONG_LIST
3216            | ErrorKind::ER_WARN_VIEW_MERGE
3217            | ErrorKind::ER_WARN_VIEW_WITHOUT_KEY
3218            | ErrorKind::ER_VIEW_INVALID
3219            | ErrorKind::ER_SP_NO_DROP_SP
3220            | ErrorKind::ER_SP_GOTO_IN_HNDLR
3221            | ErrorKind::ER_TRG_ALREADY_EXISTS
3222            | ErrorKind::ER_TRG_DOES_NOT_EXIST
3223            | ErrorKind::ER_TRG_ON_VIEW_OR_TEMP_TABLE
3224            | ErrorKind::ER_TRG_CANT_CHANGE_ROW
3225            | ErrorKind::ER_TRG_NO_SUCH_ROW_IN_TRG
3226            | ErrorKind::ER_NO_DEFAULT_FOR_FIELD
3227            | ErrorKind::ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3228            | ErrorKind::ER_VIEW_NONUPD_CHECK
3229            | ErrorKind::ER_VIEW_CHECK_FAILED
3230            | ErrorKind::ER_RELAY_LOG_FAIL
3231            | ErrorKind::ER_PASSWD_LENGTH
3232            | ErrorKind::ER_UNKNOWN_TARGET_BINLOG
3233            | ErrorKind::ER_IO_ERR_LOG_INDEX_READ
3234            | ErrorKind::ER_BINLOG_PURGE_PROHIBITED
3235            | ErrorKind::ER_FSEEK_FAIL
3236            | ErrorKind::ER_BINLOG_PURGE_FATAL_ERR
3237            | ErrorKind::ER_LOG_IN_USE
3238            | ErrorKind::ER_LOG_PURGE_UNKNOWN_ERR
3239            | ErrorKind::ER_RELAY_LOG_INIT
3240            | ErrorKind::ER_NO_BINARY_LOGGING
3241            | ErrorKind::ER_RESERVED_SYNTAX
3242            | ErrorKind::ER_WSAS_FAILED
3243            | ErrorKind::ER_DIFF_GROUPS_PROC
3244            | ErrorKind::ER_NO_GROUP_FOR_PROC
3245            | ErrorKind::ER_ORDER_WITH_PROC
3246            | ErrorKind::ER_LOGGING_PROHIBIT_CHANGING_OF
3247            | ErrorKind::ER_NO_FILE_MAPPING
3248            | ErrorKind::ER_WRONG_MAGIC
3249            | ErrorKind::ER_PS_MANY_PARAM
3250            | ErrorKind::ER_KEY_PART_0
3251            | ErrorKind::ER_VIEW_CHECKSUM
3252            | ErrorKind::ER_VIEW_MULTIUPDATE
3253            | ErrorKind::ER_VIEW_NO_INSERT_FIELD_LIST
3254            | ErrorKind::ER_VIEW_DELETE_MERGE_VIEW
3255            | ErrorKind::ER_CANNOT_USER
3256            | ErrorKind::ER_PROC_AUTO_GRANT_FAIL
3257            | ErrorKind::ER_PROC_AUTO_REVOKE_FAIL
3258            | ErrorKind::ER_STARTUP
3259            | ErrorKind::ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR
3260            | ErrorKind::ER_WRONG_VALUE_FOR_TYPE
3261            | ErrorKind::ER_TABLE_DEF_CHANGED
3262            | ErrorKind::ER_FAILED_ROUTINE_BREAK_BINLOG
3263            | ErrorKind::ER_BINLOG_UNSAFE_ROUTINE
3264            | ErrorKind::ER_BINLOG_CREATE_ROUTINE_NEED_SUPER
3265            | ErrorKind::ER_EXEC_STMT_WITH_OPEN_CURSOR
3266            | ErrorKind::ER_STMT_HAS_NO_OPEN_CURSOR
3267            | ErrorKind::ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG
3268            | ErrorKind::ER_NO_DEFAULT_FOR_VIEW_FIELD
3269            | ErrorKind::ER_SP_NO_RECURSION
3270            | ErrorKind::ER_WRONG_LOCK_OF_SYSTEM_TABLE
3271            | ErrorKind::ER_CONNECT_TO_FOREIGN_DATA_SOURCE
3272            | ErrorKind::ER_QUERY_ON_FOREIGN_DATA_SOURCE
3273            | ErrorKind::ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST
3274            | ErrorKind::ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE
3275            | ErrorKind::ER_FOREIGN_DATA_STRING_INVALID
3276            | ErrorKind::ER_CANT_CREATE_FEDERATED_TABLE
3277            | ErrorKind::ER_TRG_IN_WRONG_SCHEMA
3278            | ErrorKind::ER_STACK_OVERRUN_NEED_MORE
3279            | ErrorKind::ER_WARN_CANT_DROP_DEFAULT_KEYCACHE
3280            | ErrorKind::ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG
3281            | ErrorKind::ER_VIEW_PREVENT_UPDATE
3282            | ErrorKind::ER_PS_NO_RECURSION
3283            | ErrorKind::ER_SP_CANT_SET_AUTOCOMMIT
3284            | ErrorKind::ER_MALFORMED_DEFINER
3285            | ErrorKind::ER_VIEW_FRM_NO_USER
3286            | ErrorKind::ER_VIEW_OTHER_USER
3287            | ErrorKind::ER_NO_SUCH_USER
3288            | ErrorKind::ER_FORBID_SCHEMA_CHANGE
3289            | ErrorKind::ER_TRG_NO_DEFINER
3290            | ErrorKind::ER_OLD_FILE_FORMAT
3291            | ErrorKind::ER_SP_RECURSION_LIMIT
3292            | ErrorKind::ER_SP_PROC_TABLE_CORRUPT
3293            | ErrorKind::ER_TABLE_NEEDS_UPGRADE
3294            | ErrorKind::ER_VIEW_RECURSIVE
3295            | ErrorKind::ER_TABLE_CANT_HANDLE_SPKEYS
3296            | ErrorKind::ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA
3297            | ErrorKind::ER_REMOVED_SPACES
3298            | ErrorKind::ER_AUTOINC_READ_FAILED
3299            | ErrorKind::ER_USERNAME
3300            | ErrorKind::ER_HOSTNAME
3301            | ErrorKind::ER_WRONG_STRING_LENGTH
3302            | ErrorKind::ER_NON_INSERTABLE_TABLE
3303            | ErrorKind::ER_ADMIN_WRONG_MRG_TABLE
3304            | ErrorKind::ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT
3305            | ErrorKind::ER_NAME_BECOMES_EMPTY
3306            | ErrorKind::ER_AMBIGUOUS_FIELD_TERM
3307            | ErrorKind::ER_FOREIGN_SERVER_EXISTS
3308            | ErrorKind::ER_FOREIGN_SERVER_DOESNT_EXIST
3309            | ErrorKind::ER_ILLEGAL_HA_CREATE_OPTION
3310            | ErrorKind::ER_PARTITION_REQUIRES_VALUES_ERROR
3311            | ErrorKind::ER_PARTITION_WRONG_VALUES_ERROR
3312            | ErrorKind::ER_PARTITION_MAXVALUE_ERROR
3313            | ErrorKind::ER_PARTITION_SUBPARTITION_ERROR
3314            | ErrorKind::ER_PARTITION_SUBPART_MIX_ERROR
3315            | ErrorKind::ER_PARTITION_WRONG_NO_PART_ERROR
3316            | ErrorKind::ER_PARTITION_WRONG_NO_SUBPART_ERROR
3317            | ErrorKind::ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR
3318            | ErrorKind::ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR
3319            | ErrorKind::ER_FIELD_NOT_FOUND_PART_ERROR
3320            | ErrorKind::ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR
3321            | ErrorKind::ER_INCONSISTENT_PARTITION_INFO_ERROR
3322            | ErrorKind::ER_PARTITION_FUNC_NOT_ALLOWED_ERROR
3323            | ErrorKind::ER_PARTITIONS_MUST_BE_DEFINED_ERROR
3324            | ErrorKind::ER_RANGE_NOT_INCREASING_ERROR
3325            | ErrorKind::ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR
3326            | ErrorKind::ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR
3327            | ErrorKind::ER_PARTITION_ENTRY_ERROR
3328            | ErrorKind::ER_MIX_HANDLER_ERROR
3329            | ErrorKind::ER_PARTITION_NOT_DEFINED_ERROR
3330            | ErrorKind::ER_TOO_MANY_PARTITIONS_ERROR
3331            | ErrorKind::ER_SUBPARTITION_ERROR
3332            | ErrorKind::ER_CANT_CREATE_HANDLER_FILE
3333            | ErrorKind::ER_BLOB_FIELD_IN_PART_FUNC_ERROR
3334            | ErrorKind::ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
3335            | ErrorKind::ER_NO_PARTS_ERROR
3336            | ErrorKind::ER_PARTITION_MGMT_ON_NONPARTITIONED
3337            | ErrorKind::ER_FOREIGN_KEY_ON_PARTITIONED
3338            | ErrorKind::ER_DROP_PARTITION_NON_EXISTENT
3339            | ErrorKind::ER_DROP_LAST_PARTITION
3340            | ErrorKind::ER_COALESCE_ONLY_ON_HASH_PARTITION
3341            | ErrorKind::ER_REORG_HASH_ONLY_ON_SAME_N
3342            | ErrorKind::ER_REORG_NO_PARAM_ERROR
3343            | ErrorKind::ER_ONLY_ON_RANGE_LIST_PARTITION
3344            | ErrorKind::ER_ADD_PARTITION_SUBPART_ERROR
3345            | ErrorKind::ER_ADD_PARTITION_NO_NEW_PARTITION
3346            | ErrorKind::ER_COALESCE_PARTITION_NO_PARTITION
3347            | ErrorKind::ER_REORG_PARTITION_NOT_EXIST
3348            | ErrorKind::ER_SAME_NAME_PARTITION
3349            | ErrorKind::ER_NO_BINLOG_ERROR
3350            | ErrorKind::ER_CONSECUTIVE_REORG_PARTITIONS
3351            | ErrorKind::ER_REORG_OUTSIDE_RANGE
3352            | ErrorKind::ER_PARTITION_FUNCTION_FAILURE
3353            | ErrorKind::ER_PART_STATE_ERROR
3354            | ErrorKind::ER_LIMITED_PART_RANGE
3355            | ErrorKind::ER_PLUGIN_IS_NOT_LOADED
3356            | ErrorKind::ER_WRONG_VALUE
3357            | ErrorKind::ER_NO_PARTITION_FOR_GIVEN_VALUE
3358            | ErrorKind::ER_FILEGROUP_OPTION_ONLY_ONCE
3359            | ErrorKind::ER_CREATE_FILEGROUP_FAILED
3360            | ErrorKind::ER_DROP_FILEGROUP_FAILED
3361            | ErrorKind::ER_TABLESPACE_AUTO_EXTEND_ERROR
3362            | ErrorKind::ER_WRONG_SIZE_NUMBER
3363            | ErrorKind::ER_SIZE_OVERFLOW_ERROR
3364            | ErrorKind::ER_ALTER_FILEGROUP_FAILED
3365            | ErrorKind::ER_BINLOG_ROW_LOGGING_FAILED
3366            | ErrorKind::ER_BINLOG_ROW_WRONG_TABLE_DEF
3367            | ErrorKind::ER_BINLOG_ROW_RBR_TO_SBR
3368            | ErrorKind::ER_EVENT_ALREADY_EXISTS
3369            | ErrorKind::ER_EVENT_STORE_FAILED
3370            | ErrorKind::ER_EVENT_DOES_NOT_EXIST
3371            | ErrorKind::ER_EVENT_CANT_ALTER
3372            | ErrorKind::ER_EVENT_DROP_FAILED
3373            | ErrorKind::ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG
3374            | ErrorKind::ER_EVENT_ENDS_BEFORE_STARTS
3375            | ErrorKind::ER_EVENT_EXEC_TIME_IN_THE_PAST
3376            | ErrorKind::ER_EVENT_OPEN_TABLE_FAILED
3377            | ErrorKind::ER_EVENT_NEITHER_M_EXPR_NOR_M_AT
3378            | ErrorKind::ER_COL_COUNT_DOESNT_MATCH_CORRUPTED
3379            | ErrorKind::ER_CANNOT_LOAD_FROM_TABLE
3380            | ErrorKind::ER_EVENT_CANNOT_DELETE
3381            | ErrorKind::ER_EVENT_COMPILE_ERROR
3382            | ErrorKind::ER_EVENT_SAME_NAME
3383            | ErrorKind::ER_EVENT_DATA_TOO_LONG
3384            | ErrorKind::ER_DROP_INDEX_FK
3385            | ErrorKind::ER_WARN_DEPRECATED_SYNTAX_WITH_VER
3386            | ErrorKind::ER_CANT_WRITE_LOCK_LOG_TABLE
3387            | ErrorKind::ER_CANT_LOCK_LOG_TABLE
3388            | ErrorKind::ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE
3389            | ErrorKind::ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR
3390            | ErrorKind::ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT
3391            | ErrorKind::ER_NDB_CANT_SWITCH_BINLOG_FORMAT
3392            | ErrorKind::ER_PARTITION_NO_TEMPORARY
3393            | ErrorKind::ER_PARTITION_CONST_DOMAIN_ERROR
3394            | ErrorKind::ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
3395            | ErrorKind::ER_DDL_LOG_ERROR
3396            | ErrorKind::ER_NULL_IN_VALUES_LESS_THAN
3397            | ErrorKind::ER_WRONG_PARTITION_NAME
3398            | ErrorKind::ER_DUP_ENTRY_AUTOINCREMENT_CASE
3399            | ErrorKind::ER_EVENT_MODIFY_QUEUE_ERROR
3400            | ErrorKind::ER_EVENT_SET_VAR_ERROR
3401            | ErrorKind::ER_PARTITION_MERGE_ERROR
3402            | ErrorKind::ER_CANT_ACTIVATE_LOG
3403            | ErrorKind::ER_RBR_NOT_AVAILABLE
3404            | ErrorKind::ER_BASE64_DECODE_ERROR
3405            | ErrorKind::ER_EVENT_RECURSION_FORBIDDEN
3406            | ErrorKind::ER_EVENTS_DB_ERROR
3407            | ErrorKind::ER_ONLY_INTEGERS_ALLOWED
3408            | ErrorKind::ER_UNSUPORTED_LOG_ENGINE
3409            | ErrorKind::ER_BAD_LOG_STATEMENT
3410            | ErrorKind::ER_CANT_RENAME_LOG_TABLE
3411            | ErrorKind::ER_NATIVE_FCT_NAME_COLLISION
3412            | ErrorKind::ER_BINLOG_PURGE_EMFILE
3413            | ErrorKind::ER_EVENT_CANNOT_CREATE_IN_THE_PAST
3414            | ErrorKind::ER_EVENT_CANNOT_ALTER_IN_THE_PAST
3415            | ErrorKind::ER_SLAVE_INCIDENT
3416            | ErrorKind::ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT
3417            | ErrorKind::ER_BINLOG_UNSAFE_STATEMENT
3418            | ErrorKind::ER_SLAVE_FATAL_ERROR
3419            | ErrorKind::ER_SLAVE_RELAY_LOG_READ_FAILURE
3420            | ErrorKind::ER_SLAVE_RELAY_LOG_WRITE_FAILURE
3421            | ErrorKind::ER_SLAVE_CREATE_EVENT_FAILURE
3422            | ErrorKind::ER_SLAVE_MASTER_COM_FAILURE
3423            | ErrorKind::ER_BINLOG_LOGGING_IMPOSSIBLE
3424            | ErrorKind::ER_VIEW_NO_CREATION_CTX
3425            | ErrorKind::ER_VIEW_INVALID_CREATION_CTX
3426            | ErrorKind::ER_SR_INVALID_CREATION_CTX
3427            | ErrorKind::ER_TRG_CORRUPTED_FILE
3428            | ErrorKind::ER_TRG_NO_CREATION_CTX
3429            | ErrorKind::ER_TRG_INVALID_CREATION_CTX
3430            | ErrorKind::ER_EVENT_INVALID_CREATION_CTX
3431            | ErrorKind::ER_TRG_CANT_OPEN_TABLE
3432            | ErrorKind::ER_CANT_CREATE_SROUTINE
3433            | ErrorKind::ER_UNUSED_11
3434            | ErrorKind::ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT
3435            | ErrorKind::ER_SLAVE_CORRUPT_EVENT
3436            | ErrorKind::ER_LOAD_DATA_INVALID_COLUMN
3437            | ErrorKind::ER_LOG_PURGE_NO_FILE
3438            | ErrorKind::ER_NEED_REPREPARE
3439            | ErrorKind::ER_DELAYED_NOT_SUPPORTED
3440            | ErrorKind::WARN_NO_MASTER_INF
3441            | ErrorKind::WARN_OPTION_IGNORED
3442            | ErrorKind::WARN_PLUGIN_DELETE_BUILTIN
3443            | ErrorKind::WARN_PLUGIN_BUSY
3444            | ErrorKind::ER_VARIABLE_IS_READONLY
3445            | ErrorKind::ER_WARN_ENGINE_TRANSACTION_ROLLBACK
3446            | ErrorKind::ER_SLAVE_HEARTBEAT_FAILURE
3447            | ErrorKind::ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE
3448            | ErrorKind::ER_NDB_REPLICATION_SCHEMA_ERROR
3449            | ErrorKind::ER_CONFLICT_FN_PARSE_ERROR
3450            | ErrorKind::ER_EXCEPTIONS_WRITE_ERROR
3451            | ErrorKind::ER_TOO_LONG_TABLE_COMMENT
3452            | ErrorKind::ER_TOO_LONG_FIELD_COMMENT
3453            | ErrorKind::ER_DATABASE_NAME
3454            | ErrorKind::ER_TABLE_NAME
3455            | ErrorKind::ER_PARTITION_NAME
3456            | ErrorKind::ER_SUBPARTITION_NAME
3457            | ErrorKind::ER_TEMPORARY_NAME
3458            | ErrorKind::ER_RENAMED_NAME
3459            | ErrorKind::ER_TOO_MANY_CONCURRENT_TRXS
3460            | ErrorKind::WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED
3461            | ErrorKind::ER_DEBUG_SYNC_TIMEOUT
3462            | ErrorKind::ER_DEBUG_SYNC_HIT_LIMIT
3463            | ErrorKind::ER_SIGNAL_EXCEPTION
3464            | ErrorKind::ER_SIGNAL_BAD_CONDITION_TYPE
3465            | ErrorKind::WARN_COND_ITEM_TRUNCATED
3466            | ErrorKind::ER_COND_ITEM_TOO_LONG
3467            | ErrorKind::ER_UNKNOWN_LOCALE
3468            | ErrorKind::ER_SLAVE_IGNORE_SERVER_IDS
3469            | ErrorKind::ER_QUERY_CACHE_DISABLED
3470            | ErrorKind::ER_SAME_NAME_PARTITION_FIELD
3471            | ErrorKind::ER_PARTITION_COLUMN_LIST_ERROR
3472            | ErrorKind::ER_WRONG_TYPE_COLUMN_VALUE_ERROR
3473            | ErrorKind::ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR
3474            | ErrorKind::ER_MAXVALUE_IN_VALUES_IN
3475            | ErrorKind::ER_TOO_MANY_VALUES_ERROR
3476            | ErrorKind::ER_ROW_SINGLE_PARTITION_FIELD_ERROR
3477            | ErrorKind::ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD
3478            | ErrorKind::ER_PARTITION_FIELDS_TOO_LONG
3479            | ErrorKind::ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE
3480            | ErrorKind::ER_BINLOG_ROW_MODE_AND_STMT_ENGINE
3481            | ErrorKind::ER_BINLOG_UNSAFE_AND_STMT_ENGINE
3482            | ErrorKind::ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE
3483            | ErrorKind::ER_BINLOG_STMT_MODE_AND_ROW_ENGINE
3484            | ErrorKind::ER_BINLOG_ROW_INJECTION_AND_STMT_MODE
3485            | ErrorKind::ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE
3486            | ErrorKind::ER_BINLOG_UNSAFE_LIMIT
3487            | ErrorKind::ER_BINLOG_UNSAFE_INSERT_DELAYED
3488            | ErrorKind::ER_BINLOG_UNSAFE_SYSTEM_TABLE
3489            | ErrorKind::ER_BINLOG_UNSAFE_AUTOINC_COLUMNS
3490            | ErrorKind::ER_BINLOG_UNSAFE_UDF
3491            | ErrorKind::ER_BINLOG_UNSAFE_SYSTEM_VARIABLE
3492            | ErrorKind::ER_BINLOG_UNSAFE_SYSTEM_FUNCTION
3493            | ErrorKind::ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS
3494            | ErrorKind::ER_MESSAGE_AND_STATEMENT
3495            | ErrorKind::ER_SLAVE_CONVERSION_FAILED
3496            | ErrorKind::ER_SLAVE_CANT_CREATE_CONVERSION
3497            | ErrorKind::ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT
3498            | ErrorKind::ER_PATH_LENGTH
3499            | ErrorKind::ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT
3500            | ErrorKind::ER_WRONG_NATIVE_TABLE_STRUCTURE
3501            | ErrorKind::ER_WRONG_PERFSCHEMA_USAGE
3502            | ErrorKind::ER_WARN_I_S_SKIPPED_TABLE
3503            | ErrorKind::ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT
3504            | ErrorKind::ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT
3505            | ErrorKind::ER_TOO_LONG_INDEX_COMMENT
3506            | ErrorKind::ER_LOCK_ABORTED
3507            | ErrorKind::ER_WRONG_SPVAR_TYPE_IN_LIMIT
3508            | ErrorKind::ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE
3509            | ErrorKind::ER_BINLOG_UNSAFE_MIXED_STATEMENT
3510            | ErrorKind::ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN
3511            | ErrorKind::ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN
3512            | ErrorKind::ER_FAILED_READ_FROM_PAR_FILE
3513            | ErrorKind::ER_VALUES_IS_NOT_INT_TYPE_ERROR
3514            | ErrorKind::ER_SET_PASSWORD_AUTH_PLUGIN
3515            | ErrorKind::ER_GRANT_PLUGIN_USER_EXISTS
3516            | ErrorKind::ER_PLUGIN_IS_PERMANENT
3517            | ErrorKind::ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN
3518            | ErrorKind::ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX
3519            | ErrorKind::ER_STMT_CACHE_FULL
3520            | ErrorKind::ER_MULTI_UPDATE_KEY_CONFLICT
3521            | ErrorKind::ER_TABLE_NEEDS_REBUILD
3522            | ErrorKind::WARN_OPTION_BELOW_LIMIT
3523            | ErrorKind::ER_INDEX_COLUMN_TOO_LONG
3524            | ErrorKind::ER_ERROR_IN_TRIGGER_BODY
3525            | ErrorKind::ER_ERROR_IN_UNKNOWN_TRIGGER_BODY
3526            | ErrorKind::ER_INDEX_CORRUPT
3527            | ErrorKind::ER_UNDO_RECORD_TOO_BIG
3528            | ErrorKind::ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT
3529            | ErrorKind::ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE
3530            | ErrorKind::ER_BINLOG_UNSAFE_REPLACE_SELECT
3531            | ErrorKind::ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT
3532            | ErrorKind::ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT
3533            | ErrorKind::ER_BINLOG_UNSAFE_UPDATE_IGNORE
3534            | ErrorKind::ER_PLUGIN_NO_UNINSTALL
3535            | ErrorKind::ER_PLUGIN_NO_INSTALL
3536            | ErrorKind::ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT
3537            | ErrorKind::ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC
3538            | ErrorKind::ER_BINLOG_UNSAFE_INSERT_TWO_KEYS
3539            | ErrorKind::ER_TABLE_IN_FK_CHECK
3540            | ErrorKind::ER_UNSUPPORTED_ENGINE
3541            | ErrorKind::ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST
3542            | ErrorKind::ER_CANNOT_LOAD_FROM_TABLE_V2
3543            | ErrorKind::ER_MASTER_DELAY_VALUE_OUT_OF_RANGE
3544            | ErrorKind::ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT
3545            | ErrorKind::ER_PARTITION_EXCHANGE_DIFFERENT_OPTION
3546            | ErrorKind::ER_PARTITION_EXCHANGE_PART_TABLE
3547            | ErrorKind::ER_PARTITION_EXCHANGE_TEMP_TABLE
3548            | ErrorKind::ER_PARTITION_INSTEAD_OF_SUBPARTITION
3549            | ErrorKind::ER_UNKNOWN_PARTITION
3550            | ErrorKind::ER_TABLES_DIFFERENT_METADATA
3551            | ErrorKind::ER_ROW_DOES_NOT_MATCH_PARTITION
3552            | ErrorKind::ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX
3553            | ErrorKind::ER_WARN_INDEX_NOT_APPLICABLE
3554            | ErrorKind::ER_PARTITION_EXCHANGE_FOREIGN_KEY
3555            | ErrorKind::ER_NO_SUCH_KEY_VALUE
3556            | ErrorKind::ER_RPL_INFO_DATA_TOO_LONG
3557            | ErrorKind::ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE
3558            | ErrorKind::ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE
3559            | ErrorKind::ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX
3560            | ErrorKind::ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT
3561            | ErrorKind::ER_PARTITION_CLAUSE_ON_NONPARTITIONED
3562            | ErrorKind::ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET
3563            | ErrorKind::ER_NO_SUCH_PARTITION_UNUSED
3564            | ErrorKind::ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE
3565            | ErrorKind::ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE
3566            | ErrorKind::ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE
3567            | ErrorKind::ER_MTS_FEATURE_IS_NOT_SUPPORTED
3568            | ErrorKind::ER_MTS_UPDATED_DBS_GREATER_MAX
3569            | ErrorKind::ER_MTS_CANT_PARALLEL
3570            | ErrorKind::ER_MTS_INCONSISTENT_DATA
3571            | ErrorKind::ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING
3572            | ErrorKind::ER_INSECURE_PLAIN_TEXT
3573            | ErrorKind::ER_INSECURE_CHANGE_MASTER
3574            | ErrorKind::ER_SQLTHREAD_WITH_SECURE_SLAVE
3575            | ErrorKind::ER_TABLE_HAS_NO_FT
3576            | ErrorKind::ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER
3577            | ErrorKind::ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION
3578            | ErrorKind::ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST
3579            | ErrorKind::ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL
3580            | ErrorKind::ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION
3581            | ErrorKind::ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL
3582            | ErrorKind::ER_SKIPPING_LOGGED_TRANSACTION
3583            | ErrorKind::ER_MALFORMED_GTID_SET_SPECIFICATION
3584            | ErrorKind::ER_MALFORMED_GTID_SET_ENCODING
3585            | ErrorKind::ER_MALFORMED_GTID_SPECIFICATION
3586            | ErrorKind::ER_GNO_EXHAUSTED
3587            | ErrorKind::ER_BAD_SLAVE_AUTO_POSITION
3588            | ErrorKind::ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON
3589            | ErrorKind::ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET
3590            | ErrorKind::ER_GTID_MODE_2_OR_3_REQUIRES_DISABLE_GTID_UNSAFE_STATEMENTS_ON
3591            | ErrorKind::ER_GTID_MODE_REQUIRES_BINLOG
3592            | ErrorKind::ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF
3593            | ErrorKind::ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON
3594            | ErrorKind::ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF
3595            | ErrorKind::ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF
3596            | ErrorKind::ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE
3597            | ErrorKind::ER_GTID_UNSAFE_CREATE_SELECT
3598            | ErrorKind::ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION
3599            | ErrorKind::ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME
3600            | ErrorKind::ER_MASTER_HAS_PURGED_REQUIRED_GTIDS
3601            | ErrorKind::ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID
3602            | ErrorKind::ER_UNKNOWN_EXPLAIN_FORMAT
3603            | ErrorKind::ER_TOO_LONG_TABLE_PARTITION_COMMENT
3604            | ErrorKind::ER_SLAVE_CONFIGURATION
3605            | ErrorKind::ER_INNODB_FT_LIMIT
3606            | ErrorKind::ER_INNODB_NO_FT_TEMP_TABLE
3607            | ErrorKind::ER_INNODB_FT_WRONG_DOCID_COLUMN
3608            | ErrorKind::ER_INNODB_FT_WRONG_DOCID_INDEX
3609            | ErrorKind::ER_INNODB_ONLINE_LOG_TOO_BIG
3610            | ErrorKind::ER_UNKNOWN_ALTER_ALGORITHM
3611            | ErrorKind::ER_UNKNOWN_ALTER_LOCK
3612            | ErrorKind::ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS
3613            | ErrorKind::ER_MTS_RECOVERY_FAILURE
3614            | ErrorKind::ER_MTS_RESET_WORKERS
3615            | ErrorKind::ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2
3616            | ErrorKind::ER_SLAVE_SILENT_RETRY_TRANSACTION
3617            | ErrorKind::ER_DISCARD_FK_CHECKS_RUNNING
3618            | ErrorKind::ER_TABLE_SCHEMA_MISMATCH
3619            | ErrorKind::ER_TABLE_IN_SYSTEM_TABLESPACE
3620            | ErrorKind::ER_IO_READ_ERROR
3621            | ErrorKind::ER_IO_WRITE_ERROR
3622            | ErrorKind::ER_TABLESPACE_MISSING
3623            | ErrorKind::ER_TABLESPACE_EXISTS
3624            | ErrorKind::ER_TABLESPACE_DISCARDED
3625            | ErrorKind::ER_INTERNAL_ERROR
3626            | ErrorKind::ER_INNODB_IMPORT_ERROR
3627            | ErrorKind::ER_INNODB_INDEX_CORRUPT
3628            | ErrorKind::ER_INVALID_YEAR_COLUMN_LENGTH
3629            | ErrorKind::ER_NOT_VALID_PASSWORD
3630            | ErrorKind::ER_MUST_CHANGE_PASSWORD
3631            | ErrorKind::ER_FK_NO_INDEX_CHILD
3632            | ErrorKind::ER_FK_NO_INDEX_PARENT
3633            | ErrorKind::ER_FK_FAIL_ADD_SYSTEM
3634            | ErrorKind::ER_FK_CANNOT_OPEN_PARENT
3635            | ErrorKind::ER_FK_INCORRECT_OPTION
3636            | ErrorKind::ER_FK_DUP_NAME
3637            | ErrorKind::ER_PASSWORD_FORMAT
3638            | ErrorKind::ER_FK_COLUMN_CANNOT_DROP
3639            | ErrorKind::ER_FK_COLUMN_CANNOT_DROP_CHILD
3640            | ErrorKind::ER_FK_COLUMN_NOT_NULL
3641            | ErrorKind::ER_DUP_INDEX
3642            | ErrorKind::ER_FK_COLUMN_CANNOT_CHANGE
3643            | ErrorKind::ER_FK_COLUMN_CANNOT_CHANGE_CHILD
3644            | ErrorKind::ER_FK_CANNOT_DELETE_PARENT
3645            | ErrorKind::ER_MALFORMED_PACKET
3646            | ErrorKind::ER_READ_ONLY_MODE
3647            | ErrorKind::ER_GTID_NEXT_TYPE_UNDEFINED_GROUP
3648            | ErrorKind::ER_VARIABLE_NOT_SETTABLE_IN_SP
3649            | ErrorKind::ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF
3650            | ErrorKind::ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY
3651            | ErrorKind::ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY
3652            | ErrorKind::ER_GTID_PURGED_WAS_CHANGED
3653            | ErrorKind::ER_GTID_EXECUTED_WAS_CHANGED
3654            | ErrorKind::ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES
3655            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY
3656            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION
3657            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME
3658            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE
3659            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK
3660            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE
3661            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK
3662            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC
3663            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS
3664            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS
3665            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS
3666            | ErrorKind::ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE
3667            | ErrorKind::ER_IDENT_CAUSES_TOO_LONG_PATH
3668            | ErrorKind::ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL
3669            | ErrorKind::ER_MUST_CHANGE_PASSWORD_LOGIN
3670            | ErrorKind::ER_ROW_IN_WRONG_PARTITION
3671            | ErrorKind::ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX
3672            | ErrorKind::ER_INNODB_NO_FT_USES_PARSER
3673            | ErrorKind::ER_BINLOG_LOGICAL_CORRUPTION
3674            | ErrorKind::ER_WARN_PURGE_LOG_IN_USE
3675            | ErrorKind::ER_WARN_PURGE_LOG_IS_ACTIVE
3676            | ErrorKind::ER_AUTO_INCREMENT_CONFLICT
3677            | ErrorKind::WARN_ON_BLOCKHOLE_IN_RBR
3678            | ErrorKind::ER_SLAVE_MI_INIT_REPOSITORY
3679            | ErrorKind::ER_SLAVE_RLI_INIT_REPOSITORY
3680            | ErrorKind::ER_INNODB_READ_ONLY
3681            | ErrorKind::ER_STOP_SLAVE_SQL_THREAD_TIMEOUT
3682            | ErrorKind::ER_STOP_SLAVE_IO_THREAD_TIMEOUT
3683            | ErrorKind::ER_TABLE_CORRUPT
3684            | ErrorKind::ER_TEMP_FILE_WRITE_FAILURE
3685            | ErrorKind::ER_INNODB_FT_AUX_NOT_HEX_ID
3686            | ErrorKind::ER_OLD_TEMPORALS_UPGRADED
3687            | ErrorKind::ER_INNODB_FORCED_RECOVERY
3688            | ErrorKind::ER_AES_INVALID_IV
3689            | ErrorKind::ER_PLUGIN_CANNOT_BE_UNINSTALLED
3690            | ErrorKind::ER_GTID_UNSAFE_BINLOG_SPLITTABLE_STATEMENT_AND_GTID_GROUP
3691            | ErrorKind::ER_SLAVE_HAS_MORE_GTIDS_THAN_MASTER => b"HY000",
3692            ErrorKind::ER_XAER_NOTA => b"XAE04",
3693            ErrorKind::ER_XA_RBROLLBACK => b"XA100",
3694            ErrorKind::ER_DATA_TOO_LONG => b"22001",
3695            ErrorKind::ER_LOCK_DEADLOCK => b"40001",
3696            ErrorKind::ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT
3697            | ErrorKind::ER_OPERAND_COLUMNS
3698            | ErrorKind::ER_SUBQUERY_NO_1_ROW => b"21000",
3699        }
3700    }
3701}