1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 MySQL
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.
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.
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
23
#include <client/errname.h>
27
ErrorCodes::ErrorCodes()
31
static struct st_error
40
{ "ER_CANT_CREATE_FILE",1004 },
41
{ "ER_CANT_CREATE_TABLE",1005 },
42
{ "ER_CANT_CREATE_DB",1006 },
43
{ "ER_DB_CREATE_EXISTS",1007 },
44
{ "ER_DB_DROP_EXISTS",1008 },
45
{ "ER_UNUSED1009",1009 },
46
{ "ER_UNUSED1010",1010 },
47
{ "ER_CANT_DELETE_FILE",1011 },
48
{ "ER_UNUSED1012",1012 },
49
{ "ER_CANT_GET_STAT",1013 },
50
{ "ER_UNUSED1014",1014 },
51
{ "ER_CANT_LOCK",1015 },
52
{ "ER_CANT_OPEN_FILE",1016 },
53
{ "ER_FILE_NOT_FOUND",1017 },
54
{ "ER_CANT_READ_DIR",1018 },
55
{ "ER_UNUSED1019",1019 },
56
{ "ER_CHECKREAD",1020 },
57
{ "ER_DISK_FULL",1021 },
58
{ "ER_DUP_KEY",1022 },
59
{ "ER_ERROR_ON_CLOSE",1023 },
60
{ "ER_ERROR_ON_READ",1024 },
61
{ "ER_ERROR_ON_RENAME",1025 },
62
{ "ER_ERROR_ON_WRITE",1026 },
63
{ "ER_FILE_USED",1027 },
64
{ "ER_FILSORT_ABORT",1028 },
65
{ "ER_UNUSED1029",1029 },
66
{ "ER_GET_ERRNO",1030 },
67
{ "ER_ILLEGAL_HA",1031 },
68
{ "ER_KEY_NOT_FOUND",1032 },
69
{ "ER_NOT_FORM_FILE",1033 },
70
{ "ER_NOT_KEYFILE",1034 },
71
{ "ER_OLD_KEYFILE",1035 },
72
{ "ER_OPEN_AS_READONLY",1036 },
73
{ "ER_OUTOFMEMORY",1037 },
74
{ "ER_OUT_OF_SORTMEMORY",1038 },
75
{ "ER_UNEXPECTED_EOF",1039 },
76
{ "ER_CON_COUNT_ERROR",1040 },
77
{ "ER_OUT_OF_RESOURCES",1041 },
78
{ "ER_BAD_HOST_ERROR",1042 },
79
{ "ER_HANDSHAKE_ERROR",1043 },
80
{ "ER_DBACCESS_DENIED_ERROR",1044 },
81
{ "ER_ACCESS_DENIED_ERROR",1045 },
82
{ "ER_NO_DB_ERROR",1046 },
83
{ "ER_UNKNOWN_COM_ERROR",1047 },
84
{ "ER_BAD_NULL_ERROR",1048 },
85
{ "ER_BAD_DB_ERROR",1049 },
86
{ "ER_TABLE_EXISTS_ERROR",1050 },
87
{ "ER_BAD_TABLE_ERROR",1051 },
88
{ "ER_NON_UNIQ_ERROR",1052 },
89
{ "ER_SERVER_SHUTDOWN",1053 },
90
{ "ER_BAD_FIELD_ERROR",1054 },
91
{ "ER_WRONG_FIELD_WITH_GROUP",1055 },
92
{ "ER_WRONG_GROUP_FIELD",1056 },
93
{ "ER_WRONG_SUM_SELECT",1057 },
94
{ "ER_WRONG_VALUE_COUNT",1058 },
95
{ "ER_TOO_LONG_IDENT",1059 },
96
{ "ER_DUP_FIELDNAME",1060 },
97
{ "ER_DUP_KEYNAME",1061 },
98
{ "ER_DUP_ENTRY",1062 },
99
{ "ER_WRONG_FIELD_SPEC",1063 },
100
{ "ER_PARSE_ERROR",1064 },
101
{ "ER_EMPTY_QUERY",1065 },
102
{ "ER_NONUNIQ_TABLE",1066 },
103
{ "ER_INVALID_DEFAULT",1067 },
104
{ "ER_MULTIPLE_PRI_KEY",1068 },
105
{ "ER_TOO_MANY_KEYS",1069 },
106
{ "ER_TOO_MANY_KEY_PARTS",1070 },
107
{ "ER_TOO_LONG_KEY",1071 },
108
{ "ER_KEY_COLUMN_DOES_NOT_EXITS",1072 },
109
{ "ER_BLOB_USED_AS_KEY",1073 },
110
{ "ER_TOO_BIG_FIELDLENGTH",1074 },
111
{ "ER_WRONG_AUTO_KEY",1075 },
112
{ "ER_UNUSED1076",1076 },
113
{ "ER_NORMAL_SHUTDOWN",1077 },
114
{ "ER_GOT_SIGNAL",1078 },
115
{ "ER_SHUTDOWN_COMPLETE",1079 },
116
{ "ER_FORCING_CLOSE",1080 },
117
{ "ER_IPSOCK_ERROR",1081 },
118
{ "ER_NO_SUCH_INDEX",1082 },
119
{ "ER_WRONG_FIELD_TERMINATORS",1083 },
120
{ "ER_BLOBS_AND_NO_TERMINATED",1084 },
121
{ "ER_TEXTFILE_NOT_READABLE",1085 },
122
{ "ER_FILE_EXISTS_ERROR",1086 },
123
{ "ER_LOAD_INFO",1087 },
124
{ "ER_UNUSED1088",1088 },
125
{ "ER_WRONG_SUB_KEY",1089 },
126
{ "ER_CANT_REMOVE_ALL_FIELDS",1090 },
127
{ "ER_CANT_DROP_FIELD_OR_KEY",1091 },
128
{ "ER_INSERT_INFO",1092 },
129
{ "ER_UPDATE_TABLE_USED",1093 },
130
{ "ER_NO_SUCH_THREAD",1094 },
131
{ "ER_KILL_DENIED_ERROR",1095 },
132
{ "ER_NO_TABLES_USED",1096 },
133
{ "ER_UNUSED1097",1097 },
134
{ "ER_UNUSED1098",1098 },
135
{ "ER_UNUSED1099",1099 },
136
{ "ER_UNUSED1100",1100 },
137
{ "ER_BLOB_CANT_HAVE_DEFAULT",1101 },
138
{ "ER_WRONG_DB_NAME",1102 },
139
{ "ER_WRONG_TABLE_NAME",1103 },
140
{ "ER_TOO_BIG_SELECT",1104 },
141
{ "ER_UNKNOWN_ERROR",1105 },
142
{ "ER_UNKNOWN_PROCEDURE",1106 },
143
{ "ER_WRONG_PARAMCOUNT_TO_PROCEDURE",1107 },
144
{ "ER_UNUSED1108",1108 },
145
{ "ER_UNKNOWN_TABLE",1109 },
146
{ "ER_FIELD_SPECIFIED_TWICE",1110 },
147
{ "ER_INVALID_GROUP_FUNC_USE",1111 },
148
{ "ER_UNSUPPORTED_EXTENSION",1112 },
149
{ "ER_TABLE_MUST_HAVE_COLUMNS",1113 },
150
{ "ER_RECORD_FILE_FULL",1114 },
151
{ "ER_UNUSED1115",1115 },
152
{ "ER_TOO_MANY_TABLES",1116 },
153
{ "ER_TOO_MANY_FIELDS",1117 },
154
{ "ER_TOO_BIG_ROWSIZE",1118 },
155
{ "ER_UNUSED1119",1119 },
156
{ "ER_WRONG_OUTER_JOIN",1120 },
157
{ "ER_NULL_COLUMN_IN_INDEX",1121 },
158
{ "ER_UNUSED1122",1122 },
159
{ "ER_UNUSED1123",1123 },
160
{ "ER_PLUGIN_NO_PATHS",1124 },
161
{ "ER_PLUGIN_EXISTS",1125 },
162
{ "ER_CANT_OPEN_LIBRARY",1126 },
163
{ "ER_CANT_FIND_DL_ENTRY",1127 },
164
{ "ER_UNUSED1128",1128 },
165
{ "ER_UNUSED1129",1129 },
166
{ "ER_UNUSED1130",1130 },
167
{ "ER_UNUSED1131",1131 },
168
{ "ER_UNUSED1132",1132 },
169
{ "ER_UNUSED1133",1133 },
170
{ "ER_UPDATE_INFO",1134 },
171
{ "ER_CANT_CREATE_THREAD",1135 },
172
{ "ER_WRONG_VALUE_COUNT_ON_ROW",1136 },
173
{ "ER_CANT_REOPEN_TABLE",1137 },
174
{ "ER_UNUSED1138",1138 },
175
{ "ER_UNUSED1139",1139 },
176
{ "ER_MIX_OF_GROUP_FUNC_AND_FIELDS",1140 },
177
{ "ER_UNUSED1141",1141 },
178
{ "ER_UNUSED1142",1142 },
179
{ "ER_UNUSED1143",1143 },
180
{ "ER_UNUSED1144",1144 },
181
{ "ER_UNUSED1145",1145 },
182
{ "ER_NO_SUCH_TABLE",1146 },
183
{ "ER_UNUSED1147",1147 },
184
{ "ER_UNUSED1148",1148 },
185
{ "ER_SYNTAX_ERROR",1149 },
186
{ "ER_UNUSED1150",1150 },
187
{ "ER_UNUSED1151",1151 },
188
{ "ER_UNUSED1152",1152 },
189
{ "ER_NET_PACKET_TOO_LARGE",1153 },
190
{ "ER_UNUSED1154",1154 },
191
{ "ER_UNUSED1155",1155 },
192
{ "ER_NET_PACKETS_OUT_OF_ORDER",1156 },
193
{ "ER_UNUSED1157",1157 },
194
{ "ER_UNUSED1158",1158 },
195
{ "ER_UNUSED1159",1159 },
196
{ "ER_UNUSED1160",1160 },
197
{ "ER_UNUSED1161",1161 },
198
{ "ER_UNUSED1162",1162 },
199
{ "ER_TABLE_CANT_HANDLE_BLOB",1163 },
200
{ "ER_TABLE_CANT_HANDLE_AUTO_INCREMENT",1164 },
201
{ "ER_UNUSED1165",1165 },
202
{ "ER_WRONG_COLUMN_NAME",1166 },
203
{ "ER_WRONG_KEY_COLUMN",1167 },
204
{ "ER_WRONG_MRG_TABLE",1168 },
205
{ "ER_DUP_UNIQUE",1169 },
206
{ "ER_BLOB_KEY_WITHOUT_LENGTH",1170 },
207
{ "ER_PRIMARY_CANT_HAVE_NULL",1171 },
208
{ "ER_TOO_MANY_ROWS",1172 },
209
{ "ER_REQUIRES_PRIMARY_KEY",1173 },
210
{ "ER_UNUSED1174",1174 },
211
{ "ER_UNUSED1175",1175 },
212
{ "ER_KEY_DOES_NOT_EXITS",1176 },
213
{ "ER_CHECK_NO_SUCH_TABLE",1177 },
214
{ "ER_CHECK_NOT_IMPLEMENTED",1178 },
215
{ "ER_UNUSED1179",1179 },
216
{ "ER_ERROR_DURING_COMMIT",1180 },
217
{ "ER_ERROR_DURING_ROLLBACK",1181 },
218
{ "ER_UNUSED1182",1182 },
219
{ "ER_UNUSED1183",1183 },
220
{ "ER_NEW_ABORTING_CONNECTION",1184 },
221
{ "ER_UNUSED1185",1185 },
222
{ "ER_UNUSED1186",1186 },
223
{ "ER_UNUSED1187",1187 },
224
{ "ER_UNUSED1188",1188 },
225
{ "ER_UNUSED1189",1189 },
226
{ "ER_UNUSED1190",1190 },
227
{ "ER_UNUSED1191",1191 },
228
{ "ER_LOCK_OR_ACTIVE_TRANSACTION",1192 },
229
{ "ER_UNKNOWN_SYSTEM_VARIABLE",1193 },
230
{ "ER_CRASHED_ON_USAGE",1194 },
231
{ "ER_CRASHED_ON_REPAIR",1195 },
232
{ "ER_WARNING_NOT_COMPLETE_ROLLBACK",1196 },
233
{ "ER_UNUSED1197",1197 },
234
{ "ER_UNUSED1198",1198 },
235
{ "ER_UNUSED1199",1199 },
236
{ "ER_BAD_SLAVE",1200 },
237
{ "ER_UNUSED1201",1201 },
238
{ "ER_UNUSED1202",1202 },
239
{ "ER_UNUSED1203",1203 },
240
{ "ER_SET_CONSTANTS_ONLY",1204 },
241
{ "ER_LOCK_WAIT_TIMEOUT",1205 },
242
{ "ER_LOCK_TABLE_FULL",1206 },
243
{ "ER_READ_ONLY_TRANSACTION",1207 },
244
{ "ER_DROP_DB_WITH_READ_LOCK",1208 },
245
{ "ER_UNUSED1209",1209 },
246
{ "ER_WRONG_ARGUMENTS",1210 },
247
{ "ER_UNUSED1211",1211 },
248
{ "ER_UNUSED1212",1212 },
249
{ "ER_LOCK_DEADLOCK",1213 },
250
{ "ER_TABLE_CANT_HANDLE_FT",1214 },
251
{ "ER_CANNOT_ADD_FOREIGN",1215 },
252
{ "ER_NO_REFERENCED_ROW",1216 },
253
{ "ER_ROW_IS_REFERENCED",1217 },
254
{ "ER_UNUSED1218",1218 },
255
{ "ER_UNUSED1219",1219 },
256
{ "ER_UNUSED1220",1220 },
257
{ "ER_WRONG_USAGE",1221 },
258
{ "ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT",1222 },
259
{ "ER_CANT_UPDATE_WITH_READLOCK",1223 },
260
{ "ER_UNUSED1224",1224 },
261
{ "ER_UNUSED1225",1225 },
262
{ "ER_UNUSED1226",1226 },
263
{ "ER_UNUSED1227",1227 },
264
{ "ER_LOCAL_VARIABLE",1228 },
265
{ "ER_GLOBAL_VARIABLE",1229 },
266
{ "ER_NO_DEFAULT",1230 },
267
{ "ER_WRONG_VALUE_FOR_VAR",1231 },
268
{ "ER_WRONG_TYPE_FOR_VAR",1232 },
269
{ "ER_VAR_CANT_BE_READ",1233 },
270
{ "ER_CANT_USE_OPTION_HERE",1234 },
271
{ "ER_NOT_SUPPORTED_YET",1235 },
272
{ "ER_UNUSED1236",1236 },
273
{ "ER_UNUSED1237",1237 },
274
{ "ER_INCORRECT_GLOBAL_LOCAL_VAR",1238 },
275
{ "ER_WRONG_FK_DEF",1239 },
276
{ "ER_KEY_REF_DO_NOT_MATCH_TABLE_REF",1240 },
277
{ "ER_OPERAND_COLUMNS",1241 },
278
{ "ER_SUBQUERY_NO_1_ROW",1242 },
279
{ "ER_UNUSED1243",1243 },
280
{ "ER_UNUSED1244",1244 },
281
{ "ER_UNUSED1245",1245 },
282
{ "ER_AUTO_CONVERT",1246 },
283
{ "ER_ILLEGAL_REFERENCE",1247 },
284
{ "ER_DERIVED_MUST_HAVE_ALIAS",1248 },
285
{ "ER_SELECT_REDUCED",1249 },
286
{ "ER_TABLENAME_NOT_ALLOWED_HERE",1250 },
287
{ "ER_UNUSED1251",1251 },
288
{ "ER_SPATIAL_CANT_HAVE_NULL",1252 },
289
{ "ER_COLLATION_CHARSET_MISMATCH",1253 },
290
{ "ER_UNUSED1254",1254 },
291
{ "ER_UNUSED1255",1255 },
292
{ "ER_TOO_BIG_FOR_UNCOMPRESS",1256 },
293
{ "ER_ZLIB_Z_MEM_ERROR",1257 },
294
{ "ER_ZLIB_Z_BUF_ERROR",1258 },
295
{ "ER_ZLIB_Z_DATA_ERROR",1259 },
296
{ "ER_CUT_VALUE_GROUP_CONCAT",1260 },
297
{ "ER_WARN_TOO_FEW_RECORDS",1261 },
298
{ "ER_WARN_TOO_MANY_RECORDS",1262 },
299
{ "ER_WARN_NULL_TO_NOTNULL",1263 },
300
{ "ER_WARN_DATA_OUT_OF_RANGE",1264 },
301
{ "ER_WARN_DATA_TRUNCATED",1265 },
302
{ "ER_UNUSED1266",1266 },
303
{ "ER_CANT_AGGREGATE_2COLLATIONS",1267 },
304
{ "ER_UNUSED1268",1268 },
305
{ "ER_UNUSED1269",1269 },
306
{ "ER_CANT_AGGREGATE_3COLLATIONS",1270 },
307
{ "ER_CANT_AGGREGATE_NCOLLATIONS",1271 },
308
{ "ER_VARIABLE_IS_NOT_STRUCT",1272 },
309
{ "ER_UNKNOWN_COLLATION",1273 },
310
{ "ER_UNUSED1274",1274 },
311
{ "ER_UNUSED1275",1275 },
312
{ "ER_WARN_FIELD_RESOLVED",1276 },
313
{ "ER_UNUSED1277",1277 },
314
{ "ER_UNUSED1278",1278 },
315
{ "ER_UNUSED1279",1279 },
316
{ "ER_WRONG_NAME_FOR_INDEX",1280 },
317
{ "ER_WRONG_NAME_FOR_CATALOG",1281 },
318
{ "ER_UNUSED1282",1282 },
319
{ "ER_BAD_FT_COLUMN",1283 },
320
{ "ER_UNUSED1284",1284 },
321
{ "ER_UNUSED1285",1285 },
322
{ "ER_UNKNOWN_STORAGE_ENGINE",1286 },
323
{ "ER_UNUSED1287",1287 },
324
{ "ER_NON_UPDATABLE_TABLE",1288 },
325
{ "ER_FEATURE_DISABLED",1289 },
326
{ "ER_OPTION_PREVENTS_STATEMENT",1290 },
327
{ "ER_DUPLICATED_VALUE_IN_TYPE",1291 },
328
{ "ER_TRUNCATED_WRONG_VALUE",1292 },
329
{ "ER_TOO_MUCH_AUTO_TIMESTAMP_COLS",1293 },
330
{ "ER_INVALID_ON_UPDATE",1294 },
331
{ "ER_UNUSED1295",1295 },
332
{ "ER_GET_ERRMSG",1296 },
333
{ "ER_GET_TEMPORARY_ERRMSG",1297 },
334
{ "ER_UNKNOWN_TIME_ZONE",1298 },
335
{ "ER_UNUSED1299",1299 },
336
{ "ER_INVALID_CHARACTER_STRING",1300 },
337
{ "ER_WARN_ALLOWED_PACKET_OVERFLOWED",1301 },
338
{ "ER_UNUSED1302",1302 },
339
{ "ER_UNUSED1303",1303 },
340
{ "ER_UNUSED1304",1304 },
341
{ "ER_SP_DOES_NOT_EXIST",1305 },
342
{ "ER_UNUSED1306",1306 },
343
{ "ER_UNUSED1307",1307 },
344
{ "ER_UNUSED1308",1308 },
345
{ "ER_UNUSED1309",1309 },
346
{ "ER_UNUSED1310",1310 },
347
{ "ER_UNUSED1311",1311 },
348
{ "ER_UNUSED1312",1312 },
349
{ "ER_UNUSED1313",1313 },
350
{ "ER_UNUSED1314",1314 },
351
{ "ER_UNUSED1315",1315 },
352
{ "ER_UNUSED1316",1316 },
353
{ "ER_QUERY_INTERRUPTED",1317 },
354
{ "ER_UNUSED1318",1318 },
355
{ "ER_UNUSED1319",1319 },
356
{ "ER_UNUSED1320",1320 },
357
{ "ER_UNUSED1321",1321 },
358
{ "ER_UNUSED1322",1322 },
359
{ "ER_UNUSED1323",1323 },
360
{ "ER_UNUSED1324",1324 },
361
{ "ER_UNUSED1325",1325 },
362
{ "ER_UNUSED1326",1326 },
363
{ "ER_UNUSED1327",1327 },
364
{ "ER_UNUSED1328",1328 },
365
{ "ER_SP_FETCH_NO_DATA",1329 },
366
{ "ER_UNUSED1330",1330 },
367
{ "ER_UNUSED1331",1331 },
368
{ "ER_UNUSED1332",1332 },
369
{ "ER_UNUSED1333",1333 },
370
{ "ER_UNUSED1334",1334 },
371
{ "ER_UNUSED1335",1335 },
372
{ "ER_UNUSED1336",1336 },
373
{ "ER_UNUSED1337",1337 },
374
{ "ER_UNUSED1338",1338 },
375
{ "ER_UNUSED1339",1339 },
376
{ "ER_UNUSED1340",1340 },
377
{ "ER_UNUSED1341",1341 },
378
{ "ER_UNUSED1342",1342 },
379
{ "ER_UNUSED1343",1343 },
380
{ "ER_UNUSED1344",1344 },
381
{ "ER_UNUSED1345",1345 },
382
{ "ER_UNUSED1346",1346 },
383
{ "ER_UNUSED1347",1347 },
384
{ "ER_UNUSED1348",1348 },
385
{ "ER_UNUSED1349",1349 },
386
{ "ER_UNUSED1350",1350 },
387
{ "ER_UNUSED1351",1351 },
388
{ "ER_UNUSED1352",1352 },
389
{ "ER_UNUSED1353",1353 },
390
{ "ER_UNUSED1354",1354 },
391
{ "ER_UNUSED1355",1355 },
392
{ "ER_VIEW_INVALID",1356 },
393
{ "ER_UNUSED1357",1357 },
394
{ "ER_UNUSED1358",1358 },
395
{ "ER_UNUSED1359",1359 },
396
{ "ER_UNUSED1360",1360 },
397
{ "ER_UNUSED1361",1361 },
398
{ "ER_UNUSED1362",1362 },
399
{ "ER_UNUSED1363",1363 },
400
{ "ER_NO_DEFAULT_FOR_FIELD",1364 },
401
{ "ER_DIVISION_BY_ZERO",1365 },
402
{ "ER_TRUNCATED_WRONG_VALUE_FOR_FIELD",1366 },
403
{ "ER_ILLEGAL_VALUE_FOR_TYPE",1367 },
404
{ "ER_UNUSED1368",1368 },
405
{ "ER_UNUSED1369",1369 },
406
{ "ER_UNUSED1370",1370 },
407
{ "ER_UNUSED1371",1371 },
408
{ "ER_UNUSED1372",1372 },
409
{ "ER_UNUSED1373",1373 },
410
{ "ER_UNUSED1374",1374 },
411
{ "ER_UNUSED1375",1375 },
412
{ "ER_UNUSED1376",1376 },
413
{ "ER_UNUSED1377",1377 },
414
{ "ER_UNUSED1378",1378 },
415
{ "ER_UNUSED1379",1379 },
416
{ "ER_UNUSED1380",1380 },
417
{ "ER_UNUSED1381",1381 },
418
{ "ER_UNUSED1382",1382 },
419
{ "ER_UNUSED1383",1383 },
420
{ "ER_UNUSED1384",1384 },
421
{ "ER_UNUSED1385",1385 },
422
{ "ER_UNUSED1386",1386 },
423
{ "ER_UNUSED1387",1387 },
424
{ "ER_UNUSED1388",1388 },
425
{ "ER_UNUSED1389",1389 },
426
{ "ER_UNUSED1390",1390 },
427
{ "ER_KEY_PART_0",1391 },
428
{ "ER_UNUSED1392",1392 },
429
{ "ER_UNUSED1393",1393 },
430
{ "ER_UNUSED1394",1394 },
431
{ "ER_UNUSED1395",1395 },
432
{ "ER_UNUSED1396",1396 },
433
{ "ER_UNUSED1397",1397 },
434
{ "ER_UNUSED1398",1398 },
435
{ "ER_XAER_RMFAIL",1399 },
436
{ "ER_UNUSED1400",1400 },
437
{ "ER_UNUSED1401",1401 },
438
{ "ER_UNUSED1402",1402 },
439
{ "ER_UNUSED1403",1403 },
440
{ "ER_UNUSED1404",1404 },
441
{ "ER_UNUSED1405",1405 },
442
{ "ER_DATA_TOO_LONG",1406 },
443
{ "ER_UNUSED1407",1407 },
444
{ "ER_STARTUP",1408 },
445
{ "ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR",1409 },
446
{ "ER_UNUSED1410",1410 },
447
{ "ER_WRONG_VALUE_FOR_TYPE",1411 },
448
{ "ER_TABLE_DEF_CHANGED",1412 },
449
{ "ER_UNUSED1413",1413 },
450
{ "ER_UNUSED1414",1414 },
451
{ "ER_SP_NO_RETSET",1415 },
452
{ "ER_CANT_CREATE_GEOMETRY_OBJECT",1416 },
453
{ "ER_UNUSED1417",1417 },
454
{ "ER_UNUSED1418",1418 },
455
{ "ER_UNUSED1419",1419 },
456
{ "ER_UNUSED1420",1420 },
457
{ "ER_UNUSED1421",1421 },
458
{ "ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG",1422 },
459
{ "ER_UNUSED1423",1423 },
460
{ "ER_UNUSED1424",1424 },
461
{ "ER_TOO_BIG_SCALE",1425 },
462
{ "ER_TOO_BIG_PRECISION",1426 },
463
{ "ER_M_BIGGER_THAN_D",1427 },
464
{ "ER_UNUSED1428",1428 },
465
{ "ER_UNUSED1429",1429 },
466
{ "ER_UNUSED1430",1430 },
467
{ "ER_UNUSED1431",1431 },
468
{ "ER_UNUSED1432",1432 },
469
{ "ER_UNUSED1433",1433 },
470
{ "ER_UNUSED1434",1434 },
471
{ "ER_TRG_IN_WRONG_SCHEMA",1435 },
472
{ "ER_STACK_OVERRUN_NEED_MORE",1436 },
473
{ "ER_UNUSED1437",1437 },
474
{ "ER_UNUSED1438",1438 },
475
{ "ER_TOO_BIG_DISPLAYWIDTH",1439 },
476
{ "ER_UNUSED1440",1440 },
477
{ "ER_DATETIME_FUNCTION_OVERFLOW",1441 },
478
{ "ER_UNUSED1442",1442 },
479
{ "ER_UNUSED1443",1443 },
480
{ "ER_UNUSED1444",1444 },
481
{ "ER_UNUSED1445",1445 },
482
{ "ER_UNUSED1446",1446 },
483
{ "ER_UNUSED1447",1447 },
484
{ "ER_UNUSED1448",1448 },
485
{ "ER_UNUSED1449",1449 },
486
{ "ER_UNUSED1450",1450 },
487
{ "ER_ROW_IS_REFERENCED_2",1451 },
488
{ "ER_NO_REFERENCED_ROW_2",1452 },
489
{ "ER_UNUSED1453",1453 },
490
{ "ER_UNUSED1454",1454 },
491
{ "ER_UNUSED1455",1455 },
492
{ "ER_UNUSED1456",1456 },
493
{ "ER_UNUSED1457",1457 },
494
{ "ER_UNUSED1458",1458 },
495
{ "ER_TABLE_NEEDS_UPGRADE",1459 },
496
{ "ER_UNUSED1460",1460 },
497
{ "ER_UNUSED1461",1461 },
498
{ "ER_UNUSED1462",1462 },
499
{ "ER_NON_GROUPING_FIELD_USED",1463 },
500
{ "ER_TABLE_CANT_HANDLE_SPKEYS",1464 },
501
{ "ER_UNUSED1465",1465 },
502
{ "ER_REMOVED_SPACES",1466 },
503
{ "ER_AUTOINC_READ_FAILED",1467 },
504
{ "ER_UNUSED1468",1468 },
505
{ "ER_UNUSED1469",1469 },
506
{ "ER_WRONG_STRING_LENGTH",1470 },
507
{ "ER_UNUSED1471",1471 },
508
{ "ER_UNUSED1472",1472 },
509
{ "ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT",1473 },
510
{ "ER_NAME_BECOMES_EMPTY",1474 },
511
{ "ER_AMBIGUOUS_FIELD_TERM",1475 },
512
{ "ER_UNUSED1476",1476 },
513
{ "ER_UNUSED1477",1477 },
514
{ "ER_ILLEGAL_HA_CREATE_OPTION",1478 },
515
{ "ER_UNUSED1479",1479 },
516
{ "ER_UNUSED1480",1480 },
517
{ "ER_UNUSED1481",1481 },
518
{ "ER_UNUSED1482",1482 },
519
{ "ER_UNUSED1483",1483 },
520
{ "ER_UNUSED1484",1484 },
521
{ "ER_UNUSED1485",1485 },
522
{ "ER_UNUSED1486",1486 },
523
{ "ER_UNUSED1487",1487 },
524
{ "ER_UNUSED1488",1488 },
525
{ "ER_UNUSED1489",1489 },
526
{ "ER_UNUSED1490",1490 },
527
{ "ER_UNUSED1491",1491 },
528
{ "ER_UNUSED1492",1492 },
529
{ "ER_UNUSED1493",1493 },
530
{ "ER_UNUSED1494",1494 },
531
{ "ER_UNUSED1495",1495 },
532
{ "ER_UNUSED1496",1496 },
533
{ "ER_UNUSED1497",1497 },
534
{ "ER_UNUSED1498",1498 },
535
{ "ER_UNUSED1499",1499 },
536
{ "ER_UNUSED1500",1500 },
537
{ "ER_UNUSED1501",1501 },
538
{ "ER_UNUSED1502",1502 },
539
{ "ER_UNUSED1503",1503 },
540
{ "ER_UNUSED1504",1504 },
541
{ "ER_UNUSED1505",1505 },
542
{ "ER_UNUSED1506",1506 },
543
{ "ER_UNUSED1507",1507 },
544
{ "ER_UNUSED1508",1508 },
545
{ "ER_UNUSED1509",1509 },
546
{ "ER_UNUSED1510",1510 },
547
{ "ER_UNUSED1511",1511 },
548
{ "ER_UNUSED1512",1512 },
549
{ "ER_UNUSED1513",1513 },
550
{ "ER_UNUSED1514",1514 },
551
{ "ER_UNUSED1515",1515 },
552
{ "ER_UNUSED1516",1516 },
553
{ "ER_UNUSED1517",1517 },
554
{ "ER_UNUSED1518",1518 },
555
{ "ER_UNUSED1519",1519 },
556
{ "ER_UNUSED1520",1520 },
557
{ "ER_UNUSED1521",1521 },
558
{ "ER_UNUSED1522",1522 },
559
{ "ER_UNUSED1523",1523 },
560
{ "ER_INVALID_OPTION_VALUE",1524 },
561
{ "ER_WRONG_VALUE",1525 },
562
{ "ER_NO_PARTITION_FOR_GIVEN_VALUE",1526 },
563
{ "ER_UNUSED1527",1527 },
564
{ "ER_UNUSED1528",1528 },
565
{ "ER_UNUSED1529",1529 },
566
{ "ER_UNUSED1530",1530 },
567
{ "ER_UNUSED1531",1531 },
568
{ "ER_UNUSED1532",1532 },
569
{ "ER_UNUSED1533",1533 },
570
{ "ER_BINLOG_ROW_LOGGING_FAILED",1534 },
571
{ "ER_UNUSED1535",1535 },
572
{ "ER_UNUSED1536",1536 },
573
{ "ER_UNUSED1537",1537 },
574
{ "ER_UNUSED1538",1538 },
575
{ "ER_UNUSED1539",1539 },
576
{ "ER_UNUSED1540",1540 },
577
{ "ER_UNUSED1541",1541 },
578
{ "ER_UNUSED1542",1542 },
579
{ "ER_UNUSED1543",1543 },
580
{ "ER_UNUSED1544",1544 },
581
{ "ER_UNUSED1545",1545 },
582
{ "ER_UNUSED1546",1546 },
583
{ "ER_UNUSED1547",1547 },
584
{ "ER_UNUSED1548",1548 },
585
{ "ER_UNUSED1549",1549 },
586
{ "ER_UNUSED1550",1550 },
587
{ "ER_UNUSED1551",1551 },
588
{ "ER_UNUSED1552",1552 },
589
{ "ER_DROP_INDEX_FK",1553 },
590
{ "ER_UNUSED1554",1554 },
591
{ "ER_UNUSED1555",1555 },
592
{ "ER_UNUSED1556",1556 },
593
{ "ER_FOREIGN_DUPLICATE_KEY",1557 },
594
{ "ER_UNUSED1558",1558 },
595
{ "ER_UNUSED1559",1559 },
596
{ "ER_UNUSED1560",1560 },
597
{ "ER_UNUSED1561",1561 },
598
{ "ER_UNUSED1562",1562 },
599
{ "ER_UNUSED1563",1563 },
600
{ "ER_UNUSED1564",1564 },
601
{ "ER_UNUSED1565",1565 },
602
{ "ER_UNUSED1566",1566 },
603
{ "ER_UNUSED1567",1567 },
604
{ "ER_CANT_CHANGE_TX_ISOLATION",1568 },
605
{ "ER_UNUSED1569",1569 },
606
{ "ER_UNUSED1570",1570 },
607
{ "ER_UNUSED1571",1571 },
608
{ "ER_UNUSED1572",1572 },
609
{ "ER_UNUSED1573",1573 },
610
{ "ER_UNUSED1574",1574 },
611
{ "ER_UNUSED1575",1575 },
612
{ "ER_UNUSED1576",1576 },
613
{ "ER_UNUSED1577",1577 },
614
{ "ER_UNUSED1578",1578 },
615
{ "ER_UNUSED1579",1579 },
616
{ "ER_UNUSED1580",1580 },
617
{ "ER_UNUSED1581",1581 },
618
{ "ER_WRONG_PARAMCOUNT_TO_FUNCTION",1582 },
619
{ "ER_WRONG_PARAMETERS_TO_NATIVE_FCT",1583 },
620
{ "ER_UNUSED1584",1584 },
621
{ "ER_UNUSED1585",1585 },
622
{ "ER_DUP_ENTRY_WITH_KEY_NAME",1586 },
623
{ "ER_UNUSED1587",1587 },
624
{ "ER_UNUSED1588",1588 },
625
{ "ER_UNUSED1589",1589 },
626
{ "ER_UNUSED1590",1590 },
627
{ "ER_UNUSED1591",1591 },
628
{ "ER_UNUSED1592",1592 },
629
{ "ER_UNUSED1593",1593 },
630
{ "ER_UNUSED1594",1594 },
631
{ "ER_UNUSED1595",1595 },
632
{ "ER_UNUSED1596",1596 },
633
{ "ER_UNUSED1597",1597 },
634
{ "ER_UNUSED1598",1598 },
635
{ "ER_UNUSED1599",1599 },
636
{ "ER_UNUSED1600",1600 },
637
{ "ER_UNUSED1601",1601 },
638
{ "ER_UNUSED1602",1602 },
639
{ "ER_UNUSED1603",1603 },
640
{ "ER_UNUSED1604",1604 },
641
{ "ER_UNUSED1605",1605 },
642
{ "ER_UNUSED1606",1606 },
643
{ "ER_UNUSED1607",1607 },
644
{ "ER_UNUSED1608",1608 },
645
{ "ER_UNUSED1609",1609 },
646
{ "ER_UNUSED1610",1610 },
647
{ "ER_LOAD_DATA_INVALID_COLUMN",1611 },
648
{ "ER_UNUSED1612",1612 },
649
{ "ER_UNUSED1613",1613 },
650
{ "ER_UNUSED1614",1614 },
651
{ "ER_UNUSED1615",1615 },
652
{ "ER_UNUSED1616",1616 },
653
{ "ER_UNUSED1617",1617 },
654
{ "ER_UNUSED1618",1618 },
655
{ "ER_UNUSED1619",1619 },
656
{ "ER_UNUSED1620",1620 },
657
{ "ER_UNUSED1621",1621 },
658
{ "ER_UNUSED1622",1622 },
659
{ "ER_UNUSED1623",1623 },
660
{ "ER_UNUSED1624",1624 },
661
{ "ER_UNUSED1625",1625 },
662
{ "ER_UNUSED1626",1626 },
663
{ "ER_UNUSED1627",1627 },
664
{ "ER_UNUSED1628",1628 },
665
{ "ER_UNUSED1629",1629 },
666
{ "ER_UNUSED1630",1630 },
667
{ "ER_UNUSED1631",1631 },
668
{ "ER_UNUSED1632",1632 },
669
{ "ER_UNUSED1633",1633 },
670
{ "ER_UNUSED1634",1634 },
671
{ "ER_UNUSED1635",1635 },
672
{ "ER_UNUSED1636",1636 },
673
{ "ER_UNUSED1637",1637 },
674
{ "ER_UNUSED1638",1638 },
675
{ "ER_UNUSED1639",1639 },
676
{ "ER_UNUSED1640",1640 },
677
{ "ER_UNUSED1641",1641 },
678
{ "ER_UNUSED1642",1642 },
679
{ "ER_UNUSED1643",1643 },
680
{ "ER_UNUSED1644",1644 },
681
{ "ER_UNUSED1645",1645 },
682
{ "ER_UNUSED1646",1646 },
683
{ "ER_UNUSED1647",1647 },
684
{ "ER_UNUSED1648",1648 },
685
{ "ER_UNUSED1649",1649 },
686
{ "ER_UNUSED1650",1650 },
687
{ "ER_UNUSED1651",1651 },
688
{ "ER_UNUSED1652",1652 },
689
{ "ER_UNUSED1653",1653 },
690
{ "ER_UNUSED1654",1654 },
691
{ "ER_UNUSED1655",1655 },
692
{ "ER_UNUSED1656",1656 },
693
{ "ER_UNUSED1657",1657 },
694
{ "ER_UNUSED1658",1658 },
695
{ "ER_UNUSED1659",1659 },
696
{ "ER_UNUSED1660",1660 },
697
{ "ER_UNUSED1661",1661 },
698
{ "ER_UNUSED1662",1662 },
699
{ "ER_UNUSED1663",1663 },
700
{ "ER_UNUSED1664",1664 },
701
{ "ER_UNUSED1665",1665 },
702
{ "ER_UNUSED1666",1666 },
703
{ "ER_UNUSED1667",1667 },
704
{ "ER_UNUSED1668",1668 },
705
{ "ER_UNUSED1669",1669 },
706
{ "ER_UNUSED1670",1670 },
707
{ "ER_UNUSED1671",1671 },
708
{ "ER_UNUSED1672",1672 },
709
{ "ER_UNUSED1673",1673 },
710
{ "ER_UNUSED1674",1674 },
711
{ "ER_UNUSED1675",1675 },
712
{ "ER_UNUSED1676",1676 },
713
{ "ER_UNUSED1677",1677 },
714
{ "ER_UNUSED1678",1678 },
715
{ "ER_UNUSED1679",1679 },
716
{ "ER_UNUSED1680",1680 },
717
{ "ER_UNUSED1681",1681 },
718
{ "ER_UNUSED1682",1682 },
719
{ "ER_UNUSED1683",1683 },
720
{ "ER_UNUSED1684",1684 },
721
{ "ER_INVALID_UNIX_TIMESTAMP_VALUE",1685 },
722
{ "ER_INVALID_DATETIME_VALUE",1686 },
723
{ "ER_INVALID_NULL_ARGUMENT",1687 },
724
{ "ER_UNUSED1688",1688 },
725
{ "ER_ARGUMENT_OUT_OF_RANGE",1689 },
726
{ "ER_UNUSED1690",1690 },
727
{ "ER_INVALID_ENUM_VALUE",1691 },
728
{ "ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE", 1692},
729
{ "ER_CORRUPT_TABLE_DEFINITION", 1693},
730
{ "ER_SCHEMA_DOES_NOT_EXIST", 1694},
731
{ "ER_ALTER_SCHEMA", 1695},
732
{ "ER_DROP_SCHEMA", 1696},
733
{ "ER_USE_SQL_BIG_RESULT", 1697},
734
{ "ER_UNKNOWN_ENGINE_OPTION", 1698},
735
{ "ER_UNKNOWN_SCHEMA_OPTION", 1699},
736
{ "ER_EVENT_OBSERVER_PLUGIN", 1700},
737
{ "ER_CORRUPT_SCHEMA_DEFINITION", 1701},
738
{ "ER_OUT_OF_GLOBAL_SORTMEMORY", 1702},
739
{ "ER_OUT_OF_GLOBAL_JOINMEMORY", 1703},
740
{ "ER_OUT_OF_GLOBAL_READRNDMEMORY", 1704},
741
{ "ER_OUT_OF_GLOBAL_READMEMORY", 1705},
745
for (struct st_error *e=st_error_names;e->name;e++)
747
error_code_map.insert(pair<string, uint32_t>(e->name,e->code));
751
uint32_t ErrorCodes::getErrorCode(const string &error_msg)
753
return error_code_map[error_msg];