~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/enum.h

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_ENUM_H
22
22
#define DRIZZLED_ENUM_H
23
23
 
24
 
#include "drizzled/message/table.pb.h"
25
 
 
26
 
namespace drizzled
27
 
{
28
 
 
29
24
/**
30
25
  Query type constants.
31
26
 
78
73
 
79
74
enum enum_parsing_place
80
75
{
81
 
  NO_MATTER,
82
 
  IN_HAVING,
83
 
  SELECT_LIST,
84
 
  IN_WHERE,
85
 
  IN_ON
 
76
  NO_MATTER, 
 
77
  IN_HAVING, 
 
78
  SELECT_LIST, 
 
79
  IN_WHERE, 
 
80
  IN_ON 
86
81
};
87
82
 
88
 
enum enum_mysql_completiontype
 
83
enum enum_mysql_completiontype 
89
84
{
90
 
  ROLLBACK_RELEASE= -2,
91
 
  ROLLBACK= 1,
92
 
  ROLLBACK_AND_CHAIN= 7,
93
 
  COMMIT_RELEASE= -1,
94
 
  COMMIT= 0,
 
85
  ROLLBACK_RELEASE= -2, 
 
86
  ROLLBACK= 1, 
 
87
  ROLLBACK_AND_CHAIN= 7, 
 
88
  COMMIT_RELEASE= -1, 
 
89
  COMMIT= 0, 
95
90
  COMMIT_AND_CHAIN= 6
96
91
};
97
92
 
98
93
enum enum_check_fields
99
94
{
100
 
  CHECK_FIELD_IGNORE,
101
 
  CHECK_FIELD_WARN,
 
95
  CHECK_FIELD_IGNORE, 
 
96
  CHECK_FIELD_WARN, 
102
97
  CHECK_FIELD_ERROR_FOR_NULL
103
98
};
104
99
 
105
 
enum sql_var_t
 
100
enum enum_var_type
106
101
{
107
 
  OPT_DEFAULT= 0,
108
 
  OPT_SESSION,
 
102
  OPT_DEFAULT= 0, 
 
103
  OPT_SESSION, 
109
104
  OPT_GLOBAL
110
105
};
111
106
 
112
 
enum row_type
113
 
{
114
 
  ROW_TYPE_NOT_USED=-1,
115
 
  ROW_TYPE_DEFAULT,
 
107
enum row_type 
 
108
 
109
  ROW_TYPE_NOT_USED=-1, 
 
110
  ROW_TYPE_DEFAULT, 
116
111
  ROW_TYPE_FIXED,
117
 
  ROW_TYPE_DYNAMIC,
 
112
  ROW_TYPE_DYNAMIC, 
118
113
  ROW_TYPE_COMPRESSED,
119
 
  ROW_TYPE_REDUNDANT,
120
 
  ROW_TYPE_COMPACT,
121
 
  ROW_TYPE_PAGE
 
114
  ROW_TYPE_REDUNDANT, 
 
115
  ROW_TYPE_COMPACT, 
 
116
  ROW_TYPE_PAGE 
122
117
};
123
118
 
124
 
enum column_format_type
 
119
enum column_format_type 
125
120
{
126
121
  COLUMN_FORMAT_TYPE_NOT_USED= -1,
127
122
  COLUMN_FORMAT_TYPE_DEFAULT= 0,
128
123
  COLUMN_FORMAT_TYPE_FIXED= 1,
129
 
  COLUMN_FORMAT_TYPE_DYNAMIC= 2
 
124
  COLUMN_FORMAT_TYPE_DYNAMIC= 2 
130
125
};
131
126
 
132
127
 
186
181
  TABLE_CATEGORY_INFORMATION
187
182
};
188
183
 
189
 
enum enum_enable_or_disable
 
184
enum enum_enable_or_disable 
190
185
{
191
 
  LEAVE_AS_IS,
192
 
  ENABLE,
193
 
  DISABLE
 
186
  LEAVE_AS_IS, 
 
187
  ENABLE, 
 
188
  DISABLE 
194
189
};
195
190
 
196
191
 
197
192
enum enum_mark_columns
198
 
{
199
 
  MARK_COLUMNS_NONE,
200
 
  MARK_COLUMNS_READ,
 
193
 
194
  MARK_COLUMNS_NONE, 
 
195
  MARK_COLUMNS_READ, 
201
196
  MARK_COLUMNS_WRITE
202
197
};
203
198
 
204
 
enum enum_filetype
205
 
{
206
 
  FILETYPE_CSV,
207
 
  FILETYPE_XML
 
199
enum enum_filetype 
 
200
 
201
  FILETYPE_CSV, 
 
202
  FILETYPE_XML 
208
203
};
209
204
 
210
 
enum find_item_error_report_type
 
205
enum find_item_error_report_type 
211
206
{
212
 
  REPORT_ALL_ERRORS,
 
207
  REPORT_ALL_ERRORS, 
213
208
  REPORT_EXCEPT_NOT_FOUND,
214
 
  IGNORE_ERRORS,
 
209
  IGNORE_ERRORS, 
215
210
  REPORT_EXCEPT_NON_UNIQUE,
216
211
  IGNORE_EXCEPT_NON_UNIQUE
217
212
};
218
213
 
 
214
enum tmp_table_type
 
215
{
 
216
  NO_TMP_TABLE,
 
217
  TEMP_TABLE,
 
218
  INTERNAL_TMP_TABLE,
 
219
  SYSTEM_TMP_TABLE
 
220
};
 
221
 
219
222
/*
220
223
  Values in this enum are used to indicate how a tables TIMESTAMP field
221
224
  should be treated. It can be set to the current timestamp on insert or
228
231
*/
229
232
enum timestamp_auto_set_type
230
233
{
231
 
  TIMESTAMP_NO_AUTO_SET= 0,
 
234
  TIMESTAMP_NO_AUTO_SET= 0, 
232
235
  TIMESTAMP_AUTO_SET_ON_INSERT= 1,
233
 
  TIMESTAMP_AUTO_SET_ON_UPDATE= 2,
 
236
  TIMESTAMP_AUTO_SET_ON_UPDATE= 2, 
234
237
  TIMESTAMP_AUTO_SET_ON_BOTH= 3
235
238
};
236
239
 
237
 
enum enum_ha_read_modes
238
 
{
239
 
  RFIRST,
240
 
  RNEXT,
241
 
  RPREV,
242
 
  RLAST,
243
 
  RKEY,
244
 
  RNEXT_SAME
 
240
enum enum_ha_read_modes 
 
241
 
242
  RFIRST, 
 
243
  RNEXT, 
 
244
  RPREV, 
 
245
  RLAST, 
 
246
  RKEY, 
 
247
  RNEXT_SAME 
245
248
};
246
249
 
247
 
enum enum_tx_isolation
 
250
enum enum_tx_isolation 
248
251
{
249
 
  ISO_READ_UNCOMMITTED,
 
252
  ISO_READ_UNCOMMITTED, 
250
253
  ISO_READ_COMMITTED,
251
 
  ISO_REPEATABLE_READ,
 
254
  ISO_REPEATABLE_READ, 
252
255
  ISO_SERIALIZABLE
253
256
};
254
257
 
255
258
 
256
 
enum SHOW_COMP_OPTION
257
 
{
258
 
  SHOW_OPTION_YES,
259
 
  SHOW_OPTION_NO,
 
259
enum SHOW_COMP_OPTION 
 
260
 
261
  SHOW_OPTION_YES, 
 
262
  SHOW_OPTION_NO, 
260
263
  SHOW_OPTION_DISABLED
261
264
};
262
265
 
271
274
*/
272
275
 
273
276
enum enum_sql_command {
274
 
  SQLCOM_SELECT,
275
 
  SQLCOM_CREATE_TABLE,
276
 
  SQLCOM_CREATE_INDEX,
 
277
  SQLCOM_SELECT, 
 
278
  SQLCOM_CREATE_TABLE, 
 
279
  SQLCOM_CREATE_INDEX, 
277
280
  SQLCOM_ALTER_TABLE,
278
 
  SQLCOM_UPDATE,
279
 
  SQLCOM_INSERT,
 
281
  SQLCOM_UPDATE, 
 
282
  SQLCOM_INSERT, 
280
283
  SQLCOM_INSERT_SELECT,
281
 
  SQLCOM_DELETE,
282
 
  SQLCOM_TRUNCATE,
283
 
  SQLCOM_DROP_TABLE,
 
284
  SQLCOM_DELETE, 
 
285
  SQLCOM_TRUNCATE, 
 
286
  SQLCOM_DROP_TABLE, 
284
287
  SQLCOM_DROP_INDEX,
 
288
  SQLCOM_SHOW_DATABASES, 
 
289
  SQLCOM_SHOW_TABLES, 
 
290
  SQLCOM_SHOW_FIELDS,
 
291
  SQLCOM_SHOW_KEYS, 
 
292
  SQLCOM_SHOW_VARIABLES, 
 
293
  SQLCOM_SHOW_STATUS,
 
294
  SQLCOM_SHOW_ENGINE_STATUS, 
 
295
  SQLCOM_SHOW_ENGINE_MUTEX,
 
296
  SQLCOM_SHOW_PROCESSLIST,
285
297
  SQLCOM_SHOW_CREATE,
286
298
  SQLCOM_SHOW_CREATE_DB,
 
299
  SQLCOM_SHOW_TABLE_STATUS,
287
300
  SQLCOM_LOAD,
288
301
  SQLCOM_SET_OPTION,
289
302
  SQLCOM_UNLOCK_TABLES,
290
 
  SQLCOM_CHANGE_DB,
291
 
  SQLCOM_CREATE_DB,
292
 
  SQLCOM_DROP_DB,
 
303
  SQLCOM_CHANGE_DB, 
 
304
  SQLCOM_CREATE_DB, 
 
305
  SQLCOM_DROP_DB, 
293
306
  SQLCOM_ALTER_DB,
294
 
  SQLCOM_REPLACE,
 
307
  SQLCOM_REPLACE, 
295
308
  SQLCOM_REPLACE_SELECT,
296
309
  SQLCOM_CHECK,
297
 
  SQLCOM_FLUSH,
298
 
  SQLCOM_KILL,
 
310
  SQLCOM_FLUSH, 
 
311
  SQLCOM_KILL, 
299
312
  SQLCOM_ANALYZE,
300
 
  SQLCOM_ROLLBACK,
 
313
  SQLCOM_ROLLBACK, 
301
314
  SQLCOM_ROLLBACK_TO_SAVEPOINT,
302
 
  SQLCOM_COMMIT,
303
 
  SQLCOM_SAVEPOINT,
 
315
  SQLCOM_COMMIT, 
 
316
  SQLCOM_SAVEPOINT, 
304
317
  SQLCOM_RELEASE_SAVEPOINT,
305
318
  SQLCOM_BEGIN,
306
319
  SQLCOM_RENAME_TABLE,
 
320
  SQLCOM_SHOW_OPEN_TABLES,
307
321
  SQLCOM_SHOW_WARNS,
308
322
  SQLCOM_EMPTY_QUERY,
309
323
  SQLCOM_SHOW_ERRORS,
316
330
  SQLCOM_END
317
331
};
318
332
 
319
 
enum enum_duplicates
320
 
{
321
 
  DUP_ERROR,
322
 
  DUP_REPLACE,
323
 
  DUP_UPDATE
324
 
};
325
 
 
326
 
enum drizzled_error_code {
327
 
 
328
 
  EE_ERROR_FIRST=1,
329
 
  EE_CANTCREATEFILE,
330
 
  EE_READ,
331
 
  EE_WRITE,
332
 
  EE_BADCLOSE,
333
 
  EE_OUTOFMEMORY,
334
 
  EE_DELETE,
335
 
  EE_LINK,
336
 
  EE_EOFERR,
337
 
  EE_CANTLOCK,
338
 
  EE_CANTUNLOCK,
339
 
  EE_DIR,
340
 
  EE_STAT,
341
 
  EE_CANT_CHSIZE,
342
 
  EE_CANT_OPEN_STREAM,
343
 
  EE_GETWD,
344
 
  EE_SETWD,
345
 
  EE_LINK_WARNING,
346
 
  EE_OPEN_WARNING,
347
 
  EE_DISK_FULL,
348
 
  EE_CANT_MKDIR,
349
 
  EE_UNKNOWN_CHARSET,
350
 
  EE_OUT_OF_FILERESOURCES,
351
 
  EE_CANT_READLINK,
352
 
  EE_CANT_SYMLINK,
353
 
  EE_REALPATH,
354
 
  EE_SYNC,
355
 
  EE_UNKNOWN_COLLATION,
356
 
  EE_FILENOTFOUND,
357
 
  EE_FILE_NOT_CLOSED,
358
 
  EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
359
 
 
360
 
  ER_ERROR_FIRST= 1000,
361
 
  ER_UNUSED1000= ER_ERROR_FIRST,
362
 
  ER_UNUSED1001,
363
 
  ER_NO,
364
 
  ER_YES,
365
 
  ER_CANT_CREATE_FILE,
366
 
  ER_CANT_CREATE_TABLE,
367
 
  ER_CANT_CREATE_DB,
368
 
  ER_DB_CREATE_EXISTS,
369
 
  ER_DB_DROP_EXISTS,
370
 
  ER_DB_DROP_DELETE,
371
 
  ER_DB_DROP_RMDIR,
372
 
  ER_CANT_DELETE_FILE,
373
 
  ER_CANT_FIND_SYSTEM_REC,
374
 
  ER_CANT_GET_STAT,
375
 
  ER_CANT_GET_WD,
376
 
  ER_CANT_LOCK,
377
 
  ER_CANT_OPEN_FILE,
378
 
  ER_FILE_NOT_FOUND,
379
 
  ER_CANT_READ_DIR,
380
 
  ER_CANT_SET_WD,
381
 
  ER_CHECKREAD,
382
 
  ER_DISK_FULL,
383
 
  ER_DUP_KEY,
384
 
  ER_ERROR_ON_CLOSE,
385
 
  ER_ERROR_ON_READ,
386
 
  ER_ERROR_ON_RENAME,
387
 
  ER_ERROR_ON_WRITE,
388
 
  ER_FILE_USED,
389
 
  ER_FILSORT_ABORT,
390
 
  ER_FORM_NOT_FOUND,
391
 
  ER_GET_ERRNO,
392
 
  ER_ILLEGAL_HA,
393
 
  ER_KEY_NOT_FOUND,
394
 
  ER_NOT_FORM_FILE,
395
 
  ER_NOT_KEYFILE,
396
 
  ER_OLD_KEYFILE,
397
 
  ER_OPEN_AS_READONLY,
398
 
  ER_OUTOFMEMORY,
399
 
  ER_OUT_OF_SORTMEMORY,
400
 
  ER_UNEXPECTED_EOF,
401
 
  ER_CON_COUNT_ERROR,
402
 
  ER_OUT_OF_RESOURCES,
403
 
  ER_BAD_HOST_ERROR,
404
 
  ER_HANDSHAKE_ERROR,
405
 
  ER_DBACCESS_DENIED_ERROR,
406
 
  ER_ACCESS_DENIED_ERROR,
407
 
  ER_NO_DB_ERROR,
408
 
  ER_UNKNOWN_COM_ERROR,
409
 
  ER_BAD_NULL_ERROR,
410
 
  ER_BAD_DB_ERROR,
411
 
  ER_TABLE_EXISTS_ERROR,
412
 
  ER_BAD_TABLE_ERROR,
413
 
  ER_NON_UNIQ_ERROR,
414
 
  ER_SERVER_SHUTDOWN,
415
 
  ER_BAD_FIELD_ERROR,
416
 
  ER_WRONG_FIELD_WITH_GROUP,
417
 
  ER_WRONG_GROUP_FIELD,
418
 
  ER_WRONG_SUM_SELECT,
419
 
  ER_WRONG_VALUE_COUNT,
420
 
  ER_TOO_LONG_IDENT,
421
 
  ER_DUP_FIELDNAME,
422
 
  ER_DUP_KEYNAME,
423
 
  ER_DUP_ENTRY,
424
 
  ER_WRONG_FIELD_SPEC,
425
 
  ER_PARSE_ERROR,
426
 
  ER_EMPTY_QUERY,
427
 
  ER_NONUNIQ_TABLE,
428
 
  ER_INVALID_DEFAULT,
429
 
  ER_MULTIPLE_PRI_KEY,
430
 
  ER_TOO_MANY_KEYS,
431
 
  ER_TOO_MANY_KEY_PARTS,
432
 
  ER_TOO_LONG_KEY,
433
 
  ER_KEY_COLUMN_DOES_NOT_EXITS,
434
 
  ER_BLOB_USED_AS_KEY,
435
 
  ER_TOO_BIG_FIELDLENGTH,
436
 
  ER_WRONG_AUTO_KEY,
437
 
  ER_READY,
438
 
  ER_NORMAL_SHUTDOWN,
439
 
  ER_GOT_SIGNAL,
440
 
  ER_SHUTDOWN_COMPLETE,
441
 
  ER_FORCING_CLOSE,
442
 
  ER_IPSOCK_ERROR,
443
 
  ER_NO_SUCH_INDEX,
444
 
  ER_WRONG_FIELD_TERMINATORS,
445
 
  ER_BLOBS_AND_NO_TERMINATED,
446
 
  ER_TEXTFILE_NOT_READABLE,
447
 
  ER_FILE_EXISTS_ERROR,
448
 
  ER_LOAD_INFO,
449
 
  ER_ALTER_INFO,
450
 
  ER_WRONG_SUB_KEY,
451
 
  ER_CANT_REMOVE_ALL_FIELDS,
452
 
  ER_CANT_DROP_FIELD_OR_KEY,
453
 
  ER_INSERT_INFO,
454
 
  ER_UPDATE_TABLE_USED,
455
 
  ER_NO_SUCH_THREAD,
456
 
  ER_KILL_DENIED_ERROR,
457
 
  ER_NO_TABLES_USED,
458
 
  ER_TOO_BIG_SET,
459
 
  ER_NO_UNIQUE_LOGFILE,
460
 
  ER_TABLE_NOT_LOCKED_FOR_WRITE,
461
 
  ER_TABLE_NOT_LOCKED,
462
 
  ER_BLOB_CANT_HAVE_DEFAULT,
463
 
  ER_WRONG_DB_NAME,
464
 
  ER_WRONG_TABLE_NAME,
465
 
  ER_TOO_BIG_SELECT,
466
 
  ER_UNKNOWN_ERROR,
467
 
  ER_UNKNOWN_PROCEDURE,
468
 
  ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
469
 
  ER_WRONG_PARAMETERS_TO_PROCEDURE,
470
 
  ER_UNKNOWN_TABLE,
471
 
  ER_FIELD_SPECIFIED_TWICE,
472
 
  ER_INVALID_GROUP_FUNC_USE,
473
 
  ER_UNSUPPORTED_EXTENSION,
474
 
  ER_TABLE_MUST_HAVE_COLUMNS,
475
 
  ER_RECORD_FILE_FULL,
476
 
  ER_UNKNOWN_CHARACTER_SET,
477
 
  ER_TOO_MANY_TABLES,
478
 
  ER_TOO_MANY_FIELDS,
479
 
  ER_TOO_BIG_ROWSIZE,
480
 
  ER_STACK_OVERRUN,
481
 
  ER_WRONG_OUTER_JOIN,
482
 
  ER_NULL_COLUMN_IN_INDEX,
483
 
  ER_CANT_FIND_UDF,
484
 
  ER_CANT_INITIALIZE_UDF,
485
 
  ER_PLUGIN_NO_PATHS,
486
 
  ER_PLUGIN_EXISTS,
487
 
  ER_CANT_OPEN_LIBRARY,
488
 
  ER_CANT_FIND_DL_ENTRY,
489
 
  ER_FUNCTION_NOT_DEFINED,
490
 
  ER_HOST_IS_BLOCKED,
491
 
  ER_HOST_NOT_PRIVILEGED,
492
 
  ER_PASSWORD_ANONYMOUS_USER,
493
 
  ER_PASSWORD_NOT_ALLOWED,
494
 
  ER_PASSWORD_NO_MATCH,
495
 
  ER_UPDATE_INFO,
496
 
  ER_CANT_CREATE_THREAD,
497
 
  ER_WRONG_VALUE_COUNT_ON_ROW,
498
 
  ER_CANT_REOPEN_TABLE,
499
 
  ER_INVALID_USE_OF_NULL,
500
 
  ER_REGEXP_ERROR,
501
 
  ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
502
 
  ER_NONEXISTING_GRANT,
503
 
  ER_TABLEACCESS_DENIED_ERROR,
504
 
  ER_COLUMNACCESS_DENIED_ERROR,
505
 
  ER_ILLEGAL_GRANT_FOR_TABLE,
506
 
  ER_GRANT_WRONG_HOST_OR_USER,
507
 
  ER_NO_SUCH_TABLE,
508
 
  ER_NONEXISTING_TABLE_GRANT,
509
 
  ER_NOT_ALLOWED_COMMAND,
510
 
  ER_SYNTAX_ERROR,
511
 
  ER_DELAYED_CANT_CHANGE_LOCK,
512
 
  ER_TOO_MANY_DELAYED_THREADS,
513
 
  ER_ABORTING_CONNECTION,
514
 
  ER_NET_PACKET_TOO_LARGE,
515
 
  ER_NET_READ_ERROR_FROM_PIPE,
516
 
  ER_NET_FCNTL_ERROR,
517
 
  ER_NET_PACKETS_OUT_OF_ORDER,
518
 
  ER_NET_UNCOMPRESS_ERROR,
519
 
  ER_NET_READ_ERROR,
520
 
  ER_NET_READ_INTERRUPTED,
521
 
  ER_NET_ERROR_ON_WRITE,
522
 
  ER_NET_WRITE_INTERRUPTED,
523
 
  ER_TOO_LONG_STRING,
524
 
  ER_TABLE_CANT_HANDLE_BLOB,
525
 
  ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
526
 
  ER_DELAYED_INSERT_TABLE_LOCKED,
527
 
  ER_WRONG_COLUMN_NAME,
528
 
  ER_WRONG_KEY_COLUMN,
529
 
  ER_WRONG_MRG_TABLE,
530
 
  ER_DUP_UNIQUE,
531
 
  ER_BLOB_KEY_WITHOUT_LENGTH,
532
 
  ER_PRIMARY_CANT_HAVE_NULL,
533
 
  ER_TOO_MANY_ROWS,
534
 
  ER_REQUIRES_PRIMARY_KEY,
535
 
  ER_NO_RAID_COMPILED,
536
 
  ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE,
537
 
  ER_KEY_DOES_NOT_EXITS,
538
 
  ER_CHECK_NO_SUCH_TABLE,
539
 
  ER_CHECK_NOT_IMPLEMENTED,
540
 
  ER_CANT_DO_THIS_DURING_AN_TRANSACTION,
541
 
  ER_ERROR_DURING_COMMIT,
542
 
  ER_ERROR_DURING_ROLLBACK,
543
 
  ER_ERROR_DURING_FLUSH_LOGS,
544
 
  ER_ERROR_DURING_CHECKPOINT,
545
 
  ER_NEW_ABORTING_CONNECTION,
546
 
  ER_DUMP_NOT_IMPLEMENTED,
547
 
  ER_FLUSH_MASTER_BINLOG_CLOSED,
548
 
  ER_INDEX_REBUILD,
549
 
  ER_MASTER,
550
 
  ER_MASTER_NET_READ,
551
 
  ER_MASTER_NET_WRITE,
552
 
  ER_FT_MATCHING_KEY_NOT_FOUND,
553
 
  ER_LOCK_OR_ACTIVE_TRANSACTION,
554
 
  ER_UNKNOWN_SYSTEM_VARIABLE,
555
 
  ER_CRASHED_ON_USAGE,
556
 
  ER_CRASHED_ON_REPAIR,
557
 
  ER_WARNING_NOT_COMPLETE_ROLLBACK,
558
 
  ER_TRANS_CACHE_FULL,
559
 
  ER_SLAVE_MUST_STOP,
560
 
  ER_SLAVE_NOT_RUNNING,
561
 
  ER_BAD_SLAVE,
562
 
  ER_MASTER_INFO,
563
 
  ER_SLAVE_THREAD,
564
 
  ER_TOO_MANY_USER_CONNECTIONS,
565
 
  ER_SET_CONSTANTS_ONLY,
566
 
  ER_LOCK_WAIT_TIMEOUT,
567
 
  ER_LOCK_TABLE_FULL,
568
 
  ER_READ_ONLY_TRANSACTION,
569
 
  ER_DROP_DB_WITH_READ_LOCK,
570
 
  ER_CREATE_DB_WITH_READ_LOCK,
571
 
  ER_WRONG_ARGUMENTS,
572
 
  ER_NO_PERMISSION_TO_CREATE_USER,
573
 
  ER_UNION_TABLES_IN_DIFFERENT_DIR,
574
 
  ER_LOCK_DEADLOCK,
575
 
  ER_TABLE_CANT_HANDLE_FT,
576
 
  ER_CANNOT_ADD_FOREIGN,
577
 
  ER_NO_REFERENCED_ROW,
578
 
  ER_ROW_IS_REFERENCED,
579
 
  ER_CONNECT_TO_MASTER,
580
 
  ER_QUERY_ON_MASTER,
581
 
  ER_ERROR_WHEN_EXECUTING_COMMAND,
582
 
  ER_WRONG_USAGE,
583
 
  ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
584
 
  ER_CANT_UPDATE_WITH_READLOCK,
585
 
  ER_MIXING_NOT_ALLOWED,
586
 
  ER_DUP_ARGUMENT,
587
 
  ER_USER_LIMIT_REACHED,
588
 
  ER_SPECIFIC_ACCESS_DENIED_ERROR,
589
 
  ER_LOCAL_VARIABLE,
590
 
  ER_GLOBAL_VARIABLE,
591
 
  ER_NO_DEFAULT,
592
 
  ER_WRONG_VALUE_FOR_VAR,
593
 
  ER_WRONG_TYPE_FOR_VAR,
594
 
  ER_VAR_CANT_BE_READ,
595
 
  ER_CANT_USE_OPTION_HERE,
596
 
  ER_NOT_SUPPORTED_YET,
597
 
  ER_MASTER_FATAL_ERROR_READING_BINLOG,
598
 
  ER_SLAVE_IGNORED_TABLE,
599
 
  ER_INCORRECT_GLOBAL_LOCAL_VAR,
600
 
  ER_WRONG_FK_DEF,
601
 
  ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
602
 
  ER_OPERAND_COLUMNS,
603
 
  ER_SUBQUERY_NO_1_ROW,
604
 
  ER_UNKNOWN_STMT_HANDLER,
605
 
  ER_CORRUPT_HELP_DB,
606
 
  ER_CYCLIC_REFERENCE,
607
 
  ER_AUTO_CONVERT,
608
 
  ER_ILLEGAL_REFERENCE,
609
 
  ER_DERIVED_MUST_HAVE_ALIAS,
610
 
  ER_SELECT_REDUCED,
611
 
  ER_TABLENAME_NOT_ALLOWED_HERE,
612
 
  ER_NOT_SUPPORTED_AUTH_MODE,
613
 
  ER_SPATIAL_CANT_HAVE_NULL,
614
 
  ER_COLLATION_CHARSET_MISMATCH,
615
 
  ER_SLAVE_WAS_RUNNING,
616
 
  ER_SLAVE_WAS_NOT_RUNNING,
617
 
  ER_TOO_BIG_FOR_UNCOMPRESS,
618
 
  ER_ZLIB_Z_MEM_ERROR,
619
 
  ER_ZLIB_Z_BUF_ERROR,
620
 
  ER_ZLIB_Z_DATA_ERROR,
621
 
  ER_CUT_VALUE_GROUP_CONCAT,
622
 
  ER_WARN_TOO_FEW_RECORDS,
623
 
  ER_WARN_TOO_MANY_RECORDS,
624
 
  ER_WARN_NULL_TO_NOTNULL,
625
 
  ER_WARN_DATA_OUT_OF_RANGE,
626
 
  ER_WARN_DATA_TRUNCATED,
627
 
  ER_WARN_USING_OTHER_HANDLER,
628
 
  ER_CANT_AGGREGATE_2COLLATIONS,
629
 
  ER_DROP_USER,
630
 
  ER_REVOKE_GRANTS,
631
 
  ER_CANT_AGGREGATE_3COLLATIONS,
632
 
  ER_CANT_AGGREGATE_NCOLLATIONS,
633
 
  ER_VARIABLE_IS_NOT_STRUCT,
634
 
  ER_UNKNOWN_COLLATION,
635
 
  ER_SLAVE_IGNORED_SSL_PARAMS,
636
 
  ER_SERVER_IS_IN_SECURE_AUTH_MODE,
637
 
  ER_WARN_FIELD_RESOLVED,
638
 
  ER_BAD_SLAVE_UNTIL_COND,
639
 
  ER_MISSING_SKIP_SLAVE,
640
 
  ER_UNTIL_COND_IGNORED,
641
 
  ER_WRONG_NAME_FOR_INDEX,
642
 
  ER_WRONG_NAME_FOR_CATALOG,
643
 
  ER_WARN_QC_RESIZE,
644
 
  ER_BAD_FT_COLUMN,
645
 
  ER_UNKNOWN_KEY_CACHE,
646
 
  ER_WARN_HOSTNAME_WONT_WORK,
647
 
  ER_UNKNOWN_STORAGE_ENGINE,
648
 
  ER_WARN_DEPRECATED_SYNTAX,
649
 
  ER_NON_UPDATABLE_TABLE,
650
 
  ER_FEATURE_DISABLED,
651
 
  ER_OPTION_PREVENTS_STATEMENT,
652
 
  ER_DUPLICATED_VALUE_IN_TYPE,
653
 
  ER_TRUNCATED_WRONG_VALUE,
654
 
  ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
655
 
  ER_INVALID_ON_UPDATE,
656
 
  ER_UNSUPPORTED_PS,
657
 
  ER_GET_ERRMSG,
658
 
  ER_GET_TEMPORARY_ERRMSG,
659
 
  ER_UNKNOWN_TIME_ZONE,
660
 
  ER_WARN_INVALID_TIMESTAMP,
661
 
  ER_INVALID_CHARACTER_STRING,
662
 
  ER_WARN_ALLOWED_PACKET_OVERFLOWED,
663
 
  ER_CONFLICTING_DECLARATIONS,
664
 
  ER_SP_NO_RECURSIVE_CREATE,
665
 
  ER_SP_ALREADY_EXISTS,
666
 
  ER_SP_DOES_NOT_EXIST,
667
 
  ER_SP_DROP_FAILED,
668
 
  ER_SP_STORE_FAILED,
669
 
  ER_SP_LILABEL_MISMATCH,
670
 
  ER_SP_LABEL_REDEFINE,
671
 
  ER_SP_LABEL_MISMATCH,
672
 
  ER_SP_UNINIT_VAR,
673
 
  ER_SP_BADSELECT,
674
 
  ER_SP_BADRETURN,
675
 
  ER_SP_BADSTATEMENT,
676
 
  ER_UPDATE_LOG_DEPRECATED_IGNORED,
677
 
  ER_UPDATE_LOG_DEPRECATED_TRANSLATED,
678
 
  ER_QUERY_INTERRUPTED,
679
 
  ER_SP_WRONG_NO_OF_ARGS,
680
 
  ER_SP_COND_MISMATCH,
681
 
  ER_SP_NORETURN,
682
 
  ER_SP_NORETURNEND,
683
 
  ER_SP_BAD_CURSOR_QUERY,
684
 
  ER_SP_BAD_CURSOR_SELECT,
685
 
  ER_SP_CURSOR_MISMATCH,
686
 
  ER_SP_CURSOR_ALREADY_OPEN,
687
 
  ER_SP_CURSOR_NOT_OPEN,
688
 
  ER_SP_UNDECLARED_VAR,
689
 
  ER_SP_WRONG_NO_OF_FETCH_ARGS,
690
 
  ER_SP_FETCH_NO_DATA,
691
 
  ER_SP_DUP_PARAM,
692
 
  ER_SP_DUP_VAR,
693
 
  ER_SP_DUP_COND,
694
 
  ER_SP_DUP_CURS,
695
 
  ER_SP_CANT_ALTER,
696
 
  ER_SP_SUBSELECT_NYI,
697
 
  ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG,
698
 
  ER_SP_VARCOND_AFTER_CURSHNDLR,
699
 
  ER_SP_CURSOR_AFTER_HANDLER,
700
 
  ER_SP_CASE_NOT_FOUND,
701
 
  ER_FPARSER_TOO_BIG_FILE,
702
 
  ER_FPARSER_BAD_HEADER,
703
 
  ER_FPARSER_EOF_IN_COMMENT,
704
 
  ER_FPARSER_ERROR_IN_PARAMETER,
705
 
  ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER,
706
 
  ER_VIEW_NO_EXPLAIN,
707
 
  ER_UNUSED1346,
708
 
  ER_WRONG_OBJECT,
709
 
  ER_NONUPDATEABLE_COLUMN,
710
 
  ER_VIEW_SELECT_DERIVED,
711
 
  ER_VIEW_SELECT_CLAUSE,
712
 
  ER_VIEW_SELECT_VARIABLE,
713
 
  ER_VIEW_SELECT_TMPTABLE,
714
 
  ER_VIEW_WRONG_LIST,
715
 
  ER_WARN_VIEW_MERGE,
716
 
  ER_WARN_VIEW_WITHOUT_KEY,
717
 
  ER_VIEW_INVALID,
718
 
  ER_SP_NO_DROP_SP,
719
 
  ER_SP_GOTO_IN_HNDLR,
720
 
  ER_TRG_ALREADY_EXISTS,
721
 
  ER_TRG_DOES_NOT_EXIST,
722
 
  ER_TRG_ON_VIEW_OR_TEMP_TABLE,
723
 
  ER_TRG_CANT_CHANGE_ROW,
724
 
  ER_TRG_NO_SUCH_ROW_IN_TRG,
725
 
  ER_NO_DEFAULT_FOR_FIELD,
726
 
  ER_DIVISION_BY_ZERO,
727
 
  ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
728
 
  ER_ILLEGAL_VALUE_FOR_TYPE,
729
 
  ER_VIEW_NONUPD_CHECK,
730
 
  ER_VIEW_CHECK_FAILED,
731
 
  ER_PROCACCESS_DENIED_ERROR,
732
 
  ER_RELAY_LOG_FAIL,
733
 
  ER_PASSWD_LENGTH,
734
 
  ER_UNKNOWN_TARGET_BINLOG,
735
 
  ER_IO_ERR_LOG_INDEX_READ,
736
 
  ER_BINLOG_PURGE_PROHIBITED,
737
 
  ER_FSEEK_FAIL,
738
 
  ER_BINLOG_PURGE_FATAL_ERR,
739
 
  ER_LOG_IN_USE,
740
 
  ER_LOG_PURGE_UNKNOWN_ERR,
741
 
  ER_RELAY_LOG_INIT,
742
 
  ER_NO_BINARY_LOGGING,
743
 
  ER_RESERVED_SYNTAX,
744
 
  ER_WSAS_FAILED,
745
 
  ER_DIFF_GROUPS_PROC,
746
 
  ER_NO_GROUP_FOR_PROC,
747
 
  ER_ORDER_WITH_PROC,
748
 
  ER_LOGGING_PROHIBIT_CHANGING_OF,
749
 
  ER_NO_FILE_MAPPING,
750
 
  ER_WRONG_MAGIC,
751
 
  ER_PS_MANY_PARAM,
752
 
  ER_KEY_PART_0,
753
 
  ER_VIEW_CHECKSUM,
754
 
  ER_VIEW_MULTIUPDATE,
755
 
  ER_VIEW_NO_INSERT_FIELD_LIST,
756
 
  ER_VIEW_DELETE_MERGE_VIEW,
757
 
  ER_CANNOT_USER,
758
 
  ER_XAER_NOTA,
759
 
  ER_XAER_INVAL,
760
 
  ER_XAER_RMFAIL,
761
 
  ER_XAER_OUTSIDE,
762
 
  ER_XAER_RMERR,
763
 
  ER_XA_RBROLLBACK,
764
 
  ER_NONEXISTING_PROC_GRANT,
765
 
  ER_PROC_AUTO_GRANT_FAIL,
766
 
  ER_PROC_AUTO_REVOKE_FAIL,
767
 
  ER_DATA_TOO_LONG,
768
 
  ER_SP_BAD_SQLSTATE,
769
 
  ER_STARTUP,
770
 
  ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
771
 
  ER_CANT_CREATE_USER_WITH_GRANT,
772
 
  ER_WRONG_VALUE_FOR_TYPE,
773
 
  ER_TABLE_DEF_CHANGED,
774
 
  ER_SP_DUP_HANDLER,
775
 
  ER_SP_NOT_VAR_ARG,
776
 
  ER_SP_NO_RETSET,
777
 
  ER_CANT_CREATE_GEOMETRY_OBJECT,
778
 
  ER_FAILED_ROUTINE_BREAK_BINLOG,
779
 
  ER_BINLOG_UNSAFE_ROUTINE,
780
 
  ER_BINLOG_CREATE_ROUTINE_NEED_SUPER,
781
 
  ER_EXEC_STMT_WITH_OPEN_CURSOR,
782
 
  ER_STMT_HAS_NO_OPEN_CURSOR,
783
 
  ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
784
 
  ER_NO_DEFAULT_FOR_VIEW_FIELD,
785
 
  ER_SP_NO_RECURSION,
786
 
  ER_TOO_BIG_SCALE,
787
 
  ER_TOO_BIG_PRECISION,
788
 
  ER_M_BIGGER_THAN_D,
789
 
  ER_WRONG_LOCK_OF_SYSTEM_TABLE,
790
 
  ER_CONNECT_TO_FOREIGN_DATA_SOURCE,
791
 
  ER_QUERY_ON_FOREIGN_DATA_SOURCE,
792
 
  ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST,
793
 
  ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE,
794
 
  ER_FOREIGN_DATA_STRING_INVALID,
795
 
  ER_CANT_CREATE_FEDERATED_TABLE,
796
 
  ER_TRG_IN_WRONG_SCHEMA,
797
 
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
798
 
  ER_TOO_LONG_BODY,
799
 
  ER_WARN_CANT_DROP_DEFAULT_KEYCACHE,
800
 
  ER_TOO_BIG_DISPLAYWIDTH,
801
 
  ER_XAER_DUPID,
802
 
  ER_DATETIME_FUNCTION_OVERFLOW,
803
 
  ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG,
804
 
  ER_VIEW_PREVENT_UPDATE,
805
 
  ER_PS_NO_RECURSION,
806
 
  ER_SP_CANT_SET_AUTOCOMMIT,
807
 
  ER_MALFORMED_DEFINER,
808
 
  ER_VIEW_FRM_NO_USER,
809
 
  ER_VIEW_OTHER_USER,
810
 
  ER_NO_SUCH_USER,
811
 
  ER_FORBID_SCHEMA_CHANGE,
812
 
  ER_ROW_IS_REFERENCED_2,
813
 
  ER_NO_REFERENCED_ROW_2,
814
 
  ER_SP_BAD_VAR_SHADOW,
815
 
  ER_TRG_NO_DEFINER,
816
 
  ER_OLD_FILE_FORMAT,
817
 
  ER_SP_RECURSION_LIMIT,
818
 
  ER_SP_PROC_TABLE_CORRUPT,
819
 
  ER_SP_WRONG_NAME,
820
 
  ER_TABLE_NEEDS_UPGRADE,
821
 
  ER_SP_NO_AGGREGATE,
822
 
  ER_MAX_PREPARED_STMT_COUNT_REACHED,
823
 
  ER_VIEW_RECURSIVE,
824
 
  ER_NON_GROUPING_FIELD_USED,
825
 
  ER_TABLE_CANT_HANDLE_SPKEYS,
826
 
  ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA,
827
 
  ER_REMOVED_SPACES,
828
 
  ER_AUTOINC_READ_FAILED,
829
 
  ER_USERNAME,
830
 
  ER_HOSTNAME,
831
 
  ER_WRONG_STRING_LENGTH,
832
 
  ER_NON_INSERTABLE_TABLE,
833
 
  ER_ADMIN_WRONG_MRG_TABLE,
834
 
  ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
835
 
  ER_NAME_BECOMES_EMPTY,
836
 
  ER_AMBIGUOUS_FIELD_TERM,
837
 
  ER_FOREIGN_SERVER_EXISTS,
838
 
  ER_FOREIGN_SERVER_DOESNT_EXIST,
839
 
  ER_ILLEGAL_HA_CREATE_OPTION,
840
 
  ER_PARTITION_REQUIRES_VALUES_ERROR,
841
 
  ER_PARTITION_WRONG_VALUES_ERROR,
842
 
  ER_PARTITION_MAXVALUE_ERROR,
843
 
  ER_PARTITION_SUBPARTITION_ERROR,
844
 
  ER_PARTITION_SUBPART_MIX_ERROR,
845
 
  ER_PARTITION_WRONG_NO_PART_ERROR,
846
 
  ER_PARTITION_WRONG_NO_SUBPART_ERROR,
847
 
  ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR,
848
 
  ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR,
849
 
  ER_FIELD_NOT_FOUND_PART_ERROR,
850
 
  ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR,
851
 
  ER_INCONSISTENT_PARTITION_INFO_ERROR,
852
 
  ER_PARTITION_FUNC_NOT_ALLOWED_ERROR,
853
 
  ER_PARTITIONS_MUST_BE_DEFINED_ERROR,
854
 
  ER_RANGE_NOT_INCREASING_ERROR,
855
 
  ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR,
856
 
  ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR,
857
 
  ER_PARTITION_ENTRY_ERROR,
858
 
  ER_MIX_HANDLER_ERROR,
859
 
  ER_PARTITION_NOT_DEFINED_ERROR,
860
 
  ER_TOO_MANY_PARTITIONS_ERROR,
861
 
  ER_SUBPARTITION_ERROR,
862
 
  ER_CANT_CREATE_HANDLER_FILE,
863
 
  ER_BLOB_FIELD_IN_PART_FUNC_ERROR,
864
 
  ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF,
865
 
  ER_NO_PARTS_ERROR,
866
 
  ER_PARTITION_MGMT_ON_NONPARTITIONED,
867
 
  ER_FOREIGN_KEY_ON_PARTITIONED,
868
 
  ER_DROP_PARTITION_NON_EXISTENT,
869
 
  ER_DROP_LAST_PARTITION,
870
 
  ER_COALESCE_ONLY_ON_HASH_PARTITION,
871
 
  ER_REORG_HASH_ONLY_ON_SAME_NO,
872
 
  ER_REORG_NO_PARAM_ERROR,
873
 
  ER_ONLY_ON_RANGE_LIST_PARTITION,
874
 
  ER_ADD_PARTITION_SUBPART_ERROR,
875
 
  ER_ADD_PARTITION_NO_NEW_PARTITION,
876
 
  ER_COALESCE_PARTITION_NO_PARTITION,
877
 
  ER_REORG_PARTITION_NOT_EXIST,
878
 
  ER_SAME_NAME_PARTITION,
879
 
  ER_NO_BINLOG_ERROR,
880
 
  ER_CONSECUTIVE_REORG_PARTITIONS,
881
 
  ER_REORG_OUTSIDE_RANGE,
882
 
  ER_PARTITION_FUNCTION_FAILURE,
883
 
  ER_PART_STATE_ERROR,
884
 
  ER_LIMITED_PART_RANGE,
885
 
  ER_PLUGIN_IS_NOT_LOADED,
886
 
  ER_WRONG_VALUE,
887
 
  ER_NO_PARTITION_FOR_GIVEN_VALUE,
888
 
  ER_FILEGROUP_OPTION_ONLY_ONCE,
889
 
  ER_CREATE_FILEGROUP_FAILED,
890
 
  ER_DROP_FILEGROUP_FAILED,
891
 
  ER_TABLESPACE_AUTO_EXTEND_ERROR,
892
 
  ER_WRONG_SIZE_NUMBER,
893
 
  ER_SIZE_OVERFLOW_ERROR,
894
 
  ER_ALTER_FILEGROUP_FAILED,
895
 
  ER_BINLOG_ROW_LOGGING_FAILED,
896
 
  ER_BINLOG_ROW_WRONG_TABLE_DEF,
897
 
  ER_BINLOG_ROW_RBR_TO_SBR,
898
 
  ER_EVENT_ALREADY_EXISTS,
899
 
  ER_EVENT_STORE_FAILED,
900
 
  ER_EVENT_DOES_NOT_EXIST,
901
 
  ER_EVENT_CANT_ALTER,
902
 
  ER_EVENT_DROP_FAILED,
903
 
  ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG,
904
 
  ER_EVENT_ENDS_BEFORE_STARTS,
905
 
  ER_EVENT_EXEC_TIME_IN_THE_PAST,
906
 
  ER_EVENT_OPEN_TABLE_FAILED,
907
 
  ER_EVENT_NEITHER_M_EXPR_NOR_M_AT,
908
 
  ER_COL_COUNT_DOESNT_MATCH_CORRUPTED,
909
 
  ER_CANNOT_LOAD_FROM_TABLE,
910
 
  ER_EVENT_CANNOT_DELETE,
911
 
  ER_EVENT_COMPILE_ERROR,
912
 
  ER_EVENT_SAME_NAME,
913
 
  ER_EVENT_DATA_TOO_LONG,
914
 
  ER_DROP_INDEX_FK,
915
 
  ER_WARN_DEPRECATED_SYNTAX_WITH_VER,
916
 
  ER_CANT_WRITE_LOCK_LOG_TABLE,
917
 
  ER_CANT_LOCK_LOG_TABLE,
918
 
  ER_FOREIGN_DUPLICATE_KEY,
919
 
  ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE,
920
 
  ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR,
921
 
  ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT,
922
 
  ER_NDB_CANT_SWITCH_BINLOG_FORMAT,
923
 
  ER_PARTITION_NO_TEMPORARY,
924
 
  ER_PARTITION_CONST_DOMAIN_ERROR,
925
 
  ER_PARTITION_FUNCTION_IS_NOT_ALLOWED,
926
 
  ER_DDL_LOG_ERROR,
927
 
  ER_NULL_IN_VALUES_LESS_THAN,
928
 
  ER_WRONG_PARTITION_NAME,
929
 
  ER_CANT_CHANGE_TX_ISOLATION,
930
 
  ER_DUP_ENTRY_AUTOINCREMENT_CASE,
931
 
  ER_EVENT_MODIFY_QUEUE_ERROR,
932
 
  ER_EVENT_SET_VAR_ERROR,
933
 
  ER_PARTITION_MERGE_ERROR,
934
 
  ER_CANT_ACTIVATE_LOG,
935
 
  ER_RBR_NOT_AVAILABLE,
936
 
  ER_BASE64_DECODE_ERROR,
937
 
  ER_EVENT_RECURSION_FORBIDDEN,
938
 
  ER_EVENTS_DB_ERROR,
939
 
  ER_ONLY_INTEGERS_ALLOWED,
940
 
  ER_UNSUPORTED_LOG_ENGINE,
941
 
  ER_BAD_LOG_STATEMENT,
942
 
  ER_CANT_RENAME_LOG_TABLE,
943
 
  ER_WRONG_PARAMCOUNT_TO_FUNCTION,
944
 
  ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
945
 
  ER_WRONG_PARAMETERS_TO_STORED_FCT,
946
 
  ER_NATIVE_FCT_NAME_COLLISION,
947
 
  ER_DUP_ENTRY_WITH_KEY_NAME,
948
 
  ER_BINLOG_PURGE_EMFILE,
949
 
  ER_EVENT_CANNOT_CREATE_IN_THE_PAST,
950
 
  ER_EVENT_CANNOT_ALTER_IN_THE_PAST,
951
 
  ER_SLAVE_INCIDENT,
952
 
  ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT,
953
 
  ER_BINLOG_UNSAFE_STATEMENT,
954
 
  ER_SLAVE_FATAL_ERROR,
955
 
  ER_SLAVE_RELAY_LOG_READ_FAILURE,
956
 
  ER_SLAVE_RELAY_LOG_WRITE_FAILURE,
957
 
  ER_SLAVE_CREATE_EVENT_FAILURE,
958
 
  ER_SLAVE_MASTER_COM_FAILURE,
959
 
  ER_BINLOG_LOGGING_IMPOSSIBLE,
960
 
  ER_VIEW_NO_CREATION_CTX,
961
 
  ER_VIEW_INVALID_CREATION_CTX,
962
 
  ER_SR_INVALID_CREATION_CTX,
963
 
  ER_TRG_CORRUPTED_FILE,
964
 
  ER_TRG_NO_CREATION_CTX,
965
 
  ER_TRG_INVALID_CREATION_CTX,
966
 
  ER_EVENT_INVALID_CREATION_CTX,
967
 
  ER_TRG_CANT_OPEN_TABLE,
968
 
  ER_CANT_CREATE_SROUTINE,
969
 
  ER_SLAVE_AMBIGOUS_EXEC_MODE,
970
 
  ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT,
971
 
  ER_SLAVE_CORRUPT_EVENT,
972
 
  ER_LOAD_DATA_INVALID_COLUMN,
973
 
  ER_LOG_PURGE_NO_FILE,
974
 
  ER_WARN_AUTO_CONVERT_LOCK,
975
 
  ER_NO_AUTO_CONVERT_LOCK_STRICT,
976
 
  ER_NO_AUTO_CONVERT_LOCK_TRANSACTION,
977
 
  ER_NO_STORAGE_ENGINE,
978
 
  ER_BACKUP_BACKUP_START,
979
 
  ER_BACKUP_BACKUP_DONE,
980
 
  ER_BACKUP_RESTORE_START,
981
 
  ER_BACKUP_RESTORE_DONE,
982
 
  ER_BACKUP_NOTHING_TO_BACKUP,
983
 
  ER_BACKUP_CANNOT_INCLUDE_DB,
984
 
  ER_BACKUP_BACKUP,
985
 
  ER_BACKUP_RESTORE,
986
 
  ER_BACKUP_RUNNING,
987
 
  ER_BACKUP_BACKUP_PREPARE,
988
 
  ER_BACKUP_RESTORE_PREPARE,
989
 
  ER_BACKUP_INVALID_LOC,
990
 
  ER_BACKUP_READ_LOC,
991
 
  ER_BACKUP_WRITE_LOC,
992
 
  ER_BACKUP_LIST_DBS,
993
 
  ER_BACKUP_LIST_TABLES,
994
 
  ER_BACKUP_LIST_DB_TABLES,
995
 
  ER_BACKUP_SKIP_VIEW,
996
 
  ER_BACKUP_NO_ENGINE,
997
 
  ER_BACKUP_TABLE_OPEN,
998
 
  ER_BACKUP_READ_HEADER,
999
 
  ER_BACKUP_WRITE_HEADER,
1000
 
  ER_BACKUP_NO_BACKUP_DRIVER,
1001
 
  ER_BACKUP_NOT_ACCEPTED,
1002
 
  ER_BACKUP_CREATE_BACKUP_DRIVER,
1003
 
  ER_BACKUP_CREATE_RESTORE_DRIVER,
1004
 
  ER_BACKUP_TOO_MANY_IMAGES,
1005
 
  ER_BACKUP_WRITE_META,
1006
 
  ER_BACKUP_READ_META,
1007
 
  ER_BACKUP_CREATE_META,
1008
 
  ER_BACKUP_GET_BUF,
1009
 
  ER_BACKUP_WRITE_DATA,
1010
 
  ER_BACKUP_READ_DATA,
1011
 
  ER_BACKUP_NEXT_CHUNK,
1012
 
  ER_BACKUP_INIT_BACKUP_DRIVER,
1013
 
  ER_BACKUP_INIT_RESTORE_DRIVER,
1014
 
  ER_BACKUP_STOP_BACKUP_DRIVER,
1015
 
  ER_BACKUP_STOP_RESTORE_DRIVERS,
1016
 
  ER_BACKUP_PREPARE_DRIVER,
1017
 
  ER_BACKUP_CREATE_VP,
1018
 
  ER_BACKUP_UNLOCK_DRIVER,
1019
 
  ER_BACKUP_CANCEL_BACKUP,
1020
 
  ER_BACKUP_CANCEL_RESTORE,
1021
 
  ER_BACKUP_GET_DATA,
1022
 
  ER_BACKUP_SEND_DATA,
1023
 
  ER_BACKUP_SEND_DATA_RETRY,
1024
 
  ER_BACKUP_OPEN_TABLES,
1025
 
  ER_BACKUP_THREAD_INIT,
1026
 
  ER_BACKUP_PROGRESS_TABLES,
1027
 
  ER_TABLESPACE_EXIST,
1028
 
  ER_NO_SUCH_TABLESPACE,
1029
 
  ER_SLAVE_HEARTBEAT_FAILURE,
1030
 
  ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE,
1031
 
  ER_BACKUP_LOG_WRITE_ERROR,
1032
 
  ER_TABLESPACE_NOT_EMPTY,
1033
 
  ER_BACKUP_TS_CHANGE,
1034
 
  ER_VCOL_BASED_ON_VCOL,
1035
 
  ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED,
1036
 
  ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN,
1037
 
  ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN,
1038
 
  ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN,
1039
 
  ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN,
1040
 
  ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN,
1041
 
  ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN,
1042
 
  ER_CONST_EXPR_IN_VCOL,
1043
 
  ER_UNKNOWN_TEMPORAL_TYPE,
1044
 
  ER_INVALID_STRING_FORMAT_FOR_DATE,
1045
 
  ER_INVALID_STRING_FORMAT_FOR_TIME,
1046
 
  ER_INVALID_UNIX_TIMESTAMP_VALUE,
1047
 
  ER_INVALID_DATETIME_VALUE,
1048
 
  ER_INVALID_NULL_ARGUMENT,
1049
 
  ER_INVALID_NEGATIVE_ARGUMENT,
1050
 
  ER_ARGUMENT_OUT_OF_RANGE,
1051
 
  ER_INVALID_TIME_VALUE,
1052
 
  ER_INVALID_ENUM_VALUE,
1053
 
  ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
1054
 
  ER_CORRUPT_TABLE_DEFINITION,
1055
 
  ER_SCHEMA_DOES_NOT_EXIST,
1056
 
  ER_ALTER_SCHEMA,
1057
 
  ER_DROP_SCHEMA,
1058
 
  ER_ERROR_LAST= ER_CORRUPT_TABLE_DEFINITION
1059
 
};
1060
 
 
1061
 
enum drizzle_exit_codes {
1062
 
  EXIT_UNSPECIFIED_ERROR = 1,
1063
 
  EXIT_UNKNOWN_OPTION,
1064
 
  EXIT_AMBIGUOUS_OPTION,
1065
 
  EXIT_NO_ARGUMENT_ALLOWED,
1066
 
  EXIT_ARGUMENT_REQUIRED,
1067
 
  EXIT_VAR_PREFIX_NOT_UNIQUE,
1068
 
  EXIT_UNKNOWN_VARIABLE,
1069
 
  EXIT_OUT_OF_MEMORY,
1070
 
  EXIT_UNKNOWN_SUFFIX,
1071
 
  EXIT_NO_PTR_TO_VARIABLE,
1072
 
  EXIT_CANNOT_CONNECT_TO_SERVICE,
1073
 
  EXIT_OPTION_DISABLED,
1074
 
  EXIT_ARGUMENT_INVALID
1075
 
};
1076
 
 
1077
 
 
1078
 
} /* namespace drizzled */
 
333
enum enum_duplicates 
 
334
 
335
  DUP_ERROR, 
 
336
  DUP_REPLACE, 
 
337
  DUP_UPDATE 
 
338
};
1079
339
 
1080
340
#endif /* DRIZZLED_ENUM_H */