~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/errname.cc

make client/drizzletest.cc, new client/errname.cc compile in a reasonable amount of time and memory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 MySQL
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 */
 
20
 
 
21
#include <client/errname.h>
 
22
 
 
23
using namespace std;
 
24
 
 
25
ErrorCodes::ErrorCodes()
 
26
  :
 
27
    error_code_map()
 
28
{
 
29
  static struct st_error
 
30
  {
 
31
    const char *name;
 
32
    uint32_t code;
 
33
  }
 
34
  st_error_names[]=
 
35
  {
 
36
    { "ER_NO",1002 },
 
37
    { "ER_YES",1003 },
 
38
    { "ER_CANT_CREATE_FILE",1004 },
 
39
    { "ER_CANT_CREATE_TABLE",1005 },
 
40
    { "ER_CANT_CREATE_DB",1006 },
 
41
    { "ER_DB_CREATE_EXISTS",1007 },
 
42
    { "ER_DB_DROP_EXISTS",1008 },
 
43
    { "ER_DB_DROP_DELETE",1009 },
 
44
    { "ER_DB_DROP_RMDIR",1010 },
 
45
    { "ER_CANT_DELETE_FILE",1011 },
 
46
    { "ER_CANT_FIND_SYSTEM_REC",1012 },
 
47
    { "ER_CANT_GET_STAT",1013 },
 
48
    { "ER_CANT_GET_WD",1014 },
 
49
    { "ER_CANT_LOCK",1015 },
 
50
    { "ER_CANT_OPEN_FILE",1016 },
 
51
    { "ER_FILE_NOT_FOUND",1017 },
 
52
    { "ER_CANT_READ_DIR",1018 },
 
53
    { "ER_CANT_SET_WD",1019 },
 
54
    { "ER_CHECKREAD",1020 },
 
55
    { "ER_DISK_FULL",1021 },
 
56
    { "ER_DUP_KEY",1022 },
 
57
    { "ER_ERROR_ON_CLOSE",1023 },
 
58
    { "ER_ERROR_ON_READ",1024 },
 
59
    { "ER_ERROR_ON_RENAME",1025 },
 
60
    { "ER_ERROR_ON_WRITE",1026 },
 
61
    { "ER_FILE_USED",1027 },
 
62
    { "ER_FILSORT_ABORT",1028 },
 
63
    { "ER_FORM_NOT_FOUND",1029 },
 
64
    { "ER_GET_ERRNO",1030 },
 
65
    { "ER_ILLEGAL_HA",1031 },
 
66
    { "ER_KEY_NOT_FOUND",1032 },
 
67
    { "ER_NOT_FORM_FILE",1033 },
 
68
    { "ER_NOT_KEYFILE",1034 },
 
69
    { "ER_OLD_KEYFILE",1035 },
 
70
    { "ER_OPEN_AS_READONLY",1036 },
 
71
    { "ER_OUTOFMEMORY",1037 },
 
72
    { "ER_OUT_OF_SORTMEMORY",1038 },
 
73
    { "ER_UNEXPECTED_EOF",1039 },
 
74
    { "ER_CON_COUNT_ERROR",1040 },
 
75
    { "ER_OUT_OF_RESOURCES",1041 },
 
76
    { "ER_BAD_HOST_ERROR",1042 },
 
77
    { "ER_HANDSHAKE_ERROR",1043 },
 
78
    { "ER_DBACCESS_DENIED_ERROR",1044 },
 
79
    { "ER_ACCESS_DENIED_ERROR",1045 },
 
80
    { "ER_NO_DB_ERROR",1046 },
 
81
    { "ER_UNKNOWN_COM_ERROR",1047 },
 
82
    { "ER_BAD_NULL_ERROR",1048 },
 
83
    { "ER_BAD_DB_ERROR",1049 },
 
84
    { "ER_TABLE_EXISTS_ERROR",1050 },
 
85
    { "ER_BAD_TABLE_ERROR",1051 },
 
86
    { "ER_NON_UNIQ_ERROR",1052 },
 
87
    { "ER_SERVER_SHUTDOWN",1053 },
 
88
    { "ER_BAD_FIELD_ERROR",1054 },
 
89
    { "ER_WRONG_FIELD_WITH_GROUP",1055 },
 
90
    { "ER_WRONG_GROUP_FIELD",1056 },
 
91
    { "ER_WRONG_SUM_SELECT",1057 },
 
92
    { "ER_WRONG_VALUE_COUNT",1058 },
 
93
    { "ER_TOO_LONG_IDENT",1059 },
 
94
    { "ER_DUP_FIELDNAME",1060 },
 
95
    { "ER_DUP_KEYNAME",1061 },
 
96
    { "ER_DUP_ENTRY",1062 },
 
97
    { "ER_WRONG_FIELD_SPEC",1063 },
 
98
    { "ER_PARSE_ERROR",1064 },
 
99
    { "ER_EMPTY_QUERY",1065 },
 
100
    { "ER_NONUNIQ_TABLE",1066 },
 
101
    { "ER_INVALID_DEFAULT",1067 },
 
102
    { "ER_MULTIPLE_PRI_KEY",1068 },
 
103
    { "ER_TOO_MANY_KEYS",1069 },
 
104
    { "ER_TOO_MANY_KEY_PARTS",1070 },
 
105
    { "ER_TOO_LONG_KEY",1071 },
 
106
    { "ER_KEY_COLUMN_DOES_NOT_EXITS",1072 },
 
107
    { "ER_BLOB_USED_AS_KEY",1073 },
 
108
    { "ER_TOO_BIG_FIELDLENGTH",1074 },
 
109
    { "ER_WRONG_AUTO_KEY",1075 },
 
110
    { "ER_READY",1076 },
 
111
    { "ER_NORMAL_SHUTDOWN",1077 },
 
112
    { "ER_GOT_SIGNAL",1078 },
 
113
    { "ER_SHUTDOWN_COMPLETE",1079 },
 
114
    { "ER_FORCING_CLOSE",1080 },
 
115
    { "ER_IPSOCK_ERROR",1081 },
 
116
    { "ER_NO_SUCH_INDEX",1082 },
 
117
    { "ER_WRONG_FIELD_TERMINATORS",1083 },
 
118
    { "ER_BLOBS_AND_NO_TERMINATED",1084 },
 
119
    { "ER_TEXTFILE_NOT_READABLE",1085 },
 
120
    { "ER_FILE_EXISTS_ERROR",1086 },
 
121
    { "ER_LOAD_INFO",1087 },
 
122
    { "ER_ALTER_INFO",1088 },
 
123
    { "ER_WRONG_SUB_KEY",1089 },
 
124
    { "ER_CANT_REMOVE_ALL_FIELDS",1090 },
 
125
    { "ER_CANT_DROP_FIELD_OR_KEY",1091 },
 
126
    { "ER_INSERT_INFO",1092 },
 
127
    { "ER_UPDATE_TABLE_USED",1093 },
 
128
    { "ER_NO_SUCH_THREAD",1094 },
 
129
    { "ER_KILL_DENIED_ERROR",1095 },
 
130
    { "ER_NO_TABLES_USED",1096 },
 
131
    { "ER_TOO_BIG_SET",1097 },
 
132
    { "ER_NO_UNIQUE_LOGFILE",1098 },
 
133
    { "ER_TABLE_NOT_LOCKED_FOR_WRITE",1099 },
 
134
    { "ER_TABLE_NOT_LOCKED",1100 },
 
135
    { "ER_BLOB_CANT_HAVE_DEFAULT",1101 },
 
136
    { "ER_WRONG_DB_NAME",1102 },
 
137
    { "ER_WRONG_TABLE_NAME",1103 },
 
138
    { "ER_TOO_BIG_SELECT",1104 },
 
139
    { "ER_UNKNOWN_ERROR",1105 },
 
140
    { "ER_UNKNOWN_PROCEDURE",1106 },
 
141
    { "ER_WRONG_PARAMCOUNT_TO_PROCEDURE",1107 },
 
142
    { "ER_WRONG_PARAMETERS_TO_PROCEDURE",1108 },
 
143
    { "ER_UNKNOWN_TABLE",1109 },
 
144
    { "ER_FIELD_SPECIFIED_TWICE",1110 },
 
145
    { "ER_INVALID_GROUP_FUNC_USE",1111 },
 
146
    { "ER_UNSUPPORTED_EXTENSION",1112 },
 
147
    { "ER_TABLE_MUST_HAVE_COLUMNS",1113 },
 
148
    { "ER_RECORD_FILE_FULL",1114 },
 
149
    { "ER_UNKNOWN_CHARACTER_SET",1115 },
 
150
    { "ER_TOO_MANY_TABLES",1116 },
 
151
    { "ER_TOO_MANY_FIELDS",1117 },
 
152
    { "ER_TOO_BIG_ROWSIZE",1118 },
 
153
    { "ER_STACK_OVERRUN",1119 },
 
154
    { "ER_WRONG_OUTER_JOIN",1120 },
 
155
    { "ER_NULL_COLUMN_IN_INDEX",1121 },
 
156
    { "ER_CANT_FIND_UDF",1122 },
 
157
    { "ER_CANT_INITIALIZE_UDF",1123 },
 
158
    { "ER_UDF_NO_PATHS",1124 },
 
159
    { "ER_UDF_EXISTS",1125 },
 
160
    { "ER_CANT_OPEN_LIBRARY",1126 },
 
161
    { "ER_CANT_FIND_DL_ENTRY",1127 },
 
162
    { "ER_FUNCTION_NOT_DEFINED",1128 },
 
163
    { "ER_HOST_IS_BLOCKED",1129 },
 
164
    { "ER_HOST_NOT_PRIVILEGED",1130 },
 
165
    { "ER_PASSWORD_ANONYMOUS_USER",1131 },
 
166
    { "ER_PASSWORD_NOT_ALLOWED",1132 },
 
167
    { "ER_PASSWORD_NO_MATCH",1133 },
 
168
    { "ER_UPDATE_INFO",1134 },
 
169
    { "ER_CANT_CREATE_THREAD",1135 },
 
170
    { "ER_WRONG_VALUE_COUNT_ON_ROW",1136 },
 
171
    { "ER_CANT_REOPEN_TABLE",1137 },
 
172
    { "ER_INVALID_USE_OF_NULL",1138 },
 
173
    { "ER_REGEXP_ERROR",1139 },
 
174
    { "ER_MIX_OF_GROUP_FUNC_AND_FIELDS",1140 },
 
175
    { "ER_NONEXISTING_GRANT",1141 },
 
176
    { "ER_TABLEACCESS_DENIED_ERROR",1142 },
 
177
    { "ER_COLUMNACCESS_DENIED_ERROR",1143 },
 
178
    { "ER_ILLEGAL_GRANT_FOR_TABLE",1144 },
 
179
    { "ER_GRANT_WRONG_HOST_OR_USER",1145 },
 
180
    { "ER_NO_SUCH_TABLE",1146 },
 
181
    { "ER_NONEXISTING_TABLE_GRANT",1147 },
 
182
    { "ER_NOT_ALLOWED_COMMAND",1148 },
 
183
    { "ER_SYNTAX_ERROR",1149 },
 
184
    { "ER_DELAYED_CANT_CHANGE_LOCK",1150 },
 
185
    { "ER_TOO_MANY_DELAYED_THREADS",1151 },
 
186
    { "ER_ABORTING_CONNECTION",1152 },
 
187
    { "ER_NET_PACKET_TOO_LARGE",1153 },
 
188
    { "ER_NET_READ_ERROR_FROM_PIPE",1154 },
 
189
    { "ER_NET_FCNTL_ERROR",1155 },
 
190
    { "ER_NET_PACKETS_OUT_OF_ORDER",1156 },
 
191
    { "ER_NET_UNCOMPRESS_ERROR",1157 },
 
192
    { "ER_NET_READ_ERROR",1158 },
 
193
    { "ER_NET_READ_INTERRUPTED",1159 },
 
194
    { "ER_NET_ERROR_ON_WRITE",1160 },
 
195
    { "ER_NET_WRITE_INTERRUPTED",1161 },
 
196
    { "ER_TOO_LONG_STRING",1162 },
 
197
    { "ER_TABLE_CANT_HANDLE_BLOB",1163 },
 
198
    { "ER_TABLE_CANT_HANDLE_AUTO_INCREMENT",1164 },
 
199
    { "ER_DELAYED_INSERT_TABLE_LOCKED",1165 },
 
200
    { "ER_WRONG_COLUMN_NAME",1166 },
 
201
    { "ER_WRONG_KEY_COLUMN",1167 },
 
202
    { "ER_WRONG_MRG_TABLE",1168 },
 
203
    { "ER_DUP_UNIQUE",1169 },
 
204
    { "ER_BLOB_KEY_WITHOUT_LENGTH",1170 },
 
205
    { "ER_PRIMARY_CANT_HAVE_NULL",1171 },
 
206
    { "ER_TOO_MANY_ROWS",1172 },
 
207
    { "ER_REQUIRES_PRIMARY_KEY",1173 },
 
208
    { "ER_NO_RAID_COMPILED",1174 },
 
209
    { "ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE",1175 },
 
210
    { "ER_KEY_DOES_NOT_EXITS",1176 },
 
211
    { "ER_CHECK_NO_SUCH_TABLE",1177 },
 
212
    { "ER_CHECK_NOT_IMPLEMENTED",1178 },
 
213
    { "ER_CANT_DO_THIS_DURING_AN_TRANSACTION",1179 },
 
214
    { "ER_ERROR_DURING_COMMIT",1180 },
 
215
    { "ER_ERROR_DURING_ROLLBACK",1181 },
 
216
    { "ER_ERROR_DURING_FLUSH_LOGS",1182 },
 
217
    { "ER_ERROR_DURING_CHECKPOINT",1183 },
 
218
    { "ER_NEW_ABORTING_CONNECTION",1184 },
 
219
    { "ER_DUMP_NOT_IMPLEMENTED",1185 },
 
220
    { "ER_FLUSH_MASTER_BINLOG_CLOSED",1186 },
 
221
    { "ER_INDEX_REBUILD",1187 },
 
222
    { "ER_MASTER",1188 },
 
223
    { "ER_MASTER_NET_READ",1189 },
 
224
    { "ER_MASTER_NET_WRITE",1190 },
 
225
    { "ER_FT_MATCHING_KEY_NOT_FOUND",1191 },
 
226
    { "ER_LOCK_OR_ACTIVE_TRANSACTION",1192 },
 
227
    { "ER_UNKNOWN_SYSTEM_VARIABLE",1193 },
 
228
    { "ER_CRASHED_ON_USAGE",1194 },
 
229
    { "ER_CRASHED_ON_REPAIR",1195 },
 
230
    { "ER_WARNING_NOT_COMPLETE_ROLLBACK",1196 },
 
231
    { "ER_TRANS_CACHE_FULL",1197 },
 
232
    { "ER_SLAVE_MUST_STOP",1198 },
 
233
    { "ER_SLAVE_NOT_RUNNING",1199 },
 
234
    { "ER_BAD_SLAVE",1200 },
 
235
    { "ER_MASTER_INFO",1201 },
 
236
    { "ER_SLAVE_THREAD",1202 },
 
237
    { "ER_TOO_MANY_USER_CONNECTIONS",1203 },
 
238
    { "ER_SET_CONSTANTS_ONLY",1204 },
 
239
    { "ER_LOCK_WAIT_TIMEOUT",1205 },
 
240
    { "ER_LOCK_TABLE_FULL",1206 },
 
241
    { "ER_READ_ONLY_TRANSACTION",1207 },
 
242
    { "ER_DROP_DB_WITH_READ_LOCK",1208 },
 
243
    { "ER_CREATE_DB_WITH_READ_LOCK",1209 },
 
244
    { "ER_WRONG_ARGUMENTS",1210 },
 
245
    { "ER_NO_PERMISSION_TO_CREATE_USER",1211 },
 
246
    { "ER_UNION_TABLES_IN_DIFFERENT_DIR",1212 },
 
247
    { "ER_LOCK_DEADLOCK",1213 },
 
248
    { "ER_TABLE_CANT_HANDLE_FT",1214 },
 
249
    { "ER_CANNOT_ADD_FOREIGN",1215 },
 
250
    { "ER_NO_REFERENCED_ROW",1216 },
 
251
    { "ER_ROW_IS_REFERENCED",1217 },
 
252
    { "ER_CONNECT_TO_MASTER",1218 },
 
253
    { "ER_QUERY_ON_MASTER",1219 },
 
254
    { "ER_ERROR_WHEN_EXECUTING_COMMAND",1220 },
 
255
    { "ER_WRONG_USAGE",1221 },
 
256
    { "ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT",1222 },
 
257
    { "ER_CANT_UPDATE_WITH_READLOCK",1223 },
 
258
    { "ER_MIXING_NOT_ALLOWED",1224 },
 
259
    { "ER_DUP_ARGUMENT",1225 },
 
260
    { "ER_USER_LIMIT_REACHED",1226 },
 
261
    { "ER_SPECIFIC_ACCESS_DENIED_ERROR",1227 },
 
262
    { "ER_LOCAL_VARIABLE",1228 },
 
263
    { "ER_GLOBAL_VARIABLE",1229 },
 
264
    { "ER_NO_DEFAULT",1230 },
 
265
    { "ER_WRONG_VALUE_FOR_VAR",1231 },
 
266
    { "ER_WRONG_TYPE_FOR_VAR",1232 },
 
267
    { "ER_VAR_CANT_BE_READ",1233 },
 
268
    { "ER_CANT_USE_OPTION_HERE",1234 },
 
269
    { "ER_NOT_SUPPORTED_YET",1235 },
 
270
    { "ER_MASTER_FATAL_ERROR_READING_BINLOG",1236 },
 
271
    { "ER_SLAVE_IGNORED_TABLE",1237 },
 
272
    { "ER_INCORRECT_GLOBAL_LOCAL_VAR",1238 },
 
273
    { "ER_WRONG_FK_DEF",1239 },
 
274
    { "ER_KEY_REF_DO_NOT_MATCH_TABLE_REF",1240 },
 
275
    { "ER_OPERAND_COLUMNS",1241 },
 
276
    { "ER_SUBQUERY_NO_1_ROW",1242 },
 
277
    { "ER_UNKNOWN_STMT_HANDLER",1243 },
 
278
    { "ER_CORRUPT_HELP_DB",1244 },
 
279
    { "ER_CYCLIC_REFERENCE",1245 },
 
280
    { "ER_AUTO_CONVERT",1246 },
 
281
    { "ER_ILLEGAL_REFERENCE",1247 },
 
282
    { "ER_DERIVED_MUST_HAVE_ALIAS",1248 },
 
283
    { "ER_SELECT_REDUCED",1249 },
 
284
    { "ER_TABLENAME_NOT_ALLOWED_HERE",1250 },
 
285
    { "ER_NOT_SUPPORTED_AUTH_MODE",1251 },
 
286
    { "ER_SPATIAL_CANT_HAVE_NULL",1252 },
 
287
    { "ER_COLLATION_CHARSET_MISMATCH",1253 },
 
288
    { "ER_SLAVE_WAS_RUNNING",1254 },
 
289
    { "ER_SLAVE_WAS_NOT_RUNNING",1255 },
 
290
    { "ER_TOO_BIG_FOR_UNCOMPRESS",1256 },
 
291
    { "ER_ZLIB_Z_MEM_ERROR",1257 },
 
292
    { "ER_ZLIB_Z_BUF_ERROR",1258 },
 
293
    { "ER_ZLIB_Z_DATA_ERROR",1259 },
 
294
    { "ER_CUT_VALUE_GROUP_CONCAT",1260 },
 
295
    { "ER_WARN_TOO_FEW_RECORDS",1261 },
 
296
    { "ER_WARN_TOO_MANY_RECORDS",1262 },
 
297
    { "ER_WARN_NULL_TO_NOTNULL",1263 },
 
298
    { "ER_WARN_DATA_OUT_OF_RANGE",1264 },
 
299
    { "WARN_DATA_TRUNCATED",1265 },
 
300
    { "ER_WARN_USING_OTHER_HANDLER",1266 },
 
301
    { "ER_CANT_AGGREGATE_2COLLATIONS",1267 },
 
302
    { "ER_DROP_USER",1268 },
 
303
    { "ER_REVOKE_GRANTS",1269 },
 
304
    { "ER_CANT_AGGREGATE_3COLLATIONS",1270 },
 
305
    { "ER_CANT_AGGREGATE_NCOLLATIONS",1271 },
 
306
    { "ER_VARIABLE_IS_NOT_STRUCT",1272 },
 
307
    { "ER_UNKNOWN_COLLATION",1273 },
 
308
    { "ER_SLAVE_IGNORED_SSL_PARAMS",1274 },
 
309
    { "ER_SERVER_IS_IN_SECURE_AUTH_MODE",1275 },
 
310
    { "ER_WARN_FIELD_RESOLVED",1276 },
 
311
    { "ER_BAD_SLAVE_UNTIL_COND",1277 },
 
312
    { "ER_MISSING_SKIP_SLAVE",1278 },
 
313
    { "ER_UNTIL_COND_IGNORED",1279 },
 
314
    { "ER_WRONG_NAME_FOR_INDEX",1280 },
 
315
    { "ER_WRONG_NAME_FOR_CATALOG",1281 },
 
316
    { "ER_WARN_QC_RESIZE",1282 },
 
317
    { "ER_BAD_FT_COLUMN",1283 },
 
318
    { "ER_UNKNOWN_KEY_CACHE",1284 },
 
319
    { "ER_WARN_HOSTNAME_WONT_WORK",1285 },
 
320
    { "ER_UNKNOWN_STORAGE_ENGINE",1286 },
 
321
    { "ER_WARN_DEPRECATED_SYNTAX",1287 },
 
322
    { "ER_NON_UPDATABLE_TABLE",1288 },
 
323
    { "ER_FEATURE_DISABLED",1289 },
 
324
    { "ER_OPTION_PREVENTS_STATEMENT",1290 },
 
325
    { "ER_DUPLICATED_VALUE_IN_TYPE",1291 },
 
326
    { "ER_TRUNCATED_WRONG_VALUE",1292 },
 
327
    { "ER_TOO_MUCH_AUTO_TIMESTAMP_COLS",1293 },
 
328
    { "ER_INVALID_ON_UPDATE",1294 },
 
329
    { "ER_UNSUPPORTED_PS",1295 },
 
330
    { "ER_GET_ERRMSG",1296 },
 
331
    { "ER_GET_TEMPORARY_ERRMSG",1297 },
 
332
    { "ER_UNKNOWN_TIME_ZONE",1298 },
 
333
    { "ER_WARN_INVALID_TIMESTAMP",1299 },
 
334
    { "ER_INVALID_CHARACTER_STRING",1300 },
 
335
    { "ER_WARN_ALLOWED_PACKET_OVERFLOWED",1301 },
 
336
    { "ER_CONFLICTING_DECLARATIONS",1302 },
 
337
    { "ER_SP_NO_RECURSIVE_CREATE",1303 },
 
338
    { "ER_SP_ALREADY_EXISTS",1304 },
 
339
    { "ER_SP_DOES_NOT_EXIST",1305 },
 
340
    { "ER_SP_DROP_FAILED",1306 },
 
341
    { "ER_SP_STORE_FAILED",1307 },
 
342
    { "ER_SP_LILABEL_MISMATCH",1308 },
 
343
    { "ER_SP_LABEL_REDEFINE",1309 },
 
344
    { "ER_SP_LABEL_MISMATCH",1310 },
 
345
    { "ER_SP_UNINIT_VAR",1311 },
 
346
    { "ER_SP_BADSELECT",1312 },
 
347
    { "ER_SP_BADRETURN",1313 },
 
348
    { "ER_SP_BADSTATEMENT",1314 },
 
349
    { "ER_UPDATE_LOG_DEPRECATED_IGNORED",1315 },
 
350
    { "ER_UPDATE_LOG_DEPRECATED_TRANSLATED",1316 },
 
351
    { "ER_QUERY_INTERRUPTED",1317 },
 
352
    { "ER_SP_WRONG_NO_OF_ARGS",1318 },
 
353
    { "ER_SP_COND_MISMATCH",1319 },
 
354
    { "ER_SP_NORETURN",1320 },
 
355
    { "ER_SP_NORETURNEND",1321 },
 
356
    { "ER_SP_BAD_CURSOR_QUERY",1322 },
 
357
    { "ER_SP_BAD_CURSOR_SELECT",1323 },
 
358
    { "ER_SP_CURSOR_MISMATCH",1324 },
 
359
    { "ER_SP_CURSOR_ALREADY_OPEN",1325 },
 
360
    { "ER_SP_CURSOR_NOT_OPEN",1326 },
 
361
    { "ER_SP_UNDECLARED_VAR",1327 },
 
362
    { "ER_SP_WRONG_NO_OF_FETCH_ARGS",1328 },
 
363
    { "ER_SP_FETCH_NO_DATA",1329 },
 
364
    { "ER_SP_DUP_PARAM",1330 },
 
365
    { "ER_SP_DUP_VAR",1331 },
 
366
    { "ER_SP_DUP_COND",1332 },
 
367
    { "ER_SP_DUP_CURS",1333 },
 
368
    { "ER_SP_CANT_ALTER",1334 },
 
369
    { "ER_SP_SUBSELECT_NYI",1335 },
 
370
    { "ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG",1336 },
 
371
    { "ER_SP_VARCOND_AFTER_CURSHNDLR",1337 },
 
372
    { "ER_SP_CURSOR_AFTER_HANDLER",1338 },
 
373
    { "ER_SP_CASE_NOT_FOUND",1339 },
 
374
    { "ER_FPARSER_TOO_BIG_FILE",1340 },
 
375
    { "ER_FPARSER_BAD_HEADER",1341 },
 
376
    { "ER_FPARSER_EOF_IN_COMMENT",1342 },
 
377
    { "ER_FPARSER_ERROR_IN_PARAMETER",1343 },
 
378
    { "ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER",1344 },
 
379
    { "ER_VIEW_NO_EXPLAIN",1345 },
 
380
    { "ER_FRM_UNKNOWN_TYPE",1346 },
 
381
    { "ER_WRONG_OBJECT",1347 },
 
382
    { "ER_NONUPDATEABLE_COLUMN",1348 },
 
383
    { "ER_VIEW_SELECT_DERIVED",1349 },
 
384
    { "ER_VIEW_SELECT_CLAUSE",1350 },
 
385
    { "ER_VIEW_SELECT_VARIABLE",1351 },
 
386
    { "ER_VIEW_SELECT_TMPTABLE",1352 },
 
387
    { "ER_VIEW_WRONG_LIST",1353 },
 
388
    { "ER_WARN_VIEW_MERGE",1354 },
 
389
    { "ER_WARN_VIEW_WITHOUT_KEY",1355 },
 
390
    { "ER_VIEW_INVALID",1356 },
 
391
    { "ER_SP_NO_DROP_SP",1357 },
 
392
    { "ER_SP_GOTO_IN_HNDLR",1358 },
 
393
    { "ER_TRG_ALREADY_EXISTS",1359 },
 
394
    { "ER_TRG_DOES_NOT_EXIST",1360 },
 
395
    { "ER_TRG_ON_VIEW_OR_TEMP_TABLE",1361 },
 
396
    { "ER_TRG_CANT_CHANGE_ROW",1362 },
 
397
    { "ER_TRG_NO_SUCH_ROW_IN_TRG",1363 },
 
398
    { "ER_NO_DEFAULT_FOR_FIELD",1364 },
 
399
    { "ER_DIVISION_BY_ZERO",1365 },
 
400
    { "ER_TRUNCATED_WRONG_VALUE_FOR_FIELD",1366 },
 
401
    { "ER_ILLEGAL_VALUE_FOR_TYPE",1367 },
 
402
    { "ER_VIEW_NONUPD_CHECK",1368 },
 
403
    { "ER_VIEW_CHECK_FAILED",1369 },
 
404
    { "ER_PROCACCESS_DENIED_ERROR",1370 },
 
405
    { "ER_RELAY_LOG_FAIL",1371 },
 
406
    { "ER_PASSWD_LENGTH",1372 },
 
407
    { "ER_UNKNOWN_TARGET_BINLOG",1373 },
 
408
    { "ER_IO_ERR_LOG_INDEX_READ",1374 },
 
409
    { "ER_BINLOG_PURGE_PROHIBITED",1375 },
 
410
    { "ER_FSEEK_FAIL",1376 },
 
411
    { "ER_BINLOG_PURGE_FATAL_ERR",1377 },
 
412
    { "ER_LOG_IN_USE",1378 },
 
413
    { "ER_LOG_PURGE_UNKNOWN_ERR",1379 },
 
414
    { "ER_RELAY_LOG_INIT",1380 },
 
415
    { "ER_NO_BINARY_LOGGING",1381 },
 
416
    { "ER_RESERVED_SYNTAX",1382 },
 
417
    { "ER_WSAS_FAILED",1383 },
 
418
    { "ER_DIFF_GROUPS_PROC",1384 },
 
419
    { "ER_NO_GROUP_FOR_PROC",1385 },
 
420
    { "ER_ORDER_WITH_PROC",1386 },
 
421
    { "ER_LOGGING_PROHIBIT_CHANGING_OF",1387 },
 
422
    { "ER_NO_FILE_MAPPING",1388 },
 
423
    { "ER_WRONG_MAGIC",1389 },
 
424
    { "ER_PS_MANY_PARAM",1390 },
 
425
    { "ER_KEY_PART_0",1391 },
 
426
    { "ER_VIEW_CHECKSUM",1392 },
 
427
    { "ER_VIEW_MULTIUPDATE",1393 },
 
428
    { "ER_VIEW_NO_INSERT_FIELD_LIST",1394 },
 
429
    { "ER_VIEW_DELETE_MERGE_VIEW",1395 },
 
430
    { "ER_CANNOT_USER",1396 },
 
431
    { "ER_XAER_NOTA",1397 },
 
432
    { "ER_XAER_INVAL",1398 },
 
433
    { "ER_XAER_RMFAIL",1399 },
 
434
    { "ER_XAER_OUTSIDE",1400 },
 
435
    { "ER_XAER_RMERR",1401 },
 
436
    { "ER_XA_RBROLLBACK",1402 },
 
437
    { "ER_NONEXISTING_PROC_GRANT",1403 },
 
438
    { "ER_PROC_AUTO_GRANT_FAIL",1404 },
 
439
    { "ER_PROC_AUTO_REVOKE_FAIL",1405 },
 
440
    { "ER_DATA_TOO_LONG",1406 },
 
441
    { "ER_SP_BAD_SQLSTATE",1407 },
 
442
    { "ER_STARTUP",1408 },
 
443
    { "ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR",1409 },
 
444
    { "ER_CANT_CREATE_USER_WITH_GRANT",1410 },
 
445
    { "ER_WRONG_VALUE_FOR_TYPE",1411 },
 
446
    { "ER_TABLE_DEF_CHANGED",1412 },
 
447
    { "ER_SP_DUP_HANDLER",1413 },
 
448
    { "ER_SP_NOT_VAR_ARG",1414 },
 
449
    { "ER_SP_NO_RETSET",1415 },
 
450
    { "ER_CANT_CREATE_GEOMETRY_OBJECT",1416 },
 
451
    { "ER_FAILED_ROUTINE_BREAK_BINLOG",1417 },
 
452
    { "ER_BINLOG_UNSAFE_ROUTINE",1418 },
 
453
    { "ER_BINLOG_CREATE_ROUTINE_NEED_SUPER",1419 },
 
454
    { "ER_EXEC_STMT_WITH_OPEN_CURSOR",1420 },
 
455
    { "ER_STMT_HAS_NO_OPEN_CURSOR",1421 },
 
456
    { "ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG",1422 },
 
457
    { "ER_NO_DEFAULT_FOR_VIEW_FIELD",1423 },
 
458
    { "ER_SP_NO_RECURSION",1424 },
 
459
    { "ER_TOO_BIG_SCALE",1425 },
 
460
    { "ER_TOO_BIG_PRECISION",1426 },
 
461
    { "ER_M_BIGGER_THAN_D",1427 },
 
462
    { "ER_WRONG_LOCK_OF_SYSTEM_TABLE",1428 },
 
463
    { "ER_CONNECT_TO_FOREIGN_DATA_SOURCE",1429 },
 
464
    { "ER_QUERY_ON_FOREIGN_DATA_SOURCE",1430 },
 
465
    { "ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST",1431 },
 
466
    { "ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE",1432 },
 
467
    { "ER_FOREIGN_DATA_STRING_INVALID",1433 },
 
468
    { "ER_CANT_CREATE_FEDERATED_TABLE",1434 },
 
469
    { "ER_TRG_IN_WRONG_SCHEMA",1435 },
 
470
    { "ER_STACK_OVERRUN_NEED_MORE",1436 },
 
471
    { "ER_TOO_LONG_BODY",1437 },
 
472
    { "ER_WARN_CANT_DROP_DEFAULT_KEYCACHE",1438 },
 
473
    { "ER_TOO_BIG_DISPLAYWIDTH",1439 },
 
474
    { "ER_XAER_DUPID",1440 },
 
475
    { "ER_DATETIME_FUNCTION_OVERFLOW",1441 },
 
476
    { "ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG",1442 },
 
477
    { "ER_VIEW_PREVENT_UPDATE",1443 },
 
478
    { "ER_PS_NO_RECURSION",1444 },
 
479
    { "ER_SP_CANT_SET_AUTOCOMMIT",1445 },
 
480
    { "ER_MALFORMED_DEFINER",1446 },
 
481
    { "ER_VIEW_FRM_NO_USER",1447 },
 
482
    { "ER_VIEW_OTHER_USER",1448 },
 
483
    { "ER_NO_SUCH_USER",1449 },
 
484
    { "ER_FORBID_SCHEMA_CHANGE",1450 },
 
485
    { "ER_ROW_IS_REFERENCED_2",1451 },
 
486
    { "ER_NO_REFERENCED_ROW_2",1452 },
 
487
    { "ER_SP_BAD_VAR_SHADOW",1453 },
 
488
    { "ER_TRG_NO_DEFINER",1454 },
 
489
    { "ER_OLD_FILE_FORMAT",1455 },
 
490
    { "ER_SP_RECURSION_LIMIT",1456 },
 
491
    { "ER_SP_PROC_TABLE_CORRUPT",1457 },
 
492
    { "ER_SP_WRONG_NAME",1458 },
 
493
    { "ER_TABLE_NEEDS_UPGRADE",1459 },
 
494
    { "ER_SP_NO_AGGREGATE",1460 },
 
495
    { "ER_MAX_PREPARED_STMT_COUNT_REACHED",1461 },
 
496
    { "ER_VIEW_RECURSIVE",1462 },
 
497
    { "ER_NON_GROUPING_FIELD_USED",1463 },
 
498
    { "ER_TABLE_CANT_HANDLE_SPKEYS",1464 },
 
499
    { "ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA",1465 },
 
500
    { "ER_REMOVED_SPACES",1466 },
 
501
    { "ER_AUTOINC_READ_FAILED",1467 },
 
502
    { "ER_USERNAME",1468 },
 
503
    { "ER_HOSTNAME",1469 },
 
504
    { "ER_WRONG_STRING_LENGTH",1470 },
 
505
    { "ER_NON_INSERTABLE_TABLE",1471 },
 
506
    { "ER_ADMIN_WRONG_MRG_TABLE",1472 },
 
507
    { "ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT",1473 },
 
508
    { "ER_NAME_BECOMES_EMPTY",1474 },
 
509
    { "ER_AMBIGUOUS_FIELD_TERM",1475 },
 
510
    { "ER_FOREIGN_SERVER_EXISTS",1476 },
 
511
    { "ER_FOREIGN_SERVER_DOESNT_EXIST",1477 },
 
512
    { "ER_ILLEGAL_HA_CREATE_OPTION",1478 },
 
513
    { "ER_PARTITION_REQUIRES_VALUES_ERROR",1479 },
 
514
    { "ER_PARTITION_WRONG_VALUES_ERROR",1480 },
 
515
    { "ER_PARTITION_MAXVALUE_ERROR",1481 },
 
516
    { "ER_PARTITION_SUBPARTITION_ERROR",1482 },
 
517
    { "ER_PARTITION_SUBPART_MIX_ERROR",1483 },
 
518
    { "ER_PARTITION_WRONG_NO_PART_ERROR",1484 },
 
519
    { "ER_PARTITION_WRONG_NO_SUBPART_ERROR",1485 },
 
520
    { "ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR",1486 },
 
521
    { "ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR",1487 },
 
522
    { "ER_FIELD_NOT_FOUND_PART_ERROR",1488 },
 
523
    { "ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR",1489 },
 
524
    { "ER_INCONSISTENT_PARTITION_INFO_ERROR",1490 },
 
525
    { "ER_PARTITION_FUNC_NOT_ALLOWED_ERROR",1491 },
 
526
    { "ER_PARTITIONS_MUST_BE_DEFINED_ERROR",1492 },
 
527
    { "ER_RANGE_NOT_INCREASING_ERROR",1493 },
 
528
    { "ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR",1494 },
 
529
    { "ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR",1495 },
 
530
    { "ER_PARTITION_ENTRY_ERROR",1496 },
 
531
    { "ER_MIX_HANDLER_ERROR",1497 },
 
532
    { "ER_PARTITION_NOT_DEFINED_ERROR",1498 },
 
533
    { "ER_TOO_MANY_PARTITIONS_ERROR",1499 },
 
534
    { "ER_SUBPARTITION_ERROR",1500 },
 
535
    { "ER_CANT_CREATE_HANDLER_FILE",1501 },
 
536
    { "ER_BLOB_FIELD_IN_PART_FUNC_ERROR",1502 },
 
537
    { "ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF",1503 },
 
538
    { "ER_NO_PARTS_ERROR",1504 },
 
539
    { "ER_PARTITION_MGMT_ON_NONPARTITIONED",1505 },
 
540
    { "ER_FOREIGN_KEY_ON_PARTITIONED",1506 },
 
541
    { "ER_DROP_PARTITION_NON_EXISTENT",1507 },
 
542
    { "ER_DROP_LAST_PARTITION",1508 },
 
543
    { "ER_COALESCE_ONLY_ON_HASH_PARTITION",1509 },
 
544
    { "ER_REORG_HASH_ONLY_ON_SAME_NO",1510 },
 
545
    { "ER_REORG_NO_PARAM_ERROR",1511 },
 
546
    { "ER_ONLY_ON_RANGE_LIST_PARTITION",1512 },
 
547
    { "ER_ADD_PARTITION_SUBPART_ERROR",1513 },
 
548
    { "ER_ADD_PARTITION_NO_NEW_PARTITION",1514 },
 
549
    { "ER_COALESCE_PARTITION_NO_PARTITION",1515 },
 
550
    { "ER_REORG_PARTITION_NOT_EXIST",1516 },
 
551
    { "ER_SAME_NAME_PARTITION",1517 },
 
552
    { "ER_NO_BINLOG_ERROR",1518 },
 
553
    { "ER_CONSECUTIVE_REORG_PARTITIONS",1519 },
 
554
    { "ER_REORG_OUTSIDE_RANGE",1520 },
 
555
    { "ER_PARTITION_FUNCTION_FAILURE",1521 },
 
556
    { "ER_PART_STATE_ERROR",1522 },
 
557
    { "ER_LIMITED_PART_RANGE",1523 },
 
558
    { "ER_PLUGIN_IS_NOT_LOADED",1524 },
 
559
    { "ER_WRONG_VALUE",1525 },
 
560
    { "ER_NO_PARTITION_FOR_GIVEN_VALUE",1526 },
 
561
    { "ER_FILEGROUP_OPTION_ONLY_ONCE",1527 },
 
562
    { "ER_CREATE_FILEGROUP_FAILED",1528 },
 
563
    { "ER_DROP_FILEGROUP_FAILED",1529 },
 
564
    { "ER_TABLESPACE_AUTO_EXTEND_ERROR",1530 },
 
565
    { "ER_WRONG_SIZE_NUMBER",1531 },
 
566
    { "ER_SIZE_OVERFLOW_ERROR",1532 },
 
567
    { "ER_ALTER_FILEGROUP_FAILED",1533 },
 
568
    { "ER_BINLOG_ROW_LOGGING_FAILED",1534 },
 
569
    { "ER_BINLOG_ROW_WRONG_TABLE_DEF",1535 },
 
570
    { "ER_BINLOG_ROW_RBR_TO_SBR",1536 },
 
571
    { "ER_EVENT_ALREADY_EXISTS",1537 },
 
572
    { "ER_EVENT_STORE_FAILED",1538 },
 
573
    { "ER_EVENT_DOES_NOT_EXIST",1539 },
 
574
    { "ER_EVENT_CANT_ALTER",1540 },
 
575
    { "ER_EVENT_DROP_FAILED",1541 },
 
576
    { "ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG",1542 },
 
577
    { "ER_EVENT_ENDS_BEFORE_STARTS",1543 },
 
578
    { "ER_EVENT_EXEC_TIME_IN_THE_PAST",1544 },
 
579
    { "ER_EVENT_OPEN_TABLE_FAILED",1545 },
 
580
    { "ER_EVENT_NEITHER_M_EXPR_NOR_M_AT",1546 },
 
581
    { "ER_COL_COUNT_DOESNT_MATCH_CORRUPTED",1547 },
 
582
    { "ER_CANNOT_LOAD_FROM_TABLE",1548 },
 
583
    { "ER_EVENT_CANNOT_DELETE",1549 },
 
584
    { "ER_EVENT_COMPILE_ERROR",1550 },
 
585
    { "ER_EVENT_SAME_NAME",1551 },
 
586
    { "ER_EVENT_DATA_TOO_LONG",1552 },
 
587
    { "ER_DROP_INDEX_FK",1553 },
 
588
    { "ER_WARN_DEPRECATED_SYNTAX_WITH_VER",1554 },
 
589
    { "ER_CANT_WRITE_LOCK_LOG_TABLE",1555 },
 
590
    { "ER_CANT_LOCK_LOG_TABLE",1556 },
 
591
    { "ER_FOREIGN_DUPLICATE_KEY",1557 },
 
592
    { "ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE",1558 },
 
593
    { "ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR",1559 },
 
594
    { "ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT",1560 },
 
595
    { "ER_NDB_CANT_SWITCH_BINLOG_FORMAT",1561 },
 
596
    { "ER_PARTITION_NO_TEMPORARY",1562 },
 
597
    { "ER_PARTITION_CONST_DOMAIN_ERROR",1563 },
 
598
    { "ER_PARTITION_FUNCTION_IS_NOT_ALLOWED",1564 },
 
599
    { "ER_DDL_LOG_ERROR",1565 },
 
600
    { "ER_NULL_IN_VALUES_LESS_THAN",1566 },
 
601
    { "ER_WRONG_PARTITION_NAME",1567 },
 
602
    { "ER_CANT_CHANGE_TX_ISOLATION",1568 },
 
603
    { "ER_DUP_ENTRY_AUTOINCREMENT_CASE",1569 },
 
604
    { "ER_EVENT_MODIFY_QUEUE_ERROR",1570 },
 
605
    { "ER_EVENT_SET_VAR_ERROR",1571 },
 
606
    { "ER_PARTITION_MERGE_ERROR",1572 },
 
607
    { "ER_CANT_ACTIVATE_LOG",1573 },
 
608
    { "ER_RBR_NOT_AVAILABLE",1574 },
 
609
    { "ER_BASE64_DECODE_ERROR",1575 },
 
610
    { "ER_EVENT_RECURSION_FORBIDDEN",1576 },
 
611
    { "ER_EVENTS_DB_ERROR",1577 },
 
612
    { "ER_ONLY_INTEGERS_ALLOWED",1578 },
 
613
    { "ER_UNSUPORTED_LOG_ENGINE",1579 },
 
614
    { "ER_BAD_LOG_STATEMENT",1580 },
 
615
    { "ER_CANT_RENAME_LOG_TABLE",1581 },
 
616
    { "ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT",1582 },
 
617
    { "ER_WRONG_PARAMETERS_TO_NATIVE_FCT",1583 },
 
618
    { "ER_WRONG_PARAMETERS_TO_STORED_FCT",1584 },
 
619
    { "ER_NATIVE_FCT_NAME_COLLISION",1585 },
 
620
    { "ER_DUP_ENTRY_WITH_KEY_NAME",1586 },
 
621
    { "ER_BINLOG_PURGE_EMFILE",1587 },
 
622
    { "ER_EVENT_CANNOT_CREATE_IN_THE_PAST",1588 },
 
623
    { "ER_EVENT_CANNOT_ALTER_IN_THE_PAST",1589 },
 
624
    { "ER_SLAVE_INCIDENT",1590 },
 
625
    { "ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT",1591 },
 
626
    { "ER_BINLOG_UNSAFE_STATEMENT",1592 },
 
627
    { "ER_SLAVE_FATAL_ERROR",1593 },
 
628
    { "ER_SLAVE_RELAY_LOG_READ_FAILURE",1594 },
 
629
    { "ER_SLAVE_RELAY_LOG_WRITE_FAILURE",1595 },
 
630
    { "ER_SLAVE_CREATE_EVENT_FAILURE",1596 },
 
631
    { "ER_SLAVE_MASTER_COM_FAILURE",1597 },
 
632
    { "ER_BINLOG_LOGGING_IMPOSSIBLE",1598 },
 
633
    { "ER_VIEW_NO_CREATION_CTX",1599 },
 
634
    { "ER_VIEW_INVALID_CREATION_CTX",1600 },
 
635
    { "ER_SR_INVALID_CREATION_CTX",1601 },
 
636
    { "ER_TRG_CORRUPTED_FILE",1602 },
 
637
    { "ER_TRG_NO_CREATION_CTX",1603 },
 
638
    { "ER_TRG_INVALID_CREATION_CTX",1604 },
 
639
    { "ER_EVENT_INVALID_CREATION_CTX",1605 },
 
640
    { "ER_TRG_CANT_OPEN_TABLE",1606 },
 
641
    { "ER_CANT_CREATE_SROUTINE",1607 },
 
642
    { "ER_SLAVE_AMBIGOUS_EXEC_MODE",1608 },
 
643
    { "ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT",1609 },
 
644
    { "ER_SLAVE_CORRUPT_EVENT",1610 },
 
645
    { "ER_LOAD_DATA_INVALID_COLUMN",1611 },
 
646
    { "ER_LOG_PURGE_NO_FILE",1612 },
 
647
    { "ER_WARN_AUTO_CONVERT_LOCK",1613 },
 
648
    { "ER_NO_AUTO_CONVERT_LOCK_STRICT",1614 },
 
649
    { "ER_NO_AUTO_CONVERT_LOCK_TRANSACTION",1615 },
 
650
    { "ER_NO_STORAGE_ENGINE",1616 },
 
651
    { "ER_BACKUP_BACKUP_START",1617 },
 
652
    { "ER_BACKUP_BACKUP_DONE",1618 },
 
653
    { "ER_BACKUP_RESTORE_START",1619 },
 
654
    { "ER_BACKUP_RESTORE_DONE",1620 },
 
655
    { "ER_BACKUP_NOTHING_TO_BACKUP",1621 },
 
656
    { "ER_BACKUP_CANNOT_INCLUDE_DB",1622 },
 
657
    { "ER_BACKUP_BACKUP",1623 },
 
658
    { "ER_BACKUP_RESTORE",1624 },
 
659
    { "ER_BACKUP_RUNNING",1625 },
 
660
    { "ER_BACKUP_BACKUP_PREPARE",1626 },
 
661
    { "ER_BACKUP_RESTORE_PREPARE",1627 },
 
662
    { "ER_BACKUP_INVALID_LOC",1628 },
 
663
    { "ER_BACKUP_READ_LOC",1629 },
 
664
    { "ER_BACKUP_WRITE_LOC",1630 },
 
665
    { "ER_BACKUP_LIST_DBS",1631 },
 
666
    { "ER_BACKUP_LIST_TABLES",1632 },
 
667
    { "ER_BACKUP_LIST_DB_TABLES",1633 },
 
668
    { "ER_BACKUP_SKIP_VIEW",1634 },
 
669
    { "ER_BACKUP_NO_ENGINE",1635 },
 
670
    { "ER_BACKUP_TABLE_OPEN",1636 },
 
671
    { "ER_BACKUP_READ_HEADER",1637 },
 
672
    { "ER_BACKUP_WRITE_HEADER",1638 },
 
673
    { "ER_BACKUP_NO_BACKUP_DRIVER",1639 },
 
674
    { "ER_BACKUP_NOT_ACCEPTED",1640 },
 
675
    { "ER_BACKUP_CREATE_BACKUP_DRIVER",1641 },
 
676
    { "ER_BACKUP_CREATE_RESTORE_DRIVER",1642 },
 
677
    { "ER_BACKUP_TOO_MANY_IMAGES",1643 },
 
678
    { "ER_BACKUP_WRITE_META",1644 },
 
679
    { "ER_BACKUP_READ_META",1645 },
 
680
    { "ER_BACKUP_CREATE_META",1646 },
 
681
    { "ER_BACKUP_GET_BUF",1647 },
 
682
    { "ER_BACKUP_WRITE_DATA",1648 },
 
683
    { "ER_BACKUP_READ_DATA",1649 },
 
684
    { "ER_BACKUP_NEXT_CHUNK",1650 },
 
685
    { "ER_BACKUP_INIT_BACKUP_DRIVER",1651 },
 
686
    { "ER_BACKUP_INIT_RESTORE_DRIVER",1652 },
 
687
    { "ER_BACKUP_STOP_BACKUP_DRIVER",1653 },
 
688
    { "ER_BACKUP_STOP_RESTORE_DRIVERS",1654 },
 
689
    { "ER_BACKUP_PREPARE_DRIVER",1655 },
 
690
    { "ER_BACKUP_CREATE_VP",1656 },
 
691
    { "ER_BACKUP_UNLOCK_DRIVER",1657 },
 
692
    { "ER_BACKUP_CANCEL_BACKUP",1658 },
 
693
    { "ER_BACKUP_CANCEL_RESTORE",1659 },
 
694
    { "ER_BACKUP_GET_DATA",1660 },
 
695
    { "ER_BACKUP_SEND_DATA",1661 },
 
696
    { "ER_BACKUP_SEND_DATA_RETRY",1662 },
 
697
    { "ER_BACKUP_OPEN_TABLES",1663 },
 
698
    { "ER_BACKUP_THREAD_INIT",1664 },
 
699
    { "ER_BACKUP_PROGRESS_TABLES",1665 },
 
700
    { "ER_TABLESPACE_EXIST",1666 },
 
701
    { "ER_NO_SUCH_TABLESPACE",1667 },
 
702
    { "ER_SLAVE_HEARTBEAT_FAILURE",1668 },
 
703
    { "ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE",1669 },
 
704
    { "ER_BACKUP_LOG_WRITE_ERROR",1670 },
 
705
    { "ER_TABLESPACE_NOT_EMPTY",1671 },
 
706
    { "ER_BACKUP_TS_CHANGE",1672 },
 
707
    { "ER_VCOL_BASED_ON_VCOL",1673 },
 
708
    { "ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED",1674 },
 
709
    { "ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN",1675 },
 
710
    { "ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN",1676 },
 
711
    { "ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN",1677 },
 
712
    { "ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN",1678 },
 
713
    { "ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN",1679 },
 
714
    { "ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN",1680 },
 
715
    { "ER_CONST_EXPR_IN_VCOL",1681 },
 
716
    { 0, 0 }
 
717
  };
 
718
 
 
719
  for (struct st_error *e=st_error_names;e->name;e++)
 
720
  {
 
721
    error_code_map.insert(pair<string, uint32_t>(e->name,e->code));
 
722
  }
 
723
}
 
724
 
 
725
uint32_t ErrorCodes::getErrorCode(const string &error_msg)
 
726
{
 
727
  return error_code_map[error_msg];
 
728
}