opensrv_mysql/
errorcodes.rs

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