~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/errname.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-07-30 02:39:13 UTC
  • mto: (1115.3.11 captain)
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: osullivan.padraig@gmail.com-20090730023913-o2zuocp32l6btnc2
Removing references to MY_BITMAP throughout the code base and updating calls
to MyBitmap in various places to use the new interface.

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 "config.h"
22
 
 
23
 
#include <client/errname.h>
24
 
 
25
 
using namespace std;
26
 
 
27
 
ErrorCodes::ErrorCodes()
28
 
  :
29
 
    error_code_map()
30
 
{
31
 
  static struct st_error
32
 
  {
33
 
    const char *name;
34
 
    uint32_t code;
35
 
  }
36
 
  st_error_names[]=
37
 
  {
38
 
    { "ER_NO",1002 },
39
 
    { "ER_YES",1003 },
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_DB_DROP_DELETE",1009 },
46
 
    { "ER_DB_DROP_RMDIR",1010 },
47
 
    { "ER_CANT_DELETE_FILE",1011 },
48
 
    { "ER_CANT_FIND_SYSTEM_REC",1012 },
49
 
    { "ER_CANT_GET_STAT",1013 },
50
 
    { "ER_CANT_GET_WD",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_CANT_SET_WD",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_FORM_NOT_FOUND",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_READY",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_ALTER_INFO",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_TOO_BIG_SET",1097 },
134
 
    { "ER_NO_UNIQUE_LOGFILE",1098 },
135
 
    { "ER_TABLE_NOT_LOCKED_FOR_WRITE",1099 },
136
 
    { "ER_TABLE_NOT_LOCKED",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_WRONG_PARAMETERS_TO_PROCEDURE",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_UNKNOWN_CHARACTER_SET",1115 },
152
 
    { "ER_TOO_MANY_TABLES",1116 },
153
 
    { "ER_TOO_MANY_FIELDS",1117 },
154
 
    { "ER_TOO_BIG_ROWSIZE",1118 },
155
 
    { "ER_STACK_OVERRUN",1119 },
156
 
    { "ER_WRONG_OUTER_JOIN",1120 },
157
 
    { "ER_NULL_COLUMN_IN_INDEX",1121 },
158
 
    { "ER_CANT_FIND_UDF",1122 },
159
 
    { "ER_CANT_INITIALIZE_UDF",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_FUNCTION_NOT_DEFINED",1128 },
165
 
    { "ER_HOST_IS_BLOCKED",1129 },
166
 
    { "ER_HOST_NOT_PRIVILEGED",1130 },
167
 
    { "ER_PASSWORD_ANONYMOUS_USER",1131 },
168
 
    { "ER_PASSWORD_NOT_ALLOWED",1132 },
169
 
    { "ER_PASSWORD_NO_MATCH",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_INVALID_USE_OF_NULL",1138 },
175
 
    { "ER_REGEXP_ERROR",1139 },
176
 
    { "ER_MIX_OF_GROUP_FUNC_AND_FIELDS",1140 },
177
 
    { "ER_NONEXISTING_GRANT",1141 },
178
 
    { "ER_TABLEACCESS_DENIED_ERROR",1142 },
179
 
    { "ER_COLUMNACCESS_DENIED_ERROR",1143 },
180
 
    { "ER_ILLEGAL_GRANT_FOR_TABLE",1144 },
181
 
    { "ER_GRANT_WRONG_HOST_OR_USER",1145 },
182
 
    { "ER_NO_SUCH_TABLE",1146 },
183
 
    { "ER_NONEXISTING_TABLE_GRANT",1147 },
184
 
    { "ER_NOT_ALLOWED_COMMAND",1148 },
185
 
    { "ER_SYNTAX_ERROR",1149 },
186
 
    { "ER_DELAYED_CANT_CHANGE_LOCK",1150 },
187
 
    { "ER_TOO_MANY_DELAYED_THREADS",1151 },
188
 
    { "ER_ABORTING_CONNECTION",1152 },
189
 
    { "ER_NET_PACKET_TOO_LARGE",1153 },
190
 
    { "ER_NET_READ_ERROR_FROM_PIPE",1154 },
191
 
    { "ER_NET_FCNTL_ERROR",1155 },
192
 
    { "ER_NET_PACKETS_OUT_OF_ORDER",1156 },
193
 
    { "ER_NET_UNCOMPRESS_ERROR",1157 },
194
 
    { "ER_NET_READ_ERROR",1158 },
195
 
    { "ER_NET_READ_INTERRUPTED",1159 },
196
 
    { "ER_NET_ERROR_ON_WRITE",1160 },
197
 
    { "ER_NET_WRITE_INTERRUPTED",1161 },
198
 
    { "ER_TOO_LONG_STRING",1162 },
199
 
    { "ER_TABLE_CANT_HANDLE_BLOB",1163 },
200
 
    { "ER_TABLE_CANT_HANDLE_AUTO_INCREMENT",1164 },
201
 
    { "ER_DELAYED_INSERT_TABLE_LOCKED",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_NO_RAID_COMPILED",1174 },
211
 
    { "ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE",1175 },
212
 
    { "ER_KEY_DOES_NOT_EXITS",1176 },
213
 
    { "ER_CHECK_NO_SUCH_TABLE",1177 },
214
 
    { "ER_CHECK_NOT_IMPLEMENTED",1178 },
215
 
    { "ER_CANT_DO_THIS_DURING_AN_TRANSACTION",1179 },
216
 
    { "ER_ERROR_DURING_COMMIT",1180 },
217
 
    { "ER_ERROR_DURING_ROLLBACK",1181 },
218
 
    { "ER_ERROR_DURING_FLUSH_LOGS",1182 },
219
 
    { "ER_ERROR_DURING_CHECKPOINT",1183 },
220
 
    { "ER_NEW_ABORTING_CONNECTION",1184 },
221
 
    { "ER_DUMP_NOT_IMPLEMENTED",1185 },
222
 
    { "ER_FLUSH_MASTER_BINLOG_CLOSED",1186 },
223
 
    { "ER_INDEX_REBUILD",1187 },
224
 
    { "ER_MASTER",1188 },
225
 
    { "ER_MASTER_NET_READ",1189 },
226
 
    { "ER_MASTER_NET_WRITE",1190 },
227
 
    { "ER_FT_MATCHING_KEY_NOT_FOUND",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_TRANS_CACHE_FULL",1197 },
234
 
    { "ER_SLAVE_MUST_STOP",1198 },
235
 
    { "ER_SLAVE_NOT_RUNNING",1199 },
236
 
    { "ER_BAD_SLAVE",1200 },
237
 
    { "ER_MASTER_INFO",1201 },
238
 
    { "ER_SLAVE_THREAD",1202 },
239
 
    { "ER_TOO_MANY_USER_CONNECTIONS",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_CREATE_DB_WITH_READ_LOCK",1209 },
246
 
    { "ER_WRONG_ARGUMENTS",1210 },
247
 
    { "ER_NO_PERMISSION_TO_CREATE_USER",1211 },
248
 
    { "ER_UNION_TABLES_IN_DIFFERENT_DIR",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_CONNECT_TO_MASTER",1218 },
255
 
    { "ER_QUERY_ON_MASTER",1219 },
256
 
    { "ER_ERROR_WHEN_EXECUTING_COMMAND",1220 },
257
 
    { "ER_WRONG_USAGE",1221 },
258
 
    { "ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT",1222 },
259
 
    { "ER_CANT_UPDATE_WITH_READLOCK",1223 },
260
 
    { "ER_MIXING_NOT_ALLOWED",1224 },
261
 
    { "ER_DUP_ARGUMENT",1225 },
262
 
    { "ER_USER_LIMIT_REACHED",1226 },
263
 
    { "ER_SPECIFIC_ACCESS_DENIED_ERROR",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_MASTER_FATAL_ERROR_READING_BINLOG",1236 },
273
 
    { "ER_SLAVE_IGNORED_TABLE",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_UNKNOWN_STMT_HANDLER",1243 },
280
 
    { "ER_CORRUPT_HELP_DB",1244 },
281
 
    { "ER_CYCLIC_REFERENCE",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_NOT_SUPPORTED_AUTH_MODE",1251 },
288
 
    { "ER_SPATIAL_CANT_HAVE_NULL",1252 },
289
 
    { "ER_COLLATION_CHARSET_MISMATCH",1253 },
290
 
    { "ER_SLAVE_WAS_RUNNING",1254 },
291
 
    { "ER_SLAVE_WAS_NOT_RUNNING",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
 
    { "WARN_DATA_TRUNCATED",1265 },
302
 
    { "ER_WARN_USING_OTHER_HANDLER",1266 },
303
 
    { "ER_CANT_AGGREGATE_2COLLATIONS",1267 },
304
 
    { "ER_DROP_USER",1268 },
305
 
    { "ER_REVOKE_GRANTS",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_SLAVE_IGNORED_SSL_PARAMS",1274 },
311
 
    { "ER_SERVER_IS_IN_SECURE_AUTH_MODE",1275 },
312
 
    { "ER_WARN_FIELD_RESOLVED",1276 },
313
 
    { "ER_BAD_SLAVE_UNTIL_COND",1277 },
314
 
    { "ER_MISSING_SKIP_SLAVE",1278 },
315
 
    { "ER_UNTIL_COND_IGNORED",1279 },
316
 
    { "ER_WRONG_NAME_FOR_INDEX",1280 },
317
 
    { "ER_WRONG_NAME_FOR_CATALOG",1281 },
318
 
    { "ER_WARN_QC_RESIZE",1282 },
319
 
    { "ER_BAD_FT_COLUMN",1283 },
320
 
    { "ER_UNKNOWN_KEY_CACHE",1284 },
321
 
    { "ER_WARN_HOSTNAME_WONT_WORK",1285 },
322
 
    { "ER_UNKNOWN_STORAGE_ENGINE",1286 },
323
 
    { "ER_WARN_DEPRECATED_SYNTAX",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_UNSUPPORTED_PS",1295 },
332
 
    { "ER_GET_ERRMSG",1296 },
333
 
    { "ER_GET_TEMPORARY_ERRMSG",1297 },
334
 
    { "ER_UNKNOWN_TIME_ZONE",1298 },
335
 
    { "ER_WARN_INVALID_TIMESTAMP",1299 },
336
 
    { "ER_INVALID_CHARACTER_STRING",1300 },
337
 
    { "ER_WARN_ALLOWED_PACKET_OVERFLOWED",1301 },
338
 
    { "ER_CONFLICTING_DECLARATIONS",1302 },
339
 
    { "ER_SP_NO_RECURSIVE_CREATE",1303 },
340
 
    { "ER_SP_ALREADY_EXISTS",1304 },
341
 
    { "ER_SP_DOES_NOT_EXIST",1305 },
342
 
    { "ER_SP_DROP_FAILED",1306 },
343
 
    { "ER_SP_STORE_FAILED",1307 },
344
 
    { "ER_SP_LILABEL_MISMATCH",1308 },
345
 
    { "ER_SP_LABEL_REDEFINE",1309 },
346
 
    { "ER_SP_LABEL_MISMATCH",1310 },
347
 
    { "ER_SP_UNINIT_VAR",1311 },
348
 
    { "ER_SP_BADSELECT",1312 },
349
 
    { "ER_SP_BADRETURN",1313 },
350
 
    { "ER_SP_BADSTATEMENT",1314 },
351
 
    { "ER_UPDATE_LOG_DEPRECATED_IGNORED",1315 },
352
 
    { "ER_UPDATE_LOG_DEPRECATED_TRANSLATED",1316 },
353
 
    { "ER_QUERY_INTERRUPTED",1317 },
354
 
    { "ER_SP_WRONG_NO_OF_ARGS",1318 },
355
 
    { "ER_SP_COND_MISMATCH",1319 },
356
 
    { "ER_SP_NORETURN",1320 },
357
 
    { "ER_SP_NORETURNEND",1321 },
358
 
    { "ER_SP_BAD_CURSOR_QUERY",1322 },
359
 
    { "ER_SP_BAD_CURSOR_SELECT",1323 },
360
 
    { "ER_SP_CURSOR_MISMATCH",1324 },
361
 
    { "ER_SP_CURSOR_ALREADY_OPEN",1325 },
362
 
    { "ER_SP_CURSOR_NOT_OPEN",1326 },
363
 
    { "ER_SP_UNDECLARED_VAR",1327 },
364
 
    { "ER_SP_WRONG_NO_OF_FETCH_ARGS",1328 },
365
 
    { "ER_SP_FETCH_NO_DATA",1329 },
366
 
    { "ER_SP_DUP_PARAM",1330 },
367
 
    { "ER_SP_DUP_VAR",1331 },
368
 
    { "ER_SP_DUP_COND",1332 },
369
 
    { "ER_SP_DUP_CURS",1333 },
370
 
    { "ER_SP_CANT_ALTER",1334 },
371
 
    { "ER_SP_SUBSELECT_NYI",1335 },
372
 
    { "ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG",1336 },
373
 
    { "ER_SP_VARCOND_AFTER_CURSHNDLR",1337 },
374
 
    { "ER_SP_CURSOR_AFTER_HANDLER",1338 },
375
 
    { "ER_SP_CASE_NOT_FOUND",1339 },
376
 
    { "ER_FPARSER_TOO_BIG_FILE",1340 },
377
 
    { "ER_FPARSER_BAD_HEADER",1341 },
378
 
    { "ER_FPARSER_EOF_IN_COMMENT",1342 },
379
 
    { "ER_FPARSER_ERROR_IN_PARAMETER",1343 },
380
 
    { "ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER",1344 },
381
 
    { "ER_VIEW_NO_EXPLAIN",1345 },
382
 
    { "ER_UNUSED1346",1346 },
383
 
    { "ER_WRONG_OBJECT",1347 },
384
 
    { "ER_NONUPDATEABLE_COLUMN",1348 },
385
 
    { "ER_VIEW_SELECT_DERIVED",1349 },
386
 
    { "ER_VIEW_SELECT_CLAUSE",1350 },
387
 
    { "ER_VIEW_SELECT_VARIABLE",1351 },
388
 
    { "ER_VIEW_SELECT_TMPTABLE",1352 },
389
 
    { "ER_VIEW_WRONG_LIST",1353 },
390
 
    { "ER_WARN_VIEW_MERGE",1354 },
391
 
    { "ER_WARN_VIEW_WITHOUT_KEY",1355 },
392
 
    { "ER_VIEW_INVALID",1356 },
393
 
    { "ER_SP_NO_DROP_SP",1357 },
394
 
    { "ER_SP_GOTO_IN_HNDLR",1358 },
395
 
    { "ER_TRG_ALREADY_EXISTS",1359 },
396
 
    { "ER_TRG_DOES_NOT_EXIST",1360 },
397
 
    { "ER_TRG_ON_VIEW_OR_TEMP_TABLE",1361 },
398
 
    { "ER_TRG_CANT_CHANGE_ROW",1362 },
399
 
    { "ER_TRG_NO_SUCH_ROW_IN_TRG",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_VIEW_NONUPD_CHECK",1368 },
405
 
    { "ER_VIEW_CHECK_FAILED",1369 },
406
 
    { "ER_PROCACCESS_DENIED_ERROR",1370 },
407
 
    { "ER_RELAY_LOG_FAIL",1371 },
408
 
    { "ER_PASSWD_LENGTH",1372 },
409
 
    { "ER_UNKNOWN_TARGET_BINLOG",1373 },
410
 
    { "ER_IO_ERR_LOG_INDEX_READ",1374 },
411
 
    { "ER_BINLOG_PURGE_PROHIBITED",1375 },
412
 
    { "ER_FSEEK_FAIL",1376 },
413
 
    { "ER_BINLOG_PURGE_FATAL_ERR",1377 },
414
 
    { "ER_LOG_IN_USE",1378 },
415
 
    { "ER_LOG_PURGE_UNKNOWN_ERR",1379 },
416
 
    { "ER_RELAY_LOG_INIT",1380 },
417
 
    { "ER_NO_BINARY_LOGGING",1381 },
418
 
    { "ER_RESERVED_SYNTAX",1382 },
419
 
    { "ER_WSAS_FAILED",1383 },
420
 
    { "ER_DIFF_GROUPS_PROC",1384 },
421
 
    { "ER_NO_GROUP_FOR_PROC",1385 },
422
 
    { "ER_ORDER_WITH_PROC",1386 },
423
 
    { "ER_LOGGING_PROHIBIT_CHANGING_OF",1387 },
424
 
    { "ER_NO_FILE_MAPPING",1388 },
425
 
    { "ER_WRONG_MAGIC",1389 },
426
 
    { "ER_PS_MANY_PARAM",1390 },
427
 
    { "ER_KEY_PART_0",1391 },
428
 
    { "ER_VIEW_CHECKSUM",1392 },
429
 
    { "ER_VIEW_MULTIUPDATE",1393 },
430
 
    { "ER_VIEW_NO_INSERT_FIELD_LIST",1394 },
431
 
    { "ER_VIEW_DELETE_MERGE_VIEW",1395 },
432
 
    { "ER_CANNOT_USER",1396 },
433
 
    { "ER_XAER_NOTA",1397 },
434
 
    { "ER_XAER_INVAL",1398 },
435
 
    { "ER_XAER_RMFAIL",1399 },
436
 
    { "ER_XAER_OUTSIDE",1400 },
437
 
    { "ER_XAER_RMERR",1401 },
438
 
    { "ER_XA_RBROLLBACK",1402 },
439
 
    { "ER_NONEXISTING_PROC_GRANT",1403 },
440
 
    { "ER_PROC_AUTO_GRANT_FAIL",1404 },
441
 
    { "ER_PROC_AUTO_REVOKE_FAIL",1405 },
442
 
    { "ER_DATA_TOO_LONG",1406 },
443
 
    { "ER_SP_BAD_SQLSTATE",1407 },
444
 
    { "ER_STARTUP",1408 },
445
 
    { "ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR",1409 },
446
 
    { "ER_CANT_CREATE_USER_WITH_GRANT",1410 },
447
 
    { "ER_WRONG_VALUE_FOR_TYPE",1411 },
448
 
    { "ER_TABLE_DEF_CHANGED",1412 },
449
 
    { "ER_SP_DUP_HANDLER",1413 },
450
 
    { "ER_SP_NOT_VAR_ARG",1414 },
451
 
    { "ER_SP_NO_RETSET",1415 },
452
 
    { "ER_CANT_CREATE_GEOMETRY_OBJECT",1416 },
453
 
    { "ER_FAILED_ROUTINE_BREAK_BINLOG",1417 },
454
 
    { "ER_BINLOG_UNSAFE_ROUTINE",1418 },
455
 
    { "ER_BINLOG_CREATE_ROUTINE_NEED_SUPER",1419 },
456
 
    { "ER_EXEC_STMT_WITH_OPEN_CURSOR",1420 },
457
 
    { "ER_STMT_HAS_NO_OPEN_CURSOR",1421 },
458
 
    { "ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG",1422 },
459
 
    { "ER_NO_DEFAULT_FOR_VIEW_FIELD",1423 },
460
 
    { "ER_SP_NO_RECURSION",1424 },
461
 
    { "ER_TOO_BIG_SCALE",1425 },
462
 
    { "ER_TOO_BIG_PRECISION",1426 },
463
 
    { "ER_M_BIGGER_THAN_D",1427 },
464
 
    { "ER_WRONG_LOCK_OF_SYSTEM_TABLE",1428 },
465
 
    { "ER_CONNECT_TO_FOREIGN_DATA_SOURCE",1429 },
466
 
    { "ER_QUERY_ON_FOREIGN_DATA_SOURCE",1430 },
467
 
    { "ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST",1431 },
468
 
    { "ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE",1432 },
469
 
    { "ER_FOREIGN_DATA_STRING_INVALID",1433 },
470
 
    { "ER_CANT_CREATE_FEDERATED_TABLE",1434 },
471
 
    { "ER_TRG_IN_WRONG_SCHEMA",1435 },
472
 
    { "ER_STACK_OVERRUN_NEED_MORE",1436 },
473
 
    { "ER_TOO_LONG_BODY",1437 },
474
 
    { "ER_WARN_CANT_DROP_DEFAULT_KEYCACHE",1438 },
475
 
    { "ER_TOO_BIG_DISPLAYWIDTH",1439 },
476
 
    { "ER_XAER_DUPID",1440 },
477
 
    { "ER_DATETIME_FUNCTION_OVERFLOW",1441 },
478
 
    { "ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG",1442 },
479
 
    { "ER_VIEW_PREVENT_UPDATE",1443 },
480
 
    { "ER_PS_NO_RECURSION",1444 },
481
 
    { "ER_SP_CANT_SET_AUTOCOMMIT",1445 },
482
 
    { "ER_MALFORMED_DEFINER",1446 },
483
 
    { "ER_VIEW_FRM_NO_USER",1447 },
484
 
    { "ER_VIEW_OTHER_USER",1448 },
485
 
    { "ER_NO_SUCH_USER",1449 },
486
 
    { "ER_FORBID_SCHEMA_CHANGE",1450 },
487
 
    { "ER_ROW_IS_REFERENCED_2",1451 },
488
 
    { "ER_NO_REFERENCED_ROW_2",1452 },
489
 
    { "ER_SP_BAD_VAR_SHADOW",1453 },
490
 
    { "ER_TRG_NO_DEFINER",1454 },
491
 
    { "ER_OLD_FILE_FORMAT",1455 },
492
 
    { "ER_SP_RECURSION_LIMIT",1456 },
493
 
    { "ER_SP_PROC_TABLE_CORRUPT",1457 },
494
 
    { "ER_SP_WRONG_NAME",1458 },
495
 
    { "ER_TABLE_NEEDS_UPGRADE",1459 },
496
 
    { "ER_SP_NO_AGGREGATE",1460 },
497
 
    { "ER_MAX_PREPARED_STMT_COUNT_REACHED",1461 },
498
 
    { "ER_VIEW_RECURSIVE",1462 },
499
 
    { "ER_NON_GROUPING_FIELD_USED",1463 },
500
 
    { "ER_TABLE_CANT_HANDLE_SPKEYS",1464 },
501
 
    { "ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA",1465 },
502
 
    { "ER_REMOVED_SPACES",1466 },
503
 
    { "ER_AUTOINC_READ_FAILED",1467 },
504
 
    { "ER_USERNAME",1468 },
505
 
    { "ER_HOSTNAME",1469 },
506
 
    { "ER_WRONG_STRING_LENGTH",1470 },
507
 
    { "ER_NON_INSERTABLE_TABLE",1471 },
508
 
    { "ER_ADMIN_WRONG_MRG_TABLE",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_FOREIGN_SERVER_EXISTS",1476 },
513
 
    { "ER_FOREIGN_SERVER_DOESNT_EXIST",1477 },
514
 
    { "ER_ILLEGAL_HA_CREATE_OPTION",1478 },
515
 
    { "ER_PARTITION_REQUIRES_VALUES_ERROR",1479 },
516
 
    { "ER_PARTITION_WRONG_VALUES_ERROR",1480 },
517
 
    { "ER_PARTITION_MAXVALUE_ERROR",1481 },
518
 
    { "ER_PARTITION_SUBPARTITION_ERROR",1482 },
519
 
    { "ER_PARTITION_SUBPART_MIX_ERROR",1483 },
520
 
    { "ER_PARTITION_WRONG_NO_PART_ERROR",1484 },
521
 
    { "ER_PARTITION_WRONG_NO_SUBPART_ERROR",1485 },
522
 
    { "ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR",1486 },
523
 
    { "ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR",1487 },
524
 
    { "ER_FIELD_NOT_FOUND_PART_ERROR",1488 },
525
 
    { "ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR",1489 },
526
 
    { "ER_INCONSISTENT_PARTITION_INFO_ERROR",1490 },
527
 
    { "ER_PARTITION_FUNC_NOT_ALLOWED_ERROR",1491 },
528
 
    { "ER_PARTITIONS_MUST_BE_DEFINED_ERROR",1492 },
529
 
    { "ER_RANGE_NOT_INCREASING_ERROR",1493 },
530
 
    { "ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR",1494 },
531
 
    { "ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR",1495 },
532
 
    { "ER_PARTITION_ENTRY_ERROR",1496 },
533
 
    { "ER_MIX_HANDLER_ERROR",1497 },
534
 
    { "ER_PARTITION_NOT_DEFINED_ERROR",1498 },
535
 
    { "ER_TOO_MANY_PARTITIONS_ERROR",1499 },
536
 
    { "ER_SUBPARTITION_ERROR",1500 },
537
 
    { "ER_CANT_CREATE_HANDLER_FILE",1501 },
538
 
    { "ER_BLOB_FIELD_IN_PART_FUNC_ERROR",1502 },
539
 
    { "ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF",1503 },
540
 
    { "ER_NO_PARTS_ERROR",1504 },
541
 
    { "ER_PARTITION_MGMT_ON_NONPARTITIONED",1505 },
542
 
    { "ER_FOREIGN_KEY_ON_PARTITIONED",1506 },
543
 
    { "ER_DROP_PARTITION_NON_EXISTENT",1507 },
544
 
    { "ER_DROP_LAST_PARTITION",1508 },
545
 
    { "ER_COALESCE_ONLY_ON_HASH_PARTITION",1509 },
546
 
    { "ER_REORG_HASH_ONLY_ON_SAME_NO",1510 },
547
 
    { "ER_REORG_NO_PARAM_ERROR",1511 },
548
 
    { "ER_ONLY_ON_RANGE_LIST_PARTITION",1512 },
549
 
    { "ER_ADD_PARTITION_SUBPART_ERROR",1513 },
550
 
    { "ER_ADD_PARTITION_NO_NEW_PARTITION",1514 },
551
 
    { "ER_COALESCE_PARTITION_NO_PARTITION",1515 },
552
 
    { "ER_REORG_PARTITION_NOT_EXIST",1516 },
553
 
    { "ER_SAME_NAME_PARTITION",1517 },
554
 
    { "ER_NO_BINLOG_ERROR",1518 },
555
 
    { "ER_CONSECUTIVE_REORG_PARTITIONS",1519 },
556
 
    { "ER_REORG_OUTSIDE_RANGE",1520 },
557
 
    { "ER_PARTITION_FUNCTION_FAILURE",1521 },
558
 
    { "ER_PART_STATE_ERROR",1522 },
559
 
    { "ER_LIMITED_PART_RANGE",1523 },
560
 
    { "ER_PLUGIN_IS_NOT_LOADED",1524 },
561
 
    { "ER_WRONG_VALUE",1525 },
562
 
    { "ER_NO_PARTITION_FOR_GIVEN_VALUE",1526 },
563
 
    { "ER_FILEGROUP_OPTION_ONLY_ONCE",1527 },
564
 
    { "ER_CREATE_FILEGROUP_FAILED",1528 },
565
 
    { "ER_DROP_FILEGROUP_FAILED",1529 },
566
 
    { "ER_TABLESPACE_AUTO_EXTEND_ERROR",1530 },
567
 
    { "ER_WRONG_SIZE_NUMBER",1531 },
568
 
    { "ER_SIZE_OVERFLOW_ERROR",1532 },
569
 
    { "ER_ALTER_FILEGROUP_FAILED",1533 },
570
 
    { "ER_BINLOG_ROW_LOGGING_FAILED",1534 },
571
 
    { "ER_BINLOG_ROW_WRONG_TABLE_DEF",1535 },
572
 
    { "ER_BINLOG_ROW_RBR_TO_SBR",1536 },
573
 
    { "ER_EVENT_ALREADY_EXISTS",1537 },
574
 
    { "ER_EVENT_STORE_FAILED",1538 },
575
 
    { "ER_EVENT_DOES_NOT_EXIST",1539 },
576
 
    { "ER_EVENT_CANT_ALTER",1540 },
577
 
    { "ER_EVENT_DROP_FAILED",1541 },
578
 
    { "ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG",1542 },
579
 
    { "ER_EVENT_ENDS_BEFORE_STARTS",1543 },
580
 
    { "ER_EVENT_EXEC_TIME_IN_THE_PAST",1544 },
581
 
    { "ER_EVENT_OPEN_TABLE_FAILED",1545 },
582
 
    { "ER_EVENT_NEITHER_M_EXPR_NOR_M_AT",1546 },
583
 
    { "ER_COL_COUNT_DOESNT_MATCH_CORRUPTED",1547 },
584
 
    { "ER_CANNOT_LOAD_FROM_TABLE",1548 },
585
 
    { "ER_EVENT_CANNOT_DELETE",1549 },
586
 
    { "ER_EVENT_COMPILE_ERROR",1550 },
587
 
    { "ER_EVENT_SAME_NAME",1551 },
588
 
    { "ER_EVENT_DATA_TOO_LONG",1552 },
589
 
    { "ER_DROP_INDEX_FK",1553 },
590
 
    { "ER_WARN_DEPRECATED_SYNTAX_WITH_VER",1554 },
591
 
    { "ER_CANT_WRITE_LOCK_LOG_TABLE",1555 },
592
 
    { "ER_CANT_LOCK_LOG_TABLE",1556 },
593
 
    { "ER_FOREIGN_DUPLICATE_KEY",1557 },
594
 
    { "ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE",1558 },
595
 
    { "ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR",1559 },
596
 
    { "ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT",1560 },
597
 
    { "ER_NDB_CANT_SWITCH_BINLOG_FORMAT",1561 },
598
 
    { "ER_PARTITION_NO_TEMPORARY",1562 },
599
 
    { "ER_PARTITION_CONST_DOMAIN_ERROR",1563 },
600
 
    { "ER_PARTITION_FUNCTION_IS_NOT_ALLOWED",1564 },
601
 
    { "ER_DDL_LOG_ERROR",1565 },
602
 
    { "ER_NULL_IN_VALUES_LESS_THAN",1566 },
603
 
    { "ER_WRONG_PARTITION_NAME",1567 },
604
 
    { "ER_CANT_CHANGE_TX_ISOLATION",1568 },
605
 
    { "ER_DUP_ENTRY_AUTOINCREMENT_CASE",1569 },
606
 
    { "ER_EVENT_MODIFY_QUEUE_ERROR",1570 },
607
 
    { "ER_EVENT_SET_VAR_ERROR",1571 },
608
 
    { "ER_PARTITION_MERGE_ERROR",1572 },
609
 
    { "ER_CANT_ACTIVATE_LOG",1573 },
610
 
    { "ER_RBR_NOT_AVAILABLE",1574 },
611
 
    { "ER_BASE64_DECODE_ERROR",1575 },
612
 
    { "ER_EVENT_RECURSION_FORBIDDEN",1576 },
613
 
    { "ER_EVENTS_DB_ERROR",1577 },
614
 
    { "ER_ONLY_INTEGERS_ALLOWED",1578 },
615
 
    { "ER_UNSUPORTED_LOG_ENGINE",1579 },
616
 
    { "ER_BAD_LOG_STATEMENT",1580 },
617
 
    { "ER_CANT_RENAME_LOG_TABLE",1581 },
618
 
    { "ER_WRONG_PARAMCOUNT_TO_FUNCTION",1582 },
619
 
    { "ER_WRONG_PARAMETERS_TO_NATIVE_FCT",1583 },
620
 
    { "ER_WRONG_PARAMETERS_TO_STORED_FCT",1584 },
621
 
    { "ER_NATIVE_FCT_NAME_COLLISION",1585 },
622
 
    { "ER_DUP_ENTRY_WITH_KEY_NAME",1586 },
623
 
    { "ER_BINLOG_PURGE_EMFILE",1587 },
624
 
    { "ER_EVENT_CANNOT_CREATE_IN_THE_PAST",1588 },
625
 
    { "ER_EVENT_CANNOT_ALTER_IN_THE_PAST",1589 },
626
 
    { "ER_SLAVE_INCIDENT",1590 },
627
 
    { "ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT",1591 },
628
 
    { "ER_BINLOG_UNSAFE_STATEMENT",1592 },
629
 
    { "ER_SLAVE_FATAL_ERROR",1593 },
630
 
    { "ER_SLAVE_RELAY_LOG_READ_FAILURE",1594 },
631
 
    { "ER_SLAVE_RELAY_LOG_WRITE_FAILURE",1595 },
632
 
    { "ER_SLAVE_CREATE_EVENT_FAILURE",1596 },
633
 
    { "ER_SLAVE_MASTER_COM_FAILURE",1597 },
634
 
    { "ER_BINLOG_LOGGING_IMPOSSIBLE",1598 },
635
 
    { "ER_VIEW_NO_CREATION_CTX",1599 },
636
 
    { "ER_VIEW_INVALID_CREATION_CTX",1600 },
637
 
    { "ER_SR_INVALID_CREATION_CTX",1601 },
638
 
    { "ER_TRG_CORRUPTED_FILE",1602 },
639
 
    { "ER_TRG_NO_CREATION_CTX",1603 },
640
 
    { "ER_TRG_INVALID_CREATION_CTX",1604 },
641
 
    { "ER_EVENT_INVALID_CREATION_CTX",1605 },
642
 
    { "ER_TRG_CANT_OPEN_TABLE",1606 },
643
 
    { "ER_CANT_CREATE_SROUTINE",1607 },
644
 
    { "ER_SLAVE_AMBIGOUS_EXEC_MODE",1608 },
645
 
    { "ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT",1609 },
646
 
    { "ER_SLAVE_CORRUPT_EVENT",1610 },
647
 
    { "ER_LOAD_DATA_INVALID_COLUMN",1611 },
648
 
    { "ER_LOG_PURGE_NO_FILE",1612 },
649
 
    { "ER_WARN_AUTO_CONVERT_LOCK",1613 },
650
 
    { "ER_NO_AUTO_CONVERT_LOCK_STRICT",1614 },
651
 
    { "ER_NO_AUTO_CONVERT_LOCK_TRANSACTION",1615 },
652
 
    { "ER_NO_STORAGE_ENGINE",1616 },
653
 
    { "ER_BACKUP_BACKUP_START",1617 },
654
 
    { "ER_BACKUP_BACKUP_DONE",1618 },
655
 
    { "ER_BACKUP_RESTORE_START",1619 },
656
 
    { "ER_BACKUP_RESTORE_DONE",1620 },
657
 
    { "ER_BACKUP_NOTHING_TO_BACKUP",1621 },
658
 
    { "ER_BACKUP_CANNOT_INCLUDE_DB",1622 },
659
 
    { "ER_BACKUP_BACKUP",1623 },
660
 
    { "ER_BACKUP_RESTORE",1624 },
661
 
    { "ER_BACKUP_RUNNING",1625 },
662
 
    { "ER_BACKUP_BACKUP_PREPARE",1626 },
663
 
    { "ER_BACKUP_RESTORE_PREPARE",1627 },
664
 
    { "ER_BACKUP_INVALID_LOC",1628 },
665
 
    { "ER_BACKUP_READ_LOC",1629 },
666
 
    { "ER_BACKUP_WRITE_LOC",1630 },
667
 
    { "ER_BACKUP_LIST_DBS",1631 },
668
 
    { "ER_BACKUP_LIST_TABLES",1632 },
669
 
    { "ER_BACKUP_LIST_DB_TABLES",1633 },
670
 
    { "ER_BACKUP_SKIP_VIEW",1634 },
671
 
    { "ER_BACKUP_NO_ENGINE",1635 },
672
 
    { "ER_BACKUP_TABLE_OPEN",1636 },
673
 
    { "ER_BACKUP_READ_HEADER",1637 },
674
 
    { "ER_BACKUP_WRITE_HEADER",1638 },
675
 
    { "ER_BACKUP_NO_BACKUP_DRIVER",1639 },
676
 
    { "ER_BACKUP_NOT_ACCEPTED",1640 },
677
 
    { "ER_BACKUP_CREATE_BACKUP_DRIVER",1641 },
678
 
    { "ER_BACKUP_CREATE_RESTORE_DRIVER",1642 },
679
 
    { "ER_BACKUP_TOO_MANY_IMAGES",1643 },
680
 
    { "ER_BACKUP_WRITE_META",1644 },
681
 
    { "ER_BACKUP_READ_META",1645 },
682
 
    { "ER_BACKUP_CREATE_META",1646 },
683
 
    { "ER_BACKUP_GET_BUF",1647 },
684
 
    { "ER_BACKUP_WRITE_DATA",1648 },
685
 
    { "ER_BACKUP_READ_DATA",1649 },
686
 
    { "ER_BACKUP_NEXT_CHUNK",1650 },
687
 
    { "ER_BACKUP_INIT_BACKUP_DRIVER",1651 },
688
 
    { "ER_BACKUP_INIT_RESTORE_DRIVER",1652 },
689
 
    { "ER_BACKUP_STOP_BACKUP_DRIVER",1653 },
690
 
    { "ER_BACKUP_STOP_RESTORE_DRIVERS",1654 },
691
 
    { "ER_BACKUP_PREPARE_DRIVER",1655 },
692
 
    { "ER_BACKUP_CREATE_VP",1656 },
693
 
    { "ER_BACKUP_UNLOCK_DRIVER",1657 },
694
 
    { "ER_BACKUP_CANCEL_BACKUP",1658 },
695
 
    { "ER_BACKUP_CANCEL_RESTORE",1659 },
696
 
    { "ER_BACKUP_GET_DATA",1660 },
697
 
    { "ER_BACKUP_SEND_DATA",1661 },
698
 
    { "ER_BACKUP_SEND_DATA_RETRY",1662 },
699
 
    { "ER_BACKUP_OPEN_TABLES",1663 },
700
 
    { "ER_BACKUP_THREAD_INIT",1664 },
701
 
    { "ER_BACKUP_PROGRESS_TABLES",1665 },
702
 
    { "ER_TABLESPACE_EXIST",1666 },
703
 
    { "ER_NO_SUCH_TABLESPACE",1667 },
704
 
    { "ER_SLAVE_HEARTBEAT_FAILURE",1668 },
705
 
    { "ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE",1669 },
706
 
    { "ER_BACKUP_LOG_WRITE_ERROR",1670 },
707
 
    { "ER_TABLESPACE_NOT_EMPTY",1671 },
708
 
    { "ER_BACKUP_TS_CHANGE",1672 },
709
 
    { "ER_VCOL_BASED_ON_VCOL",1673 },
710
 
    { "ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED",1674 },
711
 
    { "ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN",1675 },
712
 
    { "ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN",1676 },
713
 
    { "ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN",1677 },
714
 
    { "ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN",1678 },
715
 
    { "ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN",1679 },
716
 
    { "ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN",1680 },
717
 
    { "ER_CONST_EXPR_IN_VCOL",1681 },
718
 
    { "ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE", 1692},
719
 
    { 0, 0 }
720
 
  };
721
 
 
722
 
  for (struct st_error *e=st_error_names;e->name;e++)
723
 
  {
724
 
    error_code_map.insert(pair<string, uint32_t>(e->name,e->code));
725
 
  }
726
 
}
727
 
 
728
 
uint32_t ErrorCodes::getErrorCode(const string &error_msg)
729
 
{
730
 
  return error_code_map[error_msg];
731
 
}