~drizzle-trunk/drizzle/development

2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
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
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
21
#pragma once
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
22
23
namespace drizzled { 
24
2054.1.2 by Brian Aker
Rename of the Loooongggggg error type over to simply drizzled::error_t
25
enum error_t {
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
26
27
  EE_OK=0,
28
  EE_ERROR_FIRST=1,
29
  EE_CANTCREATEFILE,
30
  EE_READ,
31
  EE_WRITE,
32
  EE_BADCLOSE,
33
  EE_OUTOFMEMORY,
34
  EE_DELETE,
35
  EE_LINK,
36
  EE_EOFERR,
37
  EE_CANTLOCK,
38
  EE_CANTUNLOCK,
39
  EE_DIR,
40
  EE_STAT,
41
  EE_CANT_CHSIZE,
42
  EE_CANT_OPEN_STREAM,
43
  EE_LINK_WARNING,
44
  EE_OPEN_WARNING,
45
  EE_DISK_FULL,
46
  EE_CANT_MKDIR,
47
  EE_UNKNOWN_CHARSET,
48
  EE_OUT_OF_FILERESOURCES,
49
  EE_CANT_READLINK,
50
  EE_CANT_SYMLINK,
51
  EE_REALPATH,
52
  EE_SYNC,
53
  EE_UNKNOWN_COLLATION,
54
  EE_FILENOTFOUND,
55
  EE_FILE_NOT_CLOSED,
56
  EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
57
2068.7.3 by Brian Aker
Merge in work for error messages being standardized by error_t
58
  HA_ERR_KEY_NOT_FOUND= 120,        /* Didn't find key on read or update */
59
  HA_ERR_FOUND_DUPP_KEY= 121,       /* Dupplicate key on write */
60
  HA_ERR_INTERNAL_ERROR=  122,      /* Internal error */
61
  HA_ERR_RECORD_CHANGED= 123,       /* Uppdate with is recoverable */
62
  HA_ERR_WRONG_INDEX= 124,          /* Wrong index given to function */
63
  HA_ERR_CRASHED= 126,              /* Indexfile is crashed */
64
  HA_ERR_WRONG_IN_RECORD= 127,      /* Record-file is crashed */
65
  HA_ERR_OUT_OF_MEM= 128,           /* Record-file is crashed */
66
  HA_ERR_NOT_A_TABLE= 130,          /* not a MYI file - no signature */
67
  HA_ERR_WRONG_COMMAND= 131,        /* Command not supported */
68
  HA_ERR_OLD_FILE= 132,             /* old databasfile */
69
  HA_ERR_NO_ACTIVE_RECORD= 133,     /* No record read in update() */
70
  HA_ERR_RECORD_DELETED= 134,       /* A record is not there */
71
  HA_ERR_RECORD_FILE_FULL= 135,     /* No more room in file */
72
  HA_ERR_INDEX_FILE_FULL= 136,      /* No more room in file */
73
  HA_ERR_END_OF_FILE= 137,          /* end in next/prev/first/last */
74
  HA_ERR_UNSUPPORTED= 138,          /* unsupported extension used */
75
  HA_ERR_TO_BIG_ROW= 139,           /* Too big row */
76
  HA_WRONG_CREATE_OPTION= 140,      /* Wrong create option */
77
  HA_ERR_FOUND_DUPP_UNIQUE= 141,    /* Dupplicate unique on write */
78
  HA_ERR_UNKNOWN_CHARSET = 142,     /* Can't open charset */
79
  HA_ERR_WRONG_MRG_TABLE_DEF= 143,  /* conflicting tables in MERGE */
80
  HA_ERR_CRASHED_ON_REPAIR=144,     /* Last (automatic?) repair failed */
81
  HA_ERR_CRASHED_ON_USAGE= 145,     /* Table must be repaired */
82
  HA_ERR_LOCK_WAIT_TIMEOUT= 146,
83
  HA_ERR_LOCK_TABLE_FULL=  147,
84
  HA_ERR_READ_ONLY_TRANSACTION= 148, /* Updates not allowed */
85
  HA_ERR_LOCK_DEADLOCK = 149,
86
  HA_ERR_CANNOT_ADD_FOREIGN= 150,    /* Cannot add a foreign key constr. */
87
  HA_ERR_NO_REFERENCED_ROW= 151,     /* Cannot add a child row */
88
  HA_ERR_ROW_IS_REFERENCED= 152,     /* Cannot delete a parent row */
89
  HA_ERR_NO_SAVEPOINT= 153,          /* No savepoint with that name */
90
  HA_ERR_NON_UNIQUE_BLOCK_SIZE= 154, /* Non unique key block size */
91
  HA_ERR_NO_SUCH_TABLE= 155,         /* The table does not exist in engine */
92
  HA_ERR_TABLE_EXIST= 156,           /* The table existed in storage engine */
93
  HA_ERR_NO_CONNECTION= 157,         /* Could not connect to storage engine */
94
  HA_ERR_NULL_IN_SPATIAL= 158,       /* NULLs are not supported in spatial index */
95
  HA_ERR_TABLE_DEF_CHANGED= 159,     /* The table changed in storage engine */
96
  HA_ERR_NO_PARTITION_FOUND= 160,    /* There's no partition in table for given value */
97
  HA_ERR_RBR_LOGGING_FAILED= 161,    /* Row-based binlogging of row failed */
98
  HA_ERR_DROP_INDEX_FK= 162,         /* Index needed in foreign key constr */
99
  HA_ERR_FOREIGN_DUPLICATE_KEY= 163, // Upholding foreign key constraints would lead to a duplicate key error
100
  HA_ERR_TABLE_NEEDS_UPGRADE= 164,   /* The table changed in storage engine */
101
  HA_ERR_TABLE_READONLY= 165,        /* The table is not writable */
102
  HA_ERR_AUTOINC_READ_FAILED= 166,   /* Failed to get next autoinc value */
103
  HA_ERR_AUTOINC_ERANGE= 167,        /* Failed to set row autoinc value */
104
  HA_ERR_GENERIC= 168,               /* Generic error */
105
  HA_ERR_RECORD_IS_THE_SAME= 169,    /* row not actually updated: new values same as the old values */
106
  HA_ERR_LOGGING_IMPOSSIBLE= 170,    /* It is not possible to log this statement */
107
  HA_ERR_TABLESPACE_EXIST= 171,
108
  HA_ERR_CORRUPT_EVENT= 172,         /* The event was corrupt, leading to illegal data being read */
109
  HA_ERR_NEW_FILE= 173,              /* New file format */
110
  HA_ERR_ROWS_EVENT_APPLY= 174,      /* The event could not be processed no other hanlder error happened */
111
  HA_ERR_INITIALIZATION= 175,        /* Error during initialization */
112
  HA_ERR_FILE_TOO_SHORT= 176,        /* File too short */
113
  HA_ERR_WRONG_CRC= 177,             /* Wrong CRC on page */
114
  HA_ERR_LOCK_OR_ACTIVE_TRANSACTION= 178,
115
  HA_ERR_NO_SUCH_TABLESPACE= 179,
116
  HA_ERR_TABLESPACE_NOT_EMPTY= 180,
117
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
118
  ER_ERROR_FIRST= 1000,
119
  ER_UNUSED1000= ER_ERROR_FIRST,
120
  ER_UNUSED1001,
121
  ER_NO,
122
  ER_YES,
123
  ER_CANT_CREATE_FILE,
124
  ER_CANT_CREATE_TABLE,
125
  ER_CANT_CREATE_DB,
126
  ER_DB_CREATE_EXISTS,
127
  ER_DB_DROP_EXISTS,
128
  ER_UNUSED1009,
129
  ER_UNUSED1010,
130
  ER_CANT_DELETE_FILE,
131
  ER_UNUSED1012,
132
  ER_CANT_GET_STAT,
133
  ER_UNUSED1014,
134
  ER_CANT_LOCK,
135
  ER_CANT_OPEN_FILE,
136
  ER_FILE_NOT_FOUND,
137
  ER_CANT_READ_DIR,
138
  ER_UNUSED1019,
139
  ER_CHECKREAD,
140
  ER_DISK_FULL,
141
  ER_DUP_KEY,
142
  ER_ERROR_ON_CLOSE,
143
  ER_ERROR_ON_READ,
144
  ER_ERROR_ON_RENAME,
145
  ER_ERROR_ON_WRITE,
146
  ER_FILE_USED,
147
  ER_FILSORT_ABORT,
148
  ER_UNUSED1029,
149
  ER_GET_ERRNO,
150
  ER_ILLEGAL_HA,
151
  ER_KEY_NOT_FOUND,
152
  ER_NOT_FORM_FILE,
153
  ER_NOT_KEYFILE,
154
  ER_OLD_KEYFILE,
155
  ER_OPEN_AS_READONLY,
156
  ER_OUTOFMEMORY,
157
  ER_OUT_OF_SORTMEMORY,
158
  ER_UNEXPECTED_EOF,
159
  ER_CON_COUNT_ERROR,
160
  ER_OUT_OF_RESOURCES,
161
  ER_BAD_HOST_ERROR,
162
  ER_HANDSHAKE_ERROR,
163
  ER_DBACCESS_DENIED_ERROR,
164
  ER_ACCESS_DENIED_ERROR,
165
  ER_NO_DB_ERROR,
166
  ER_UNKNOWN_COM_ERROR,
167
  ER_BAD_NULL_ERROR,
168
  ER_BAD_DB_ERROR,
169
  ER_TABLE_EXISTS_ERROR,
170
  ER_BAD_TABLE_ERROR,
171
  ER_NON_UNIQ_ERROR,
172
  ER_SERVER_SHUTDOWN,
173
  ER_BAD_FIELD_ERROR,
174
  ER_WRONG_FIELD_WITH_GROUP,
175
  ER_WRONG_GROUP_FIELD,
176
  ER_WRONG_SUM_SELECT,
177
  ER_WRONG_VALUE_COUNT,
178
  ER_TOO_LONG_IDENT,
179
  ER_DUP_FIELDNAME,
180
  ER_DUP_KEYNAME,
181
  ER_DUP_ENTRY,
182
  ER_WRONG_FIELD_SPEC,
183
  ER_PARSE_ERROR,
184
  ER_EMPTY_QUERY,
185
  ER_NONUNIQ_TABLE,
186
  ER_INVALID_DEFAULT,
187
  ER_MULTIPLE_PRI_KEY,
188
  ER_TOO_MANY_KEYS,
189
  ER_TOO_MANY_KEY_PARTS,
190
  ER_TOO_LONG_KEY,
191
  ER_KEY_COLUMN_DOES_NOT_EXITS,
192
  ER_BLOB_USED_AS_KEY,
193
  ER_TOO_BIG_FIELDLENGTH,
194
  ER_WRONG_AUTO_KEY,
195
  ER_UNUSED1076,
196
  ER_NORMAL_SHUTDOWN,
197
  ER_GOT_SIGNAL,
198
  ER_SHUTDOWN_COMPLETE,
199
  ER_FORCING_CLOSE,
200
  ER_IPSOCK_ERROR,
201
  ER_NO_SUCH_INDEX,
202
  ER_WRONG_FIELD_TERMINATORS,
203
  ER_BLOBS_AND_NO_TERMINATED,
204
  ER_TEXTFILE_NOT_READABLE,
205
  ER_FILE_EXISTS_ERROR,
206
  ER_LOAD_INFO,
207
  ER_UNUSED1088,
208
  ER_WRONG_SUB_KEY,
209
  ER_CANT_REMOVE_ALL_FIELDS,
210
  ER_CANT_DROP_FIELD_OR_KEY,
211
  ER_INSERT_INFO,
212
  ER_UPDATE_TABLE_USED,
213
  ER_NO_SUCH_THREAD,
214
  ER_KILL_DENIED_ERROR,
215
  ER_NO_TABLES_USED,
216
  ER_UNUSED1097,
217
  ER_UNUSED1098,
218
  ER_UNUSED1099,
219
  ER_UNUSED1100,
220
  ER_BLOB_CANT_HAVE_DEFAULT,
221
  ER_WRONG_DB_NAME,
222
  ER_WRONG_TABLE_NAME,
223
  ER_TOO_BIG_SELECT,
224
  ER_UNKNOWN_ERROR,
225
  ER_UNKNOWN_PROCEDURE,
226
  ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
227
  ER_UNUSED1108,
228
  ER_UNKNOWN_TABLE,
229
  ER_FIELD_SPECIFIED_TWICE,
230
  ER_INVALID_GROUP_FUNC_USE,
231
  ER_UNSUPPORTED_EXTENSION,
232
  ER_TABLE_MUST_HAVE_COLUMNS,
233
  ER_RECORD_FILE_FULL,
234
  ER_UNUSED1115,
235
  ER_TOO_MANY_TABLES,
236
  ER_TOO_MANY_FIELDS,
237
  ER_TOO_BIG_ROWSIZE,
238
  ER_UNUSED1119,
239
  ER_WRONG_OUTER_JOIN,
240
  ER_NULL_COLUMN_IN_INDEX,
241
  ER_UNUSED1122,
242
  ER_UNUSED1123,
243
  ER_PLUGIN_NO_PATHS,
244
  ER_PLUGIN_EXISTS,
245
  ER_CANT_OPEN_LIBRARY,
246
  ER_CANT_FIND_DL_ENTRY,
247
  ER_UNUSED1128,
248
  ER_UNUSED1129,
249
  ER_UNUSED1130,
250
  ER_UNUSED1131,
251
  ER_UNUSED1132,
252
  ER_UNUSED1133,
253
  ER_UPDATE_INFO,
254
  ER_CANT_CREATE_THREAD,
255
  ER_WRONG_VALUE_COUNT_ON_ROW,
256
  ER_CANT_REOPEN_TABLE,
2159.2.8 by Brian Aker
Merge in fixes for error messages with privs.
257
  ER_INVALID_USE_OF_NULL,
258
  ER_REGEXP_ERROR,
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
259
  ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
2159.2.8 by Brian Aker
Merge in fixes for error messages with privs.
260
  ER_NONEXISTING_GRANT,
261
  ER_TABLEACCESS_DENIED_ERROR,
262
  ER_COLUMNACCESS_DENIED_ERROR,
263
  ER_ILLEGAL_GRANT_FOR_TABLE,
264
  ER_GRANT_WRONG_HOST_OR_USER,
2140.1.3 by Brian Aker
Merge in error message fix for just one type of error for unknown table.
265
  ER_TABLE_UNKNOWN,
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
266
  ER_UNUSED1147,
267
  ER_UNUSED1148,
268
  ER_SYNTAX_ERROR,
269
  ER_UNUSED1150,
270
  ER_UNUSED1151,
271
  ER_UNUSED1152,
272
  ER_NET_PACKET_TOO_LARGE,
273
  ER_UNUSED1154,
274
  ER_UNUSED1155,
275
  ER_NET_PACKETS_OUT_OF_ORDER,
276
  ER_UNUSED1157,
277
  ER_UNUSED1158,
278
  ER_UNUSED1159,
279
  ER_UNUSED1160,
280
  ER_UNUSED1161,
281
  ER_UNUSED1162,
282
  ER_TABLE_CANT_HANDLE_BLOB,
283
  ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
284
  ER_UNUSED1165,
285
  ER_WRONG_COLUMN_NAME,
286
  ER_WRONG_KEY_COLUMN,
287
  ER_WRONG_MRG_TABLE,
288
  ER_DUP_UNIQUE,
289
  ER_BLOB_KEY_WITHOUT_LENGTH,
290
  ER_PRIMARY_CANT_HAVE_NULL,
291
  ER_TOO_MANY_ROWS,
292
  ER_REQUIRES_PRIMARY_KEY,
293
  ER_UNUSED1174,
294
  ER_UNUSED1175,
295
  ER_KEY_DOES_NOT_EXITS,
296
  ER_CHECK_NO_SUCH_TABLE,
297
  ER_CHECK_NOT_IMPLEMENTED,
298
  ER_UNUSED1179,
299
  ER_ERROR_DURING_COMMIT,
300
  ER_ERROR_DURING_ROLLBACK,
301
  ER_UNUSED1182,
302
  ER_UNUSED1183,
303
  ER_NEW_ABORTING_CONNECTION,
304
  ER_UNUSED1185,
305
  ER_UNUSED1186,
306
  ER_UNUSED1187,
307
  ER_UNUSED1188,
308
  ER_UNUSED1189,
309
  ER_UNUSED1190,
310
  ER_UNUSED1191,
311
  ER_LOCK_OR_ACTIVE_TRANSACTION,
312
  ER_UNKNOWN_SYSTEM_VARIABLE,
313
  ER_CRASHED_ON_USAGE,
314
  ER_CRASHED_ON_REPAIR,
315
  ER_WARNING_NOT_COMPLETE_ROLLBACK,
316
  ER_UNUSED1197,
317
  ER_UNUSED1198,
318
  ER_UNUSED1199,
319
  ER_UNUSED1200,
320
  ER_UNUSED1201,
321
  ER_UNUSED1202,
322
  ER_UNUSED1203,
323
  ER_SET_CONSTANTS_ONLY,
324
  ER_LOCK_WAIT_TIMEOUT,
325
  ER_LOCK_TABLE_FULL,
326
  ER_READ_ONLY_TRANSACTION,
327
  ER_DROP_DB_WITH_READ_LOCK,
328
  ER_UNUSED1209,
329
  ER_WRONG_ARGUMENTS,
330
  ER_UNUSED1211,
331
  ER_UNUSED1212,
332
  ER_LOCK_DEADLOCK,
333
  ER_TABLE_CANT_HANDLE_FT,
334
  ER_CANNOT_ADD_FOREIGN,
335
  ER_NO_REFERENCED_ROW,
336
  ER_ROW_IS_REFERENCED,
337
  ER_UNUSED1218,
338
  ER_UNUSED1219,
339
  ER_UNUSED1220,
340
  ER_WRONG_USAGE,
341
  ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
342
  ER_CANT_UPDATE_WITH_READLOCK,
343
  ER_UNUSED1224,
344
  ER_UNUSED1225,
345
  ER_UNUSED1226,
346
  ER_UNUSED1227,
347
  ER_LOCAL_VARIABLE,
348
  ER_GLOBAL_VARIABLE,
349
  ER_NO_DEFAULT,
350
  ER_WRONG_VALUE_FOR_VAR,
351
  ER_WRONG_TYPE_FOR_VAR,
352
  ER_VAR_CANT_BE_READ,
353
  ER_CANT_USE_OPTION_HERE,
354
  ER_NOT_SUPPORTED_YET,
355
  ER_UNUSED1236,
356
  ER_UNUSED1237,
357
  ER_INCORRECT_GLOBAL_LOCAL_VAR,
358
  ER_WRONG_FK_DEF,
359
  ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
360
  ER_OPERAND_COLUMNS,
361
  ER_SUBQUERY_NO_1_ROW,
362
  ER_UNUSED1243,
363
  ER_UNUSED1244,
364
  ER_UNUSED1245,
365
  ER_AUTO_CONVERT,
366
  ER_ILLEGAL_REFERENCE,
367
  ER_DERIVED_MUST_HAVE_ALIAS,
368
  ER_SELECT_REDUCED,
369
  ER_TABLENAME_NOT_ALLOWED_HERE,
370
  ER_UNUSED1251,
371
  ER_SPATIAL_CANT_HAVE_NULL,
372
  ER_COLLATION_CHARSET_MISMATCH,
373
  ER_UNUSED1254,
374
  ER_UNUSED1255,
375
  ER_TOO_BIG_FOR_UNCOMPRESS,
376
  ER_ZLIB_Z_MEM_ERROR,
377
  ER_ZLIB_Z_BUF_ERROR,
378
  ER_ZLIB_Z_DATA_ERROR,
379
  ER_CUT_VALUE_GROUP_CONCAT,
380
  ER_WARN_TOO_FEW_RECORDS,
381
  ER_WARN_TOO_MANY_RECORDS,
382
  ER_WARN_NULL_TO_NOTNULL,
383
  ER_WARN_DATA_OUT_OF_RANGE,
384
  ER_WARN_DATA_TRUNCATED,
385
  ER_UNUSED1266,
386
  ER_CANT_AGGREGATE_2COLLATIONS,
387
  ER_UNUSED1268,
388
  ER_UNUSED1269,
389
  ER_CANT_AGGREGATE_3COLLATIONS,
390
  ER_CANT_AGGREGATE_NCOLLATIONS,
391
  ER_VARIABLE_IS_NOT_STRUCT,
392
  ER_UNKNOWN_COLLATION,
393
  ER_UNUSED1274,
394
  ER_UNUSED1275,
395
  ER_WARN_FIELD_RESOLVED,
396
  ER_UNUSED1277,
397
  ER_UNUSED1278,
398
  ER_UNUSED1279,
399
  ER_WRONG_NAME_FOR_INDEX,
400
  ER_WRONG_NAME_FOR_CATALOG,
401
  ER_UNUSED1282,
402
  ER_BAD_FT_COLUMN,
403
  ER_UNUSED1284,
404
  ER_UNUSED1285,
405
  ER_UNKNOWN_STORAGE_ENGINE,
406
  ER_UNUSED1287,
407
  ER_NON_UPDATABLE_TABLE,
408
  ER_FEATURE_DISABLED,
409
  ER_OPTION_PREVENTS_STATEMENT,
410
  ER_DUPLICATED_VALUE_IN_TYPE,
411
  ER_TRUNCATED_WRONG_VALUE,
412
  ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
413
  ER_INVALID_ON_UPDATE,
414
  ER_UNUSED1295,
415
  ER_GET_ERRMSG,
416
  ER_GET_TEMPORARY_ERRMSG,
417
  ER_UNKNOWN_TIME_ZONE,
418
  ER_UNUSED1299,
419
  ER_INVALID_CHARACTER_STRING,
420
  ER_WARN_ALLOWED_PACKET_OVERFLOWED,
421
  ER_UNUSED1302,
422
  ER_UNUSED1303,
423
  ER_UNUSED1304,
424
  ER_SP_DOES_NOT_EXIST,
425
  ER_UNUSED1306,
426
  ER_UNUSED1307,
427
  ER_UNUSED1308,
428
  ER_UNUSED1309,
429
  ER_UNUSED1310,
430
  ER_UNUSED1311,
431
  ER_UNUSED1312,
432
  ER_UNUSED1313,
433
  ER_UNUSED1314,
434
  ER_UNUSED1315,
435
  ER_UNUSED1316,
436
  ER_QUERY_INTERRUPTED,
437
  ER_UNUSED1318,
438
  ER_UNUSED1319,
439
  ER_UNUSED1320,
440
  ER_UNUSED1321,
441
  ER_UNUSED1322,
442
  ER_UNUSED1323,
443
  ER_UNUSED1324,
444
  ER_UNUSED1325,
445
  ER_UNUSED1326,
446
  ER_UNUSED1327,
447
  ER_UNUSED1328,
448
  ER_SP_FETCH_NO_DATA,
449
  ER_UNUSED1330,
450
  ER_UNUSED1331,
451
  ER_UNUSED1332,
452
  ER_UNUSED1333,
453
  ER_UNUSED1334,
454
  ER_UNUSED1335,
455
  ER_UNUSED1336,
456
  ER_UNUSED1337,
457
  ER_UNUSED1338,
458
  ER_UNUSED1339,
459
  ER_UNUSED1340,
460
  ER_UNUSED1341,
461
  ER_UNUSED1342,
462
  ER_UNUSED1343,
463
  ER_UNUSED1344,
464
  ER_UNUSED1345,
465
  ER_UNUSED1346,
466
  ER_UNUSED1347,
467
  ER_UNUSED1348,
468
  ER_UNUSED1349,
469
  ER_UNUSED1350,
470
  ER_UNUSED1351,
471
  ER_UNUSED1352,
472
  ER_UNUSED1353,
473
  ER_UNUSED1354,
474
  ER_UNUSED1355,
475
  ER_VIEW_INVALID,
476
  ER_UNUSED1357,
477
  ER_UNUSED1358,
478
  ER_UNUSED1359,
479
  ER_UNUSED1360,
480
  ER_UNUSED1361,
481
  ER_UNUSED1362,
482
  ER_UNUSED1363,
483
  ER_NO_DEFAULT_FOR_FIELD,
484
  ER_DIVISION_BY_ZERO,
485
  ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
486
  ER_ILLEGAL_VALUE_FOR_TYPE,
487
  ER_UNUSED1368,
488
  ER_UNUSED1369,
489
  ER_UNUSED1370,
490
  ER_UNUSED1371,
491
  ER_UNUSED1372,
492
  ER_UNUSED1373,
493
  ER_UNUSED1374,
494
  ER_UNUSED1375,
495
  ER_UNUSED1376,
496
  ER_UNUSED1377,
497
  ER_UNUSED1378,
498
  ER_UNUSED1379,
499
  ER_UNUSED1380,
500
  ER_UNUSED1381,
501
  ER_UNUSED1382,
502
  ER_UNUSED1383,
503
  ER_UNUSED1384,
504
  ER_UNUSED1385,
505
  ER_UNUSED1386,
506
  ER_UNUSED1387,
507
  ER_UNUSED1388,
508
  ER_UNUSED1389,
509
  ER_UNUSED1390,
510
  ER_KEY_PART_0,
511
  ER_UNUSED1392,
512
  ER_UNUSED1393,
513
  ER_UNUSED1394,
514
  ER_UNUSED1395,
515
  ER_UNUSED1396,
516
  ER_UNUSED1397,
517
  ER_UNUSED1398,
518
  ER_XAER_RMFAIL,
519
  ER_UNUSED1400,
520
  ER_UNUSED1401,
521
  ER_UNUSED1402,
522
  ER_UNUSED1403,
523
  ER_UNUSED1404,
524
  ER_UNUSED1405,
525
  ER_DATA_TOO_LONG,
526
  ER_UNUSED1407,
527
  ER_STARTUP,
528
  ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
529
  ER_UNUSED1410,
530
  ER_WRONG_VALUE_FOR_TYPE,
531
  ER_TABLE_DEF_CHANGED,
532
  ER_UNUSED1413,
533
  ER_UNUSED1414,
534
  ER_SP_NO_RETSET,
535
  ER_CANT_CREATE_GEOMETRY_OBJECT,
536
  ER_UNUSED1417,
537
  ER_UNUSED1418,
538
  ER_UNUSED1419,
539
  ER_UNUSED1420,
540
  ER_UNUSED1421,
541
  ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
542
  ER_UNUSED1423,
543
  ER_UNUSED1424,
544
  ER_TOO_BIG_SCALE,
545
  ER_TOO_BIG_PRECISION,
546
  ER_M_BIGGER_THAN_D,
547
  ER_UNUSED1428,
548
  ER_UNUSED1429,
549
  ER_UNUSED1430,
550
  ER_UNUSED1431,
551
  ER_UNUSED1432,
552
  ER_UNUSED1433,
553
  ER_UNUSED1434,
554
  ER_TRG_IN_WRONG_SCHEMA,
555
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
556
  ER_UNUSED1437,
557
  ER_UNUSED1438,
558
  ER_TOO_BIG_DISPLAYWIDTH,
559
  ER_UNUSED1440,
560
  ER_DATETIME_FUNCTION_OVERFLOW,
561
  ER_UNUSED1442,
562
  ER_UNUSED1443,
563
  ER_UNUSED1444,
564
  ER_UNUSED1445,
565
  ER_UNUSED1446,
566
  ER_UNUSED1447,
567
  ER_UNUSED1448,
568
  ER_UNUSED1449,
569
  ER_UNUSED1450,
570
  ER_ROW_IS_REFERENCED_2,
571
  ER_NO_REFERENCED_ROW_2,
572
  ER_UNUSED1453,
573
  ER_UNUSED1454,
574
  ER_UNUSED1455,
575
  ER_UNUSED1456,
576
  ER_UNUSED1457,
577
  ER_UNUSED1458,
578
  ER_TABLE_NEEDS_UPGRADE,
579
  ER_UNUSED1460,
580
  ER_UNUSED1461,
581
  ER_UNUSED1462,
582
  ER_NON_GROUPING_FIELD_USED,
583
  ER_TABLE_CANT_HANDLE_SPKEYS,
584
  ER_UNUSED1465,
585
  ER_REMOVED_SPACES,
586
  ER_AUTOINC_READ_FAILED,
587
  ER_UNUSED1468,
588
  ER_UNUSED1469,
589
  ER_WRONG_STRING_LENGTH,
590
  ER_UNUSED1471,
591
  ER_UNUSED1472,
592
  ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
593
  ER_NAME_BECOMES_EMPTY,
594
  ER_AMBIGUOUS_FIELD_TERM,
595
  ER_UNUSED1476,
596
  ER_UNUSED1477,
597
  ER_ILLEGAL_HA_CREATE_OPTION,
598
  ER_UNUSED1479,
599
  ER_UNUSED1480,
600
  ER_UNUSED1481,
601
  ER_UNUSED1482,
602
  ER_UNUSED1483,
603
  ER_UNUSED1484,
604
  ER_UNUSED1485,
605
  ER_UNUSED1486,
606
  ER_UNUSED1487,
607
  ER_UNUSED1488,
608
  ER_UNUSED1489,
609
  ER_UNUSED1490,
610
  ER_UNUSED1491,
611
  ER_UNUSED1492,
612
  ER_UNUSED1493,
613
  ER_UNUSED1494,
614
  ER_UNUSED1495,
615
  ER_UNUSED1496,
616
  ER_UNUSED1497,
617
  ER_UNUSED1498,
618
  ER_UNUSED1499,
619
  ER_UNUSED1500,
620
  ER_UNUSED1501,
621
  ER_UNUSED1502,
622
  ER_UNUSED1503,
623
  ER_UNUSED1504,
624
  ER_UNUSED1505,
625
  ER_UNUSED1506,
626
  ER_UNUSED1507,
627
  ER_UNUSED1508,
628
  ER_UNUSED1509,
629
  ER_UNUSED1510,
630
  ER_UNUSED1511,
631
  ER_UNUSED1512,
632
  ER_UNUSED1513,
633
  ER_UNUSED1514,
634
  ER_UNUSED1515,
635
  ER_UNUSED1516,
636
  ER_UNUSED1517,
637
  ER_UNUSED1518,
638
  ER_UNUSED1519,
639
  ER_UNUSED1520,
640
  ER_UNUSED1521,
641
  ER_UNUSED1522,
642
  ER_UNUSED1523,
643
  ER_INVALID_OPTION_VALUE,
644
  ER_WRONG_VALUE,
645
  ER_NO_PARTITION_FOR_GIVEN_VALUE,
646
  ER_UNUSED1527,
647
  ER_UNUSED1528,
648
  ER_UNUSED1529,
649
  ER_UNUSED1530,
650
  ER_UNUSED1531,
651
  ER_UNUSED1532,
652
  ER_UNUSED1533,
653
  ER_BINLOG_ROW_LOGGING_FAILED,
654
  ER_UNUSED1535,
655
  ER_UNUSED1536,
656
  ER_UNUSED1537,
657
  ER_UNUSED1538,
658
  ER_UNUSED1539,
659
  ER_UNUSED1540,
660
  ER_UNUSED1541,
661
  ER_UNUSED1542,
662
  ER_UNUSED1543,
663
  ER_UNUSED1544,
664
  ER_UNUSED1545,
665
  ER_UNUSED1546,
666
  ER_UNUSED1547,
667
  ER_UNUSED1548,
668
  ER_UNUSED1549,
669
  ER_UNUSED1550,
670
  ER_UNUSED1551,
671
  ER_UNUSED1552,
672
  ER_DROP_INDEX_FK,
673
  ER_UNUSED1554,
674
  ER_UNUSED1555,
675
  ER_UNUSED1556,
676
  ER_FOREIGN_DUPLICATE_KEY,
677
  ER_UNUSED1558,
678
  ER_UNUSED1559,
679
  ER_UNUSED1560,
680
  ER_UNUSED1561,
681
  ER_UNUSED1562,
682
  ER_UNUSED1563,
683
  ER_UNUSED1564,
684
  ER_UNUSED1565,
685
  ER_UNUSED1566,
686
  ER_UNUSED1567,
687
  ER_CANT_CHANGE_TX_ISOLATION,
688
  ER_UNUSED1569,
689
  ER_UNUSED1570,
690
  ER_UNUSED1571,
691
  ER_UNUSED1572,
692
  ER_UNUSED1573,
693
  ER_UNUSED1574,
694
  ER_UNUSED1575,
695
  ER_UNUSED1576,
696
  ER_UNUSED1577,
697
  ER_UNUSED1578,
698
  ER_UNUSED1579,
699
  ER_UNUSED1580,
700
  ER_UNUSED1581,
701
  ER_WRONG_PARAMCOUNT_TO_FUNCTION,
702
  ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
703
  ER_UNUSED1584,
704
  ER_UNUSED1585,
705
  ER_DUP_ENTRY_WITH_KEY_NAME,
706
  ER_UNUSED1587,
707
  ER_UNUSED1588,
708
  ER_UNUSED1589,
709
  ER_UNUSED1590,
710
  ER_UNUSED1591,
711
  ER_UNUSED1592,
712
  ER_UNUSED1593,
713
  ER_UNUSED1594,
714
  ER_UNUSED1595,
715
  ER_UNUSED1596,
716
  ER_UNUSED1597,
717
  ER_UNUSED1598,
718
  ER_UNUSED1599,
719
  ER_UNUSED1600,
720
  ER_UNUSED1601,
721
  ER_UNUSED1602,
722
  ER_UNUSED1603,
723
  ER_UNUSED1604,
724
  ER_UNUSED1605,
725
  ER_UNUSED1606,
726
  ER_UNUSED1607,
727
  ER_UNUSED1608,
728
  ER_UNUSED1609,
729
  ER_UNUSED1610,
730
  ER_LOAD_DATA_INVALID_COLUMN,
731
  ER_UNUSED1612,
732
  ER_UNUSED1613,
733
  ER_UNUSED1614,
734
  ER_UNUSED1615,
735
  ER_UNUSED1616,
736
  ER_UNUSED1617,
737
  ER_UNUSED1618,
738
  ER_UNUSED1619,
739
  ER_UNUSED1620,
740
  ER_UNUSED1621,
741
  ER_UNUSED1622,
742
  ER_UNUSED1623,
743
  ER_UNUSED1624,
744
  ER_UNUSED1625,
745
  ER_UNUSED1626,
746
  ER_UNUSED1627,
747
  ER_UNUSED1628,
748
  ER_UNUSED1629,
749
  ER_UNUSED1630,
750
  ER_UNUSED1631,
751
  ER_UNUSED1632,
752
  ER_UNUSED1633,
753
  ER_UNUSED1634,
754
  ER_UNUSED1635,
755
  ER_UNUSED1636,
756
  ER_UNUSED1637,
757
  ER_UNUSED1638,
758
  ER_UNUSED1639,
759
  ER_UNUSED1640,
760
  ER_UNUSED1641,
761
  ER_UNUSED1642,
762
  ER_UNUSED1643,
763
  ER_UNUSED1644,
764
  ER_UNUSED1645,
765
  ER_UNUSED1646,
766
  ER_UNUSED1647,
767
  ER_UNUSED1648,
768
  ER_UNUSED1649,
769
  ER_UNUSED1650,
770
  ER_UNUSED1651,
771
  ER_UNUSED1652,
772
  ER_UNUSED1653,
773
  ER_UNUSED1654,
774
  ER_UNUSED1655,
775
  ER_UNUSED1656,
776
  ER_UNUSED1657,
777
  ER_UNUSED1658,
778
  ER_UNUSED1659,
779
  ER_UNUSED1660,
780
  ER_UNUSED1661,
781
  ER_UNUSED1662,
782
  ER_UNUSED1663,
783
  ER_UNUSED1664,
784
  ER_UNUSED1665,
785
  ER_UNUSED1666,
786
  ER_UNUSED1667,
787
  ER_UNUSED1668,
788
  ER_UNUSED1669,
789
  ER_UNUSED1670,
790
  ER_UNUSED1671,
791
  ER_UNUSED1672,
792
  ER_UNUSED1673,
793
  ER_UNUSED1674,
794
  ER_UNUSED1675,
795
  ER_UNUSED1676,
796
  ER_UNUSED1677,
797
  ER_UNUSED1678,
798
  ER_UNUSED1679,
799
  ER_UNUSED1680,
800
  ER_UNUSED1681,
801
  ER_UNUSED1682,
802
  ER_UNUSED1683,
803
  ER_UNUSED1684,
804
  ER_INVALID_UNIX_TIMESTAMP_VALUE,
805
  ER_INVALID_DATETIME_VALUE,
806
  ER_INVALID_NULL_ARGUMENT,
807
  ER_UNUSED1688,
808
  ER_ARGUMENT_OUT_OF_RANGE,
809
  ER_UNUSED1690,
810
  ER_INVALID_ENUM_VALUE,
811
  ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
812
  ER_CORRUPT_TABLE_DEFINITION,
813
  ER_SCHEMA_DOES_NOT_EXIST,
814
  ER_ALTER_SCHEMA,
815
  ER_DROP_SCHEMA,
816
  ER_USE_SQL_BIG_RESULT,
817
  ER_UNKNOWN_ENGINE_OPTION,
818
  ER_UNKNOWN_SCHEMA_OPTION,
819
  ER_EVENT_OBSERVER_PLUGIN,
820
  ER_CORRUPT_SCHEMA_DEFINITION,
821
  ER_OUT_OF_GLOBAL_SORTMEMORY,
822
  ER_OUT_OF_GLOBAL_JOINMEMORY,
823
  ER_OUT_OF_GLOBAL_READRNDMEMORY,
824
  ER_OUT_OF_GLOBAL_READMEMORY,
825
  ER_USER_LOCKS_CANT_WAIT_ON_OWN_BARRIER,
826
  ER_USER_LOCKS_UNKNOWN_BARRIER,
827
  ER_USER_LOCKS_NOT_OWNER_OF_BARRIER,
828
  ER_USER_LOCKS_CANT_WAIT_ON_OWN_LOCK,
829
  ER_USER_LOCKS_NOT_OWNER_OF_LOCK,
830
  ER_USER_LOCKS_INVALID_NAME_BARRIER,
831
  ER_USER_LOCKS_INVALID_NAME_LOCK,
832
  ER_KILL_DENY_SELF_ERROR,
833
  ER_INVALID_ALTER_TABLE_FOR_NOT_NULL,
834
  ER_ADMIN_ACCESS,
835
  ER_ASSERT,
836
  ER_ASSERT_NULL,
2060.4.1 by Brian Aker
Merge in trunk to catalogs.
837
  ER_CATALOG_CANNOT_CREATE,
2079.1.1 by Brian Aker
Merge of current catalogs
838
  ER_CATALOG_CANNOT_CREATE_PERMISSION,
2060.4.1 by Brian Aker
Merge in trunk to catalogs.
839
  ER_CATALOG_CANNOT_DROP,
2079.1.1 by Brian Aker
Merge of current catalogs
840
  ER_CATALOG_CANNOT_DROP_PERMISSION,
841
  ER_CATALOG_DOES_NOT_EXIST,
842
  ER_CATALOG_NO_DROP_LOCAL,
2060.4.1 by Brian Aker
Merge in trunk to catalogs.
843
  ER_CATALOG_NO_LOCK,
844
  ER_CORRUPT_CATALOG_DEFINITION,
2093 by Brian Aker
Merge in update so that test-run.pl runs all of test/suite and fix for
845
  ER_CORRUPT_TABLE_DEFINITION_ENUM,
2082.4.1 by Brian Aker
Merge in trunk.
846
  ER_CORRUPT_TABLE_DEFINITION_UNKNOWN,
2093 by Brian Aker
Merge in update so that test-run.pl runs all of test/suite and fix for
847
  ER_CORRUPT_TABLE_DEFINITION_UNKNOWN_COLLATION,
2082.4.1 by Brian Aker
Merge in trunk.
848
  ER_INVALID_BOOLEAN_VALUE,
2093 by Brian Aker
Merge in update so that test-run.pl runs all of test/suite and fix for
849
  ER_INVALID_CAST_TO_SIGNED,
850
  ER_INVALID_CAST_TO_UNSIGNED,
2082.4.1 by Brian Aker
Merge in trunk.
851
  ER_INVALID_UUID_TIME,
852
  ER_INVALID_UUID_VALUE,
2093 by Brian Aker
Merge in update so that test-run.pl runs all of test/suite and fix for
853
  ER_SQL_KEYWORD,
2079.3.1 by Brian Aker
Rework the CREATE TABLE LIKE call.
854
  ER_TABLE_DROP,
2068.7.1 by Brian Aker
First pass through error correction in SE interface for drop table.
855
  ER_TABLE_DROP_ERROR_OCCURRED,
856
  ER_TABLE_PERMISSION_DENIED,
2097.1.1 by Brian Aker
Merge in time code.
857
  ER_INVALID_TIMESTAMP_VALUE,
2079.3.1 by Brian Aker
Rework the CREATE TABLE LIKE call.
858
2126.2.1 by Brian Aker
Merge in changes for catalogs usage of constants for identifier.
859
  ER_SCHEMA_CANNOT_CREATE,
2104.3.5 by Brian Aker
Fixed case where parser error message might be null.
860
  ER_PARSE_ERROR_UNKNOWN,
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
861
  ER_INVALID_CAST_TO_BOOLEAN,
2114.5.3 by Brian Aker
fix test case along with the error message for TIME.
862
  ER_INVALID_TIME_VALUE,
2114.5.4 by Brian Aker
Fix error message on date.
863
  ER_INVALID_DATE_VALUE,
1890.2.50 by Stewart Smith
merge trunk
864
  ER_TRANSACTIONAL_DDL_NOT_SUPPORTED,
2131.3.1 by Andrew Hutchings
Add error telling the user to use data_dictionary for SHOW engine_name STATUS
865
  ER_USE_DATA_DICTIONARY,
2141.4.3 by Andrew Hutchings
Merge with trunk
866
  ER_TRANSACTION_ALREADY_STARTED,
2196.2.2 by Stewart Smith
add ER_NO_LOCK_HELD error code, and expect it in case of UNLOCK TABLES without any locks held.
867
  ER_CARTESIAN_JOIN_ATTEMPTED,
868
  ER_NO_LOCK_HELD
2041.3.16 by Brian Aker
Merge in change so that we pull out the error_t enum out to its own
869
};
870
871
872
} /* namespace drizzled */
873