~drizzle-trunk/drizzle/development

390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
212.5.42 by Monty Taylor
Ding dong include is dead.
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
4
 *  Copyright (C) 2008 Sun Microsystems
212.5.42 by Monty Taylor
Ding dong include is dead.
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
390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
8
 *  the Free Software Foundation; version 2 of the License.
212.5.42 by Monty Taylor
Ding dong include is dead.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
19
1122.2.10 by Monty Taylor
Fixed all of the include guards.
20
#ifndef DRIZZLED_ERROR_H
21
#define DRIZZLED_ERROR_H
212.5.42 by Monty Taylor
Ding dong include is dead.
22
1241.9.57 by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined.
23
#include "drizzled/my_error.h"
24
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
25
namespace drizzled
26
{
549 by Monty Taylor
Took gettext.h out of header files.
27
670.2.4 by Monty Taylor
Removed more stuff from the headers.
28
bool init_errmessage(void);
549 by Monty Taylor
Took gettext.h out of header files.
29
const char * error_message(unsigned int err_index);
202.3.6 by Monty Taylor
First pass at gettexizing the error messages.
30
212.5.42 by Monty Taylor
Ding dong include is dead.
31
enum drizzled_error_code {
32
  ER_ERROR_FIRST= 1000,
1063.2.1 by Stewart Smith
mark ER_HASHCHK as an unused error code (thanks to Paul DuBois who researched this for MySQL)
33
  ER_UNUSED1000= ER_ERROR_FIRST,
1063.2.2 by Stewart Smith
ER_NISAMCHK is unused, mark it as so. Thanks to Paul DuBois for researching this for MySQL.
34
  ER_UNUSED1001,
212.5.42 by Monty Taylor
Ding dong include is dead.
35
  ER_NO,
36
  ER_YES,
37
  ER_CANT_CREATE_FILE,
38
  ER_CANT_CREATE_TABLE,
39
  ER_CANT_CREATE_DB,
40
  ER_DB_CREATE_EXISTS,
41
  ER_DB_DROP_EXISTS,
42
  ER_DB_DROP_DELETE,
43
  ER_DB_DROP_RMDIR,
44
  ER_CANT_DELETE_FILE,
45
  ER_CANT_FIND_SYSTEM_REC,
46
  ER_CANT_GET_STAT,
47
  ER_CANT_GET_WD,
48
  ER_CANT_LOCK,
49
  ER_CANT_OPEN_FILE,
50
  ER_FILE_NOT_FOUND,
51
  ER_CANT_READ_DIR,
52
  ER_CANT_SET_WD,
53
  ER_CHECKREAD,
54
  ER_DISK_FULL,
55
  ER_DUP_KEY,
56
  ER_ERROR_ON_CLOSE,
57
  ER_ERROR_ON_READ,
58
  ER_ERROR_ON_RENAME,
59
  ER_ERROR_ON_WRITE,
60
  ER_FILE_USED,
61
  ER_FILSORT_ABORT,
62
  ER_FORM_NOT_FOUND,
63
  ER_GET_ERRNO,
64
  ER_ILLEGAL_HA,
65
  ER_KEY_NOT_FOUND,
66
  ER_NOT_FORM_FILE,
67
  ER_NOT_KEYFILE,
68
  ER_OLD_KEYFILE,
69
  ER_OPEN_AS_READONLY,
70
  ER_OUTOFMEMORY,
71
  ER_OUT_OF_SORTMEMORY,
72
  ER_UNEXPECTED_EOF,
73
  ER_CON_COUNT_ERROR,
74
  ER_OUT_OF_RESOURCES,
75
  ER_BAD_HOST_ERROR,
76
  ER_HANDSHAKE_ERROR,
77
  ER_DBACCESS_DENIED_ERROR,
78
  ER_ACCESS_DENIED_ERROR,
79
  ER_NO_DB_ERROR,
80
  ER_UNKNOWN_COM_ERROR,
81
  ER_BAD_NULL_ERROR,
82
  ER_BAD_DB_ERROR,
83
  ER_TABLE_EXISTS_ERROR,
84
  ER_BAD_TABLE_ERROR,
85
  ER_NON_UNIQ_ERROR,
86
  ER_SERVER_SHUTDOWN,
87
  ER_BAD_FIELD_ERROR,
88
  ER_WRONG_FIELD_WITH_GROUP,
89
  ER_WRONG_GROUP_FIELD,
90
  ER_WRONG_SUM_SELECT,
91
  ER_WRONG_VALUE_COUNT,
92
  ER_TOO_LONG_IDENT,
93
  ER_DUP_FIELDNAME,
94
  ER_DUP_KEYNAME,
95
  ER_DUP_ENTRY,
96
  ER_WRONG_FIELD_SPEC,
97
  ER_PARSE_ERROR,
98
  ER_EMPTY_QUERY,
99
  ER_NONUNIQ_TABLE,
100
  ER_INVALID_DEFAULT,
101
  ER_MULTIPLE_PRI_KEY,
102
  ER_TOO_MANY_KEYS,
103
  ER_TOO_MANY_KEY_PARTS,
104
  ER_TOO_LONG_KEY,
105
  ER_KEY_COLUMN_DOES_NOT_EXITS,
106
  ER_BLOB_USED_AS_KEY,
107
  ER_TOO_BIG_FIELDLENGTH,
108
  ER_WRONG_AUTO_KEY,
109
  ER_READY,
110
  ER_NORMAL_SHUTDOWN,
111
  ER_GOT_SIGNAL,
112
  ER_SHUTDOWN_COMPLETE,
113
  ER_FORCING_CLOSE,
114
  ER_IPSOCK_ERROR,
115
  ER_NO_SUCH_INDEX,
116
  ER_WRONG_FIELD_TERMINATORS,
117
  ER_BLOBS_AND_NO_TERMINATED,
118
  ER_TEXTFILE_NOT_READABLE,
119
  ER_FILE_EXISTS_ERROR,
120
  ER_LOAD_INFO,
121
  ER_ALTER_INFO,
122
  ER_WRONG_SUB_KEY,
123
  ER_CANT_REMOVE_ALL_FIELDS,
124
  ER_CANT_DROP_FIELD_OR_KEY,
125
  ER_INSERT_INFO,
126
  ER_UPDATE_TABLE_USED,
127
  ER_NO_SUCH_THREAD,
128
  ER_KILL_DENIED_ERROR,
129
  ER_NO_TABLES_USED,
130
  ER_TOO_BIG_SET,
131
  ER_NO_UNIQUE_LOGFILE,
132
  ER_TABLE_NOT_LOCKED_FOR_WRITE,
133
  ER_TABLE_NOT_LOCKED,
134
  ER_BLOB_CANT_HAVE_DEFAULT,
135
  ER_WRONG_DB_NAME,
136
  ER_WRONG_TABLE_NAME,
137
  ER_TOO_BIG_SELECT,
138
  ER_UNKNOWN_ERROR,
139
  ER_UNKNOWN_PROCEDURE,
140
  ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
141
  ER_WRONG_PARAMETERS_TO_PROCEDURE,
142
  ER_UNKNOWN_TABLE,
143
  ER_FIELD_SPECIFIED_TWICE,
144
  ER_INVALID_GROUP_FUNC_USE,
145
  ER_UNSUPPORTED_EXTENSION,
146
  ER_TABLE_MUST_HAVE_COLUMNS,
147
  ER_RECORD_FILE_FULL,
148
  ER_UNKNOWN_CHARACTER_SET,
149
  ER_TOO_MANY_TABLES,
150
  ER_TOO_MANY_FIELDS,
151
  ER_TOO_BIG_ROWSIZE,
152
  ER_STACK_OVERRUN,
153
  ER_WRONG_OUTER_JOIN,
154
  ER_NULL_COLUMN_IN_INDEX,
155
  ER_CANT_FIND_UDF,
156
  ER_CANT_INITIALIZE_UDF,
1228.1.3 by Monty Taylor
All of the outstanding plugin loader system cleanups:
157
  ER_PLUGIN_NO_PATHS,
158
  ER_PLUGIN_EXISTS,
212.5.42 by Monty Taylor
Ding dong include is dead.
159
  ER_CANT_OPEN_LIBRARY,
160
  ER_CANT_FIND_DL_ENTRY,
161
  ER_FUNCTION_NOT_DEFINED,
162
  ER_HOST_IS_BLOCKED,
163
  ER_HOST_NOT_PRIVILEGED,
164
  ER_PASSWORD_ANONYMOUS_USER,
165
  ER_PASSWORD_NOT_ALLOWED,
166
  ER_PASSWORD_NO_MATCH,
167
  ER_UPDATE_INFO,
168
  ER_CANT_CREATE_THREAD,
169
  ER_WRONG_VALUE_COUNT_ON_ROW,
170
  ER_CANT_REOPEN_TABLE,
171
  ER_INVALID_USE_OF_NULL,
172
  ER_REGEXP_ERROR,
173
  ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
174
  ER_NONEXISTING_GRANT,
175
  ER_TABLEACCESS_DENIED_ERROR,
176
  ER_COLUMNACCESS_DENIED_ERROR,
177
  ER_ILLEGAL_GRANT_FOR_TABLE,
178
  ER_GRANT_WRONG_HOST_OR_USER,
179
  ER_NO_SUCH_TABLE,
180
  ER_NONEXISTING_TABLE_GRANT,
181
  ER_NOT_ALLOWED_COMMAND,
182
  ER_SYNTAX_ERROR,
183
  ER_DELAYED_CANT_CHANGE_LOCK,
184
  ER_TOO_MANY_DELAYED_THREADS,
185
  ER_ABORTING_CONNECTION,
186
  ER_NET_PACKET_TOO_LARGE,
187
  ER_NET_READ_ERROR_FROM_PIPE,
188
  ER_NET_FCNTL_ERROR,
189
  ER_NET_PACKETS_OUT_OF_ORDER,
190
  ER_NET_UNCOMPRESS_ERROR,
191
  ER_NET_READ_ERROR,
192
  ER_NET_READ_INTERRUPTED,
193
  ER_NET_ERROR_ON_WRITE,
194
  ER_NET_WRITE_INTERRUPTED,
195
  ER_TOO_LONG_STRING,
196
  ER_TABLE_CANT_HANDLE_BLOB,
197
  ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
198
  ER_DELAYED_INSERT_TABLE_LOCKED,
199
  ER_WRONG_COLUMN_NAME,
200
  ER_WRONG_KEY_COLUMN,
201
  ER_WRONG_MRG_TABLE,
202
  ER_DUP_UNIQUE,
203
  ER_BLOB_KEY_WITHOUT_LENGTH,
204
  ER_PRIMARY_CANT_HAVE_NULL,
205
  ER_TOO_MANY_ROWS,
206
  ER_REQUIRES_PRIMARY_KEY,
489.1.7 by Monty Taylor
Reverted RAID errno changes.
207
  ER_NO_RAID_COMPILED,
212.5.42 by Monty Taylor
Ding dong include is dead.
208
  ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE,
209
  ER_KEY_DOES_NOT_EXITS,
210
  ER_CHECK_NO_SUCH_TABLE,
211
  ER_CHECK_NOT_IMPLEMENTED,
212
  ER_CANT_DO_THIS_DURING_AN_TRANSACTION,
213
  ER_ERROR_DURING_COMMIT,
214
  ER_ERROR_DURING_ROLLBACK,
215
  ER_ERROR_DURING_FLUSH_LOGS,
216
  ER_ERROR_DURING_CHECKPOINT,
217
  ER_NEW_ABORTING_CONNECTION,
218
  ER_DUMP_NOT_IMPLEMENTED,
219
  ER_FLUSH_MASTER_BINLOG_CLOSED,
220
  ER_INDEX_REBUILD,
221
  ER_MASTER,
222
  ER_MASTER_NET_READ,
223
  ER_MASTER_NET_WRITE,
224
  ER_FT_MATCHING_KEY_NOT_FOUND,
225
  ER_LOCK_OR_ACTIVE_TRANSACTION,
226
  ER_UNKNOWN_SYSTEM_VARIABLE,
227
  ER_CRASHED_ON_USAGE,
228
  ER_CRASHED_ON_REPAIR,
229
  ER_WARNING_NOT_COMPLETE_ROLLBACK,
230
  ER_TRANS_CACHE_FULL,
231
  ER_SLAVE_MUST_STOP,
232
  ER_SLAVE_NOT_RUNNING,
233
  ER_BAD_SLAVE,
234
  ER_MASTER_INFO,
235
  ER_SLAVE_THREAD,
236
  ER_TOO_MANY_USER_CONNECTIONS,
237
  ER_SET_CONSTANTS_ONLY,
238
  ER_LOCK_WAIT_TIMEOUT,
239
  ER_LOCK_TABLE_FULL,
240
  ER_READ_ONLY_TRANSACTION,
241
  ER_DROP_DB_WITH_READ_LOCK,
242
  ER_CREATE_DB_WITH_READ_LOCK,
243
  ER_WRONG_ARGUMENTS,
244
  ER_NO_PERMISSION_TO_CREATE_USER,
245
  ER_UNION_TABLES_IN_DIFFERENT_DIR,
246
  ER_LOCK_DEADLOCK,
247
  ER_TABLE_CANT_HANDLE_FT,
248
  ER_CANNOT_ADD_FOREIGN,
249
  ER_NO_REFERENCED_ROW,
250
  ER_ROW_IS_REFERENCED,
251
  ER_CONNECT_TO_MASTER,
252
  ER_QUERY_ON_MASTER,
253
  ER_ERROR_WHEN_EXECUTING_COMMAND,
254
  ER_WRONG_USAGE,
255
  ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
256
  ER_CANT_UPDATE_WITH_READLOCK,
257
  ER_MIXING_NOT_ALLOWED,
258
  ER_DUP_ARGUMENT,
259
  ER_USER_LIMIT_REACHED,
260
  ER_SPECIFIC_ACCESS_DENIED_ERROR,
261
  ER_LOCAL_VARIABLE,
262
  ER_GLOBAL_VARIABLE,
263
  ER_NO_DEFAULT,
264
  ER_WRONG_VALUE_FOR_VAR,
265
  ER_WRONG_TYPE_FOR_VAR,
266
  ER_VAR_CANT_BE_READ,
267
  ER_CANT_USE_OPTION_HERE,
268
  ER_NOT_SUPPORTED_YET,
269
  ER_MASTER_FATAL_ERROR_READING_BINLOG,
270
  ER_SLAVE_IGNORED_TABLE,
271
  ER_INCORRECT_GLOBAL_LOCAL_VAR,
272
  ER_WRONG_FK_DEF,
273
  ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
274
  ER_OPERAND_COLUMNS,
275
  ER_SUBQUERY_NO_1_ROW,
276
  ER_UNKNOWN_STMT_HANDLER,
277
  ER_CORRUPT_HELP_DB,
278
  ER_CYCLIC_REFERENCE,
279
  ER_AUTO_CONVERT,
280
  ER_ILLEGAL_REFERENCE,
281
  ER_DERIVED_MUST_HAVE_ALIAS,
282
  ER_SELECT_REDUCED,
283
  ER_TABLENAME_NOT_ALLOWED_HERE,
284
  ER_NOT_SUPPORTED_AUTH_MODE,
285
  ER_SPATIAL_CANT_HAVE_NULL,
286
  ER_COLLATION_CHARSET_MISMATCH,
287
  ER_SLAVE_WAS_RUNNING,
288
  ER_SLAVE_WAS_NOT_RUNNING,
289
  ER_TOO_BIG_FOR_UNCOMPRESS,
290
  ER_ZLIB_Z_MEM_ERROR,
291
  ER_ZLIB_Z_BUF_ERROR,
292
  ER_ZLIB_Z_DATA_ERROR,
293
  ER_CUT_VALUE_GROUP_CONCAT,
294
  ER_WARN_TOO_FEW_RECORDS,
295
  ER_WARN_TOO_MANY_RECORDS,
296
  ER_WARN_NULL_TO_NOTNULL,
297
  ER_WARN_DATA_OUT_OF_RANGE,
298
  ER_WARN_DATA_TRUNCATED,
299
  ER_WARN_USING_OTHER_HANDLER,
300
  ER_CANT_AGGREGATE_2COLLATIONS,
301
  ER_DROP_USER,
302
  ER_REVOKE_GRANTS,
303
  ER_CANT_AGGREGATE_3COLLATIONS,
304
  ER_CANT_AGGREGATE_NCOLLATIONS,
305
  ER_VARIABLE_IS_NOT_STRUCT,
306
  ER_UNKNOWN_COLLATION,
307
  ER_SLAVE_IGNORED_SSL_PARAMS,
308
  ER_SERVER_IS_IN_SECURE_AUTH_MODE,
309
  ER_WARN_FIELD_RESOLVED,
310
  ER_BAD_SLAVE_UNTIL_COND,
311
  ER_MISSING_SKIP_SLAVE,
312
  ER_UNTIL_COND_IGNORED,
313
  ER_WRONG_NAME_FOR_INDEX,
314
  ER_WRONG_NAME_FOR_CATALOG,
315
  ER_WARN_QC_RESIZE,
316
  ER_BAD_FT_COLUMN,
317
  ER_UNKNOWN_KEY_CACHE,
318
  ER_WARN_HOSTNAME_WONT_WORK,
319
  ER_UNKNOWN_STORAGE_ENGINE,
320
  ER_WARN_DEPRECATED_SYNTAX,
321
  ER_NON_UPDATABLE_TABLE,
322
  ER_FEATURE_DISABLED,
323
  ER_OPTION_PREVENTS_STATEMENT,
324
  ER_DUPLICATED_VALUE_IN_TYPE,
325
  ER_TRUNCATED_WRONG_VALUE,
326
  ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
327
  ER_INVALID_ON_UPDATE,
328
  ER_UNSUPPORTED_PS,
329
  ER_GET_ERRMSG,
330
  ER_GET_TEMPORARY_ERRMSG,
331
  ER_UNKNOWN_TIME_ZONE,
332
  ER_WARN_INVALID_TIMESTAMP,
333
  ER_INVALID_CHARACTER_STRING,
334
  ER_WARN_ALLOWED_PACKET_OVERFLOWED,
335
  ER_CONFLICTING_DECLARATIONS,
336
  ER_SP_NO_RECURSIVE_CREATE,
337
  ER_SP_ALREADY_EXISTS,
338
  ER_SP_DOES_NOT_EXIST,
339
  ER_SP_DROP_FAILED,
340
  ER_SP_STORE_FAILED,
341
  ER_SP_LILABEL_MISMATCH,
342
  ER_SP_LABEL_REDEFINE,
343
  ER_SP_LABEL_MISMATCH,
344
  ER_SP_UNINIT_VAR,
345
  ER_SP_BADSELECT,
346
  ER_SP_BADRETURN,
347
  ER_SP_BADSTATEMENT,
348
  ER_UPDATE_LOG_DEPRECATED_IGNORED,
349
  ER_UPDATE_LOG_DEPRECATED_TRANSLATED,
350
  ER_QUERY_INTERRUPTED,
351
  ER_SP_WRONG_NO_OF_ARGS,
352
  ER_SP_COND_MISMATCH,
353
  ER_SP_NORETURN,
354
  ER_SP_NORETURNEND,
355
  ER_SP_BAD_CURSOR_QUERY,
356
  ER_SP_BAD_CURSOR_SELECT,
357
  ER_SP_CURSOR_MISMATCH,
358
  ER_SP_CURSOR_ALREADY_OPEN,
359
  ER_SP_CURSOR_NOT_OPEN,
360
  ER_SP_UNDECLARED_VAR,
361
  ER_SP_WRONG_NO_OF_FETCH_ARGS,
362
  ER_SP_FETCH_NO_DATA,
363
  ER_SP_DUP_PARAM,
364
  ER_SP_DUP_VAR,
365
  ER_SP_DUP_COND,
366
  ER_SP_DUP_CURS,
367
  ER_SP_CANT_ALTER,
368
  ER_SP_SUBSELECT_NYI,
369
  ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG,
370
  ER_SP_VARCOND_AFTER_CURSHNDLR,
371
  ER_SP_CURSOR_AFTER_HANDLER,
372
  ER_SP_CASE_NOT_FOUND,
373
  ER_FPARSER_TOO_BIG_FILE,
374
  ER_FPARSER_BAD_HEADER,
375
  ER_FPARSER_EOF_IN_COMMENT,
376
  ER_FPARSER_ERROR_IN_PARAMETER,
377
  ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER,
378
  ER_VIEW_NO_EXPLAIN,
1259.5.1 by Stewart Smith
ER_FRM_UNKNOWN_TYPE is now an unused error code
379
  ER_UNUSED1346,
212.5.42 by Monty Taylor
Ding dong include is dead.
380
  ER_WRONG_OBJECT,
381
  ER_NONUPDATEABLE_COLUMN,
382
  ER_VIEW_SELECT_DERIVED,
383
  ER_VIEW_SELECT_CLAUSE,
384
  ER_VIEW_SELECT_VARIABLE,
385
  ER_VIEW_SELECT_TMPTABLE,
386
  ER_VIEW_WRONG_LIST,
387
  ER_WARN_VIEW_MERGE,
388
  ER_WARN_VIEW_WITHOUT_KEY,
389
  ER_VIEW_INVALID,
390
  ER_SP_NO_DROP_SP,
391
  ER_SP_GOTO_IN_HNDLR,
392
  ER_TRG_ALREADY_EXISTS,
393
  ER_TRG_DOES_NOT_EXIST,
394
  ER_TRG_ON_VIEW_OR_TEMP_TABLE,
395
  ER_TRG_CANT_CHANGE_ROW,
396
  ER_TRG_NO_SUCH_ROW_IN_TRG,
397
  ER_NO_DEFAULT_FOR_FIELD,
398
  ER_DIVISION_BY_ZERO,
399
  ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
400
  ER_ILLEGAL_VALUE_FOR_TYPE,
401
  ER_VIEW_NONUPD_CHECK,
402
  ER_VIEW_CHECK_FAILED,
403
  ER_PROCACCESS_DENIED_ERROR,
404
  ER_RELAY_LOG_FAIL,
405
  ER_PASSWD_LENGTH,
406
  ER_UNKNOWN_TARGET_BINLOG,
407
  ER_IO_ERR_LOG_INDEX_READ,
408
  ER_BINLOG_PURGE_PROHIBITED,
409
  ER_FSEEK_FAIL,
410
  ER_BINLOG_PURGE_FATAL_ERR,
411
  ER_LOG_IN_USE,
412
  ER_LOG_PURGE_UNKNOWN_ERR,
413
  ER_RELAY_LOG_INIT,
414
  ER_NO_BINARY_LOGGING,
415
  ER_RESERVED_SYNTAX,
416
  ER_WSAS_FAILED,
417
  ER_DIFF_GROUPS_PROC,
418
  ER_NO_GROUP_FOR_PROC,
419
  ER_ORDER_WITH_PROC,
420
  ER_LOGGING_PROHIBIT_CHANGING_OF,
421
  ER_NO_FILE_MAPPING,
422
  ER_WRONG_MAGIC,
423
  ER_PS_MANY_PARAM,
424
  ER_KEY_PART_0,
425
  ER_VIEW_CHECKSUM,
426
  ER_VIEW_MULTIUPDATE,
427
  ER_VIEW_NO_INSERT_FIELD_LIST,
428
  ER_VIEW_DELETE_MERGE_VIEW,
429
  ER_CANNOT_USER,
430
  ER_XAER_NOTA,
431
  ER_XAER_INVAL,
432
  ER_XAER_RMFAIL,
433
  ER_XAER_OUTSIDE,
434
  ER_XAER_RMERR,
435
  ER_XA_RBROLLBACK,
436
  ER_NONEXISTING_PROC_GRANT,
437
  ER_PROC_AUTO_GRANT_FAIL,
438
  ER_PROC_AUTO_REVOKE_FAIL,
439
  ER_DATA_TOO_LONG,
440
  ER_SP_BAD_SQLSTATE,
441
  ER_STARTUP,
442
  ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
443
  ER_CANT_CREATE_USER_WITH_GRANT,
444
  ER_WRONG_VALUE_FOR_TYPE,
445
  ER_TABLE_DEF_CHANGED,
446
  ER_SP_DUP_HANDLER,
447
  ER_SP_NOT_VAR_ARG,
448
  ER_SP_NO_RETSET,
449
  ER_CANT_CREATE_GEOMETRY_OBJECT,
450
  ER_FAILED_ROUTINE_BREAK_BINLOG,
451
  ER_BINLOG_UNSAFE_ROUTINE,
452
  ER_BINLOG_CREATE_ROUTINE_NEED_SUPER,
453
  ER_EXEC_STMT_WITH_OPEN_CURSOR,
454
  ER_STMT_HAS_NO_OPEN_CURSOR,
455
  ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
456
  ER_NO_DEFAULT_FOR_VIEW_FIELD,
457
  ER_SP_NO_RECURSION,
458
  ER_TOO_BIG_SCALE,
459
  ER_TOO_BIG_PRECISION,
460
  ER_M_BIGGER_THAN_D,
461
  ER_WRONG_LOCK_OF_SYSTEM_TABLE,
462
  ER_CONNECT_TO_FOREIGN_DATA_SOURCE,
463
  ER_QUERY_ON_FOREIGN_DATA_SOURCE,
464
  ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST,
465
  ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE,
466
  ER_FOREIGN_DATA_STRING_INVALID,
467
  ER_CANT_CREATE_FEDERATED_TABLE,
468
  ER_TRG_IN_WRONG_SCHEMA,
398.1.2 by Monty Taylor
Added specific number for check_stack_overrun error code until we deal with it better.
469
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
212.5.42 by Monty Taylor
Ding dong include is dead.
470
  ER_TOO_LONG_BODY,
471
  ER_WARN_CANT_DROP_DEFAULT_KEYCACHE,
472
  ER_TOO_BIG_DISPLAYWIDTH,
473
  ER_XAER_DUPID,
474
  ER_DATETIME_FUNCTION_OVERFLOW,
475
  ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG,
476
  ER_VIEW_PREVENT_UPDATE,
477
  ER_PS_NO_RECURSION,
478
  ER_SP_CANT_SET_AUTOCOMMIT,
479
  ER_MALFORMED_DEFINER,
480
  ER_VIEW_FRM_NO_USER,
481
  ER_VIEW_OTHER_USER,
482
  ER_NO_SUCH_USER,
483
  ER_FORBID_SCHEMA_CHANGE,
484
  ER_ROW_IS_REFERENCED_2,
485
  ER_NO_REFERENCED_ROW_2,
486
  ER_SP_BAD_VAR_SHADOW,
487
  ER_TRG_NO_DEFINER,
488
  ER_OLD_FILE_FORMAT,
489
  ER_SP_RECURSION_LIMIT,
490
  ER_SP_PROC_TABLE_CORRUPT,
491
  ER_SP_WRONG_NAME,
492
  ER_TABLE_NEEDS_UPGRADE,
493
  ER_SP_NO_AGGREGATE,
494
  ER_MAX_PREPARED_STMT_COUNT_REACHED,
495
  ER_VIEW_RECURSIVE,
496
  ER_NON_GROUPING_FIELD_USED,
497
  ER_TABLE_CANT_HANDLE_SPKEYS,
498
  ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA,
499
  ER_REMOVED_SPACES,
500
  ER_AUTOINC_READ_FAILED,
501
  ER_USERNAME,
502
  ER_HOSTNAME,
503
  ER_WRONG_STRING_LENGTH,
504
  ER_NON_INSERTABLE_TABLE,
505
  ER_ADMIN_WRONG_MRG_TABLE,
506
  ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
507
  ER_NAME_BECOMES_EMPTY,
508
  ER_AMBIGUOUS_FIELD_TERM,
509
  ER_FOREIGN_SERVER_EXISTS,
510
  ER_FOREIGN_SERVER_DOESNT_EXIST,
511
  ER_ILLEGAL_HA_CREATE_OPTION,
512
  ER_PARTITION_REQUIRES_VALUES_ERROR,
513
  ER_PARTITION_WRONG_VALUES_ERROR,
514
  ER_PARTITION_MAXVALUE_ERROR,
515
  ER_PARTITION_SUBPARTITION_ERROR,
516
  ER_PARTITION_SUBPART_MIX_ERROR,
517
  ER_PARTITION_WRONG_NO_PART_ERROR,
518
  ER_PARTITION_WRONG_NO_SUBPART_ERROR,
519
  ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR,
520
  ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR,
521
  ER_FIELD_NOT_FOUND_PART_ERROR,
522
  ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR,
523
  ER_INCONSISTENT_PARTITION_INFO_ERROR,
524
  ER_PARTITION_FUNC_NOT_ALLOWED_ERROR,
525
  ER_PARTITIONS_MUST_BE_DEFINED_ERROR,
526
  ER_RANGE_NOT_INCREASING_ERROR,
527
  ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR,
528
  ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR,
529
  ER_PARTITION_ENTRY_ERROR,
530
  ER_MIX_HANDLER_ERROR,
531
  ER_PARTITION_NOT_DEFINED_ERROR,
532
  ER_TOO_MANY_PARTITIONS_ERROR,
533
  ER_SUBPARTITION_ERROR,
534
  ER_CANT_CREATE_HANDLER_FILE,
535
  ER_BLOB_FIELD_IN_PART_FUNC_ERROR,
536
  ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF,
537
  ER_NO_PARTS_ERROR,
538
  ER_PARTITION_MGMT_ON_NONPARTITIONED,
539
  ER_FOREIGN_KEY_ON_PARTITIONED,
540
  ER_DROP_PARTITION_NON_EXISTENT,
541
  ER_DROP_LAST_PARTITION,
542
  ER_COALESCE_ONLY_ON_HASH_PARTITION,
543
  ER_REORG_HASH_ONLY_ON_SAME_NO,
544
  ER_REORG_NO_PARAM_ERROR,
545
  ER_ONLY_ON_RANGE_LIST_PARTITION,
546
  ER_ADD_PARTITION_SUBPART_ERROR,
547
  ER_ADD_PARTITION_NO_NEW_PARTITION,
548
  ER_COALESCE_PARTITION_NO_PARTITION,
549
  ER_REORG_PARTITION_NOT_EXIST,
550
  ER_SAME_NAME_PARTITION,
551
  ER_NO_BINLOG_ERROR,
552
  ER_CONSECUTIVE_REORG_PARTITIONS,
553
  ER_REORG_OUTSIDE_RANGE,
554
  ER_PARTITION_FUNCTION_FAILURE,
555
  ER_PART_STATE_ERROR,
556
  ER_LIMITED_PART_RANGE,
557
  ER_PLUGIN_IS_NOT_LOADED,
558
  ER_WRONG_VALUE,
559
  ER_NO_PARTITION_FOR_GIVEN_VALUE,
560
  ER_FILEGROUP_OPTION_ONLY_ONCE,
561
  ER_CREATE_FILEGROUP_FAILED,
562
  ER_DROP_FILEGROUP_FAILED,
563
  ER_TABLESPACE_AUTO_EXTEND_ERROR,
564
  ER_WRONG_SIZE_NUMBER,
565
  ER_SIZE_OVERFLOW_ERROR,
566
  ER_ALTER_FILEGROUP_FAILED,
567
  ER_BINLOG_ROW_LOGGING_FAILED,
568
  ER_BINLOG_ROW_WRONG_TABLE_DEF,
569
  ER_BINLOG_ROW_RBR_TO_SBR,
570
  ER_EVENT_ALREADY_EXISTS,
571
  ER_EVENT_STORE_FAILED,
572
  ER_EVENT_DOES_NOT_EXIST,
573
  ER_EVENT_CANT_ALTER,
574
  ER_EVENT_DROP_FAILED,
575
  ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG,
576
  ER_EVENT_ENDS_BEFORE_STARTS,
577
  ER_EVENT_EXEC_TIME_IN_THE_PAST,
578
  ER_EVENT_OPEN_TABLE_FAILED,
579
  ER_EVENT_NEITHER_M_EXPR_NOR_M_AT,
580
  ER_COL_COUNT_DOESNT_MATCH_CORRUPTED,
581
  ER_CANNOT_LOAD_FROM_TABLE,
582
  ER_EVENT_CANNOT_DELETE,
583
  ER_EVENT_COMPILE_ERROR,
584
  ER_EVENT_SAME_NAME,
585
  ER_EVENT_DATA_TOO_LONG,
586
  ER_DROP_INDEX_FK,
587
  ER_WARN_DEPRECATED_SYNTAX_WITH_VER,
588
  ER_CANT_WRITE_LOCK_LOG_TABLE,
589
  ER_CANT_LOCK_LOG_TABLE,
590
  ER_FOREIGN_DUPLICATE_KEY,
591
  ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE,
592
  ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR,
593
  ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT,
594
  ER_NDB_CANT_SWITCH_BINLOG_FORMAT,
595
  ER_PARTITION_NO_TEMPORARY,
596
  ER_PARTITION_CONST_DOMAIN_ERROR,
597
  ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,
598
  ER_DDL_LOG_ERROR,
599
  ER_NULL_IN_VALUES_LESS_THAN,
600
  ER_WRONG_PARTITION_NAME,
601
  ER_CANT_CHANGE_TX_ISOLATION,
602
  ER_DUP_ENTRY_AUTOINCREMENT_CASE,
603
  ER_EVENT_MODIFY_QUEUE_ERROR,
604
  ER_EVENT_SET_VAR_ERROR,
605
  ER_PARTITION_MERGE_ERROR,
606
  ER_CANT_ACTIVATE_LOG,
607
  ER_RBR_NOT_AVAILABLE,
608
  ER_BASE64_DECODE_ERROR,
609
  ER_EVENT_RECURSION_FORBIDDEN,
610
  ER_EVENTS_DB_ERROR,
611
  ER_ONLY_INTEGERS_ALLOWED,
612
  ER_UNSUPORTED_LOG_ENGINE,
613
  ER_BAD_LOG_STATEMENT,
614
  ER_CANT_RENAME_LOG_TABLE,
1124.3.2 by Diego Medina
Renamed ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT to ER_WRONG_PARAMCOUNT_TO_FUNCTION
615
  ER_WRONG_PARAMCOUNT_TO_FUNCTION,
212.5.42 by Monty Taylor
Ding dong include is dead.
616
  ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
617
  ER_WRONG_PARAMETERS_TO_STORED_FCT,
618
  ER_NATIVE_FCT_NAME_COLLISION,
619
  ER_DUP_ENTRY_WITH_KEY_NAME,
620
  ER_BINLOG_PURGE_EMFILE,
621
  ER_EVENT_CANNOT_CREATE_IN_THE_PAST,
622
  ER_EVENT_CANNOT_ALTER_IN_THE_PAST,
623
  ER_SLAVE_INCIDENT,
624
  ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT,
625
  ER_BINLOG_UNSAFE_STATEMENT,
626
  ER_SLAVE_FATAL_ERROR,
627
  ER_SLAVE_RELAY_LOG_READ_FAILURE,
628
  ER_SLAVE_RELAY_LOG_WRITE_FAILURE,
629
  ER_SLAVE_CREATE_EVENT_FAILURE,
630
  ER_SLAVE_MASTER_COM_FAILURE,
631
  ER_BINLOG_LOGGING_IMPOSSIBLE,
632
  ER_VIEW_NO_CREATION_CTX,
633
  ER_VIEW_INVALID_CREATION_CTX,
634
  ER_SR_INVALID_CREATION_CTX,
635
  ER_TRG_CORRUPTED_FILE,
636
  ER_TRG_NO_CREATION_CTX,
637
  ER_TRG_INVALID_CREATION_CTX,
638
  ER_EVENT_INVALID_CREATION_CTX,
639
  ER_TRG_CANT_OPEN_TABLE,
640
  ER_CANT_CREATE_SROUTINE,
641
  ER_SLAVE_AMBIGOUS_EXEC_MODE,
642
  ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT,
643
  ER_SLAVE_CORRUPT_EVENT,
644
  ER_LOAD_DATA_INVALID_COLUMN,
645
  ER_LOG_PURGE_NO_FILE,
646
  ER_WARN_AUTO_CONVERT_LOCK,
647
  ER_NO_AUTO_CONVERT_LOCK_STRICT,
648
  ER_NO_AUTO_CONVERT_LOCK_TRANSACTION,
649
  ER_NO_STORAGE_ENGINE,
650
  ER_BACKUP_BACKUP_START,
651
  ER_BACKUP_BACKUP_DONE,
652
  ER_BACKUP_RESTORE_START,
653
  ER_BACKUP_RESTORE_DONE,
654
  ER_BACKUP_NOTHING_TO_BACKUP,
655
  ER_BACKUP_CANNOT_INCLUDE_DB,
656
  ER_BACKUP_BACKUP,
657
  ER_BACKUP_RESTORE,
658
  ER_BACKUP_RUNNING,
659
  ER_BACKUP_BACKUP_PREPARE,
660
  ER_BACKUP_RESTORE_PREPARE,
661
  ER_BACKUP_INVALID_LOC,
662
  ER_BACKUP_READ_LOC,
663
  ER_BACKUP_WRITE_LOC,
664
  ER_BACKUP_LIST_DBS,
665
  ER_BACKUP_LIST_TABLES,
666
  ER_BACKUP_LIST_DB_TABLES,
667
  ER_BACKUP_SKIP_VIEW,
668
  ER_BACKUP_NO_ENGINE,
669
  ER_BACKUP_TABLE_OPEN,
670
  ER_BACKUP_READ_HEADER,
671
  ER_BACKUP_WRITE_HEADER,
672
  ER_BACKUP_NO_BACKUP_DRIVER,
673
  ER_BACKUP_NOT_ACCEPTED,
674
  ER_BACKUP_CREATE_BACKUP_DRIVER,
675
  ER_BACKUP_CREATE_RESTORE_DRIVER,
676
  ER_BACKUP_TOO_MANY_IMAGES,
677
  ER_BACKUP_WRITE_META,
678
  ER_BACKUP_READ_META,
679
  ER_BACKUP_CREATE_META,
680
  ER_BACKUP_GET_BUF,
681
  ER_BACKUP_WRITE_DATA,
682
  ER_BACKUP_READ_DATA,
683
  ER_BACKUP_NEXT_CHUNK,
684
  ER_BACKUP_INIT_BACKUP_DRIVER,
685
  ER_BACKUP_INIT_RESTORE_DRIVER,
686
  ER_BACKUP_STOP_BACKUP_DRIVER,
687
  ER_BACKUP_STOP_RESTORE_DRIVERS,
688
  ER_BACKUP_PREPARE_DRIVER,
689
  ER_BACKUP_CREATE_VP,
690
  ER_BACKUP_UNLOCK_DRIVER,
691
  ER_BACKUP_CANCEL_BACKUP,
692
  ER_BACKUP_CANCEL_RESTORE,
693
  ER_BACKUP_GET_DATA,
694
  ER_BACKUP_SEND_DATA,
695
  ER_BACKUP_SEND_DATA_RETRY,
696
  ER_BACKUP_OPEN_TABLES,
697
  ER_BACKUP_THREAD_INIT,
698
  ER_BACKUP_PROGRESS_TABLES,
699
  ER_TABLESPACE_EXIST,
700
  ER_NO_SUCH_TABLESPACE,
701
  ER_SLAVE_HEARTBEAT_FAILURE,
702
  ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE,
703
  ER_BACKUP_LOG_WRITE_ERROR,
704
  ER_TABLESPACE_NOT_EMPTY,
705
  ER_BACKUP_TS_CHANGE,
383.7.1 by Andrey Zhakov
Initial submit of code and tests
706
  ER_VCOL_BASED_ON_VCOL,
707
  ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED,
708
  ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN,
709
  ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN,
710
  ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN,
711
  ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN,
712
  ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN,
713
  ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN,
714
  ER_CONST_EXPR_IN_VCOL,
813.1.2 by Jay Pipes
First function cleanup for temporal handling: YEAR()
715
  ER_UNKNOWN_TEMPORAL_TYPE,
716
  ER_INVALID_STRING_FORMAT_FOR_DATE,
717
  ER_INVALID_STRING_FORMAT_FOR_TIME,
718
  ER_INVALID_UNIX_TIMESTAMP_VALUE,
719
  ER_INVALID_DATETIME_VALUE,
720
  ER_INVALID_NULL_ARGUMENT,
721
  ER_INVALID_NEGATIVE_ARGUMENT,
722
  ER_ARGUMENT_OUT_OF_RANGE,
723
  ER_INVALID_TIME_VALUE,
934.4.1 by Jay Pipes
Fixes ENUM field type to throw an error on bad data input. 0 is now not
724
  ER_INVALID_ENUM_VALUE,
1143.4.14 by Jay Pipes
Corrects bug in insert.inc test case include where the created table does not have a primary key. This works right now, but not for long, as we should throw an error when inserting into a table without a primary key.
725
  ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
1273.2.25 by Stewart Smith
add ER_CORRUPT_TABLE_DEFINITION error
726
  ER_CORRUPT_TABLE_DEFINITION,
727
  ER_ERROR_LAST= ER_CORRUPT_TABLE_DEFINITION
212.5.42 by Monty Taylor
Ding dong include is dead.
728
};
729
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
730
} /* namespace drizzled */
549 by Monty Taylor
Took gettext.h out of header files.
731
1122.2.10 by Monty Taylor
Fixed all of the include guards.
732
#endif /* DRIZZLED_ERROR_H */