~drizzle-trunk/drizzle/development

1089.1.11 by Brian Aker
Cleanup on enum
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
1089.1.11 by Brian Aker
Cleanup on enum
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
#ifndef DRIZZLED_ENUM_H
22
#define DRIZZLED_ENUM_H
23
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
24
namespace drizzled
25
{
26
1089.1.11 by Brian Aker
Cleanup on enum
27
/**
28
  Query type constants.
29
30
  QT_ORDINARY -- ordinary SQL query.
31
  QT_IS -- SQL query to be shown in INFORMATION_SCHEMA (in utf8 and without
32
  character set introducers).
33
34
  @TODO
35
36
  Move this out of here once Stew's done with UDF breakout.  The following headers need it:
37
38
    sql_lex.h --> included by session.h
39
    item.h
40
    table.h
41
    item_func.h
42
    item_subselect.h
43
    item_timefunc.h
44
    item_sum.h
45
    item_cmpfunc.h
46
    item_strfunc.h
47
*/
48
enum enum_query_type
49
{
50
  QT_ORDINARY,
51
  QT_IS
52
};
53
54
55
/**
56
 * @TODO Move to a separate header?
57
 *
58
 * It's needed by item.h and field.h, which are both inter-dependent
59
 * and contain forward declarations of many structs/classes in the
60
 * other header file.
61
 *
62
 * What is needed is a separate header file that is included
63
 * by *both* item.h and field.h to resolve inter-dependencies
64
 *
65
 * But, probably want to hold off on this until Stew finished the UDF cleanup
66
 */
67
enum Derivation
68
{
69
  DERIVATION_IGNORABLE= 5,
70
  DERIVATION_COERCIBLE= 4,
71
  DERIVATION_SYSCONST= 3,
72
  DERIVATION_IMPLICIT= 2,
73
  DERIVATION_NONE= 1,
74
  DERIVATION_EXPLICIT= 0
75
};
76
77
enum enum_parsing_place
78
{
1240.3.2 by Brian Aker
Cleanup white space.
79
  NO_MATTER,
80
  IN_HAVING,
81
  SELECT_LIST,
82
  IN_WHERE,
83
  IN_ON
1100.2.3 by Brian Aker
Remove final bits on SJ
84
};
1089.1.11 by Brian Aker
Cleanup on enum
85
1240.3.2 by Brian Aker
Cleanup white space.
86
enum enum_mysql_completiontype
1089.1.11 by Brian Aker
Cleanup on enum
87
{
1240.3.2 by Brian Aker
Cleanup white space.
88
  ROLLBACK_RELEASE= -2,
89
  ROLLBACK= 1,
90
  ROLLBACK_AND_CHAIN= 7,
91
  COMMIT_RELEASE= -1,
92
  COMMIT= 0,
1089.1.11 by Brian Aker
Cleanup on enum
93
  COMMIT_AND_CHAIN= 6
94
};
95
96
enum enum_check_fields
97
{
1240.3.2 by Brian Aker
Cleanup white space.
98
  CHECK_FIELD_IGNORE,
99
  CHECK_FIELD_WARN,
1089.1.11 by Brian Aker
Cleanup on enum
100
  CHECK_FIELD_ERROR_FOR_NULL
101
};
102
1273.13.24 by Brian Aker
Updating style, simplified code.
103
enum sql_var_t
1089.1.11 by Brian Aker
Cleanup on enum
104
{
1240.3.2 by Brian Aker
Cleanup white space.
105
  OPT_DEFAULT= 0,
106
  OPT_SESSION,
1089.1.11 by Brian Aker
Cleanup on enum
107
  OPT_GLOBAL
108
};
109
1240.3.2 by Brian Aker
Cleanup white space.
110
enum column_format_type
1089.1.11 by Brian Aker
Cleanup on enum
111
{
112
  COLUMN_FORMAT_TYPE_NOT_USED= -1,
113
  COLUMN_FORMAT_TYPE_DEFAULT= 0,
114
  COLUMN_FORMAT_TYPE_FIXED= 1,
1240.3.2 by Brian Aker
Cleanup white space.
115
  COLUMN_FORMAT_TYPE_DYNAMIC= 2
1089.1.11 by Brian Aker
Cleanup on enum
116
};
117
118
119
/**
120
  Category of table found in the table share.
121
*/
122
enum enum_table_category
123
{
124
  /**
125
    Unknown value.
126
  */
127
  TABLE_UNKNOWN_CATEGORY=0,
128
129
  /**
130
    Temporary table.
131
    The table is visible only in the session.
132
    Therefore,
133
    - FLUSH TABLES WITH READ LOCK
134
    - SET GLOBAL READ_ONLY = ON
135
    do not apply to this table.
136
    Note that LOCK Table t FOR READ/WRITE
137
    can be used on temporary tables.
138
    Temporary tables are not part of the table cache.
139
  */
140
  TABLE_CATEGORY_TEMPORARY=1,
141
142
  /**
143
    User table.
144
    These tables do honor:
145
    - LOCK Table t FOR READ/WRITE
146
    - FLUSH TABLES WITH READ LOCK
147
    - SET GLOBAL READ_ONLY = ON
148
    User tables are cached in the table cache.
149
  */
150
  TABLE_CATEGORY_USER=2,
151
152
  /**
153
    Information schema tables.
154
    These tables are an interface provided by the system
155
    to inspect the system metadata.
156
    These tables do *not* honor:
157
    - LOCK Table t FOR READ/WRITE
158
    - FLUSH TABLES WITH READ LOCK
159
    - SET GLOBAL READ_ONLY = ON
160
    as there is no point in locking explicitely
161
    an INFORMATION_SCHEMA table.
162
    Nothing is directly written to information schema tables.
163
    Note that this value is not used currently,
164
    since information schema tables are not shared,
165
    but implemented as session specific temporary tables.
166
  */
167
  /*
168
    TODO: Fixing the performance issues of I_S will lead
169
    to I_S tables in the table cache, which should use
170
    this table type.
171
  */
172
  TABLE_CATEGORY_INFORMATION
173
};
174
1240.3.2 by Brian Aker
Cleanup white space.
175
enum enum_enable_or_disable
1089.1.11 by Brian Aker
Cleanup on enum
176
{
1240.3.2 by Brian Aker
Cleanup white space.
177
  LEAVE_AS_IS,
178
  ENABLE,
179
  DISABLE
1089.1.11 by Brian Aker
Cleanup on enum
180
};
181
182
183
enum enum_mark_columns
1240.3.2 by Brian Aker
Cleanup white space.
184
{
185
  MARK_COLUMNS_NONE,
186
  MARK_COLUMNS_READ,
1089.1.11 by Brian Aker
Cleanup on enum
187
  MARK_COLUMNS_WRITE
188
};
189
1240.3.2 by Brian Aker
Cleanup white space.
190
enum enum_filetype
191
{
192
  FILETYPE_CSV,
193
  FILETYPE_XML
1089.1.11 by Brian Aker
Cleanup on enum
194
};
195
1240.3.2 by Brian Aker
Cleanup white space.
196
enum find_item_error_report_type
1089.1.11 by Brian Aker
Cleanup on enum
197
{
1240.3.2 by Brian Aker
Cleanup white space.
198
  REPORT_ALL_ERRORS,
1089.1.11 by Brian Aker
Cleanup on enum
199
  REPORT_EXCEPT_NOT_FOUND,
1240.3.2 by Brian Aker
Cleanup white space.
200
  IGNORE_ERRORS,
1089.1.11 by Brian Aker
Cleanup on enum
201
  REPORT_EXCEPT_NON_UNIQUE,
202
  IGNORE_EXCEPT_NON_UNIQUE
203
};
204
205
/*
206
  Values in this enum are used to indicate how a tables TIMESTAMP field
207
  should be treated. It can be set to the current timestamp on insert or
208
  update or both.
209
  WARNING: The values are used for bit operations. If you change the
210
  enum, you must keep the bitwise relation of the values. For example:
211
  (int) TIMESTAMP_AUTO_SET_ON_BOTH must be equal to
212
  (int) TIMESTAMP_AUTO_SET_ON_INSERT | (int) TIMESTAMP_AUTO_SET_ON_UPDATE.
213
  We use an enum here so that the debugger can display the value names.
214
*/
215
enum timestamp_auto_set_type
216
{
1240.3.2 by Brian Aker
Cleanup white space.
217
  TIMESTAMP_NO_AUTO_SET= 0,
1089.1.11 by Brian Aker
Cleanup on enum
218
  TIMESTAMP_AUTO_SET_ON_INSERT= 1,
1240.3.2 by Brian Aker
Cleanup white space.
219
  TIMESTAMP_AUTO_SET_ON_UPDATE= 2,
1089.1.11 by Brian Aker
Cleanup on enum
220
  TIMESTAMP_AUTO_SET_ON_BOTH= 3
221
};
222
1240.3.2 by Brian Aker
Cleanup white space.
223
enum enum_ha_read_modes
224
{
225
  RFIRST,
226
  RNEXT,
227
  RPREV,
228
  RLAST,
229
  RKEY,
230
  RNEXT_SAME
1089.1.11 by Brian Aker
Cleanup on enum
231
};
232
1240.3.2 by Brian Aker
Cleanup white space.
233
enum enum_tx_isolation
1089.1.11 by Brian Aker
Cleanup on enum
234
{
1240.3.2 by Brian Aker
Cleanup white space.
235
  ISO_READ_UNCOMMITTED,
1089.1.11 by Brian Aker
Cleanup on enum
236
  ISO_READ_COMMITTED,
1240.3.2 by Brian Aker
Cleanup white space.
237
  ISO_REPEATABLE_READ,
1089.1.11 by Brian Aker
Cleanup on enum
238
  ISO_SERIALIZABLE
239
};
240
241
1240.3.2 by Brian Aker
Cleanup white space.
242
enum SHOW_COMP_OPTION
243
{
244
  SHOW_OPTION_YES,
245
  SHOW_OPTION_NO,
1089.1.11 by Brian Aker
Cleanup on enum
246
  SHOW_OPTION_DISABLED
247
};
248
249
/*
250
  When a command is added here, be sure it's also added in mysqld.cc
251
  in "struct show_var_st status_vars[]= {" ...
252
253
  If the command returns a result set or is not allowed in stored
254
  functions or triggers, please also make sure that
255
  sp_get_flags_for_command (sp_head.cc) returns proper flags for the
256
  added SQLCOM_.
257
*/
258
259
enum enum_sql_command {
1240.3.2 by Brian Aker
Cleanup white space.
260
  SQLCOM_SELECT,
261
  SQLCOM_CREATE_TABLE,
262
  SQLCOM_CREATE_INDEX,
1089.1.11 by Brian Aker
Cleanup on enum
263
  SQLCOM_ALTER_TABLE,
1240.3.2 by Brian Aker
Cleanup white space.
264
  SQLCOM_UPDATE,
265
  SQLCOM_INSERT,
1089.1.11 by Brian Aker
Cleanup on enum
266
  SQLCOM_INSERT_SELECT,
1240.3.2 by Brian Aker
Cleanup white space.
267
  SQLCOM_DELETE,
268
  SQLCOM_TRUNCATE,
269
  SQLCOM_DROP_TABLE,
1089.1.11 by Brian Aker
Cleanup on enum
270
  SQLCOM_DROP_INDEX,
271
  SQLCOM_SHOW_CREATE,
272
  SQLCOM_SHOW_CREATE_DB,
273
  SQLCOM_LOAD,
274
  SQLCOM_SET_OPTION,
275
  SQLCOM_UNLOCK_TABLES,
1240.3.2 by Brian Aker
Cleanup white space.
276
  SQLCOM_CHANGE_DB,
277
  SQLCOM_CREATE_DB,
278
  SQLCOM_DROP_DB,
1089.1.11 by Brian Aker
Cleanup on enum
279
  SQLCOM_ALTER_DB,
1240.3.2 by Brian Aker
Cleanup white space.
280
  SQLCOM_REPLACE,
1089.1.11 by Brian Aker
Cleanup on enum
281
  SQLCOM_REPLACE_SELECT,
282
  SQLCOM_CHECK,
1240.3.2 by Brian Aker
Cleanup white space.
283
  SQLCOM_FLUSH,
284
  SQLCOM_KILL,
1089.1.11 by Brian Aker
Cleanup on enum
285
  SQLCOM_ANALYZE,
1240.3.2 by Brian Aker
Cleanup white space.
286
  SQLCOM_ROLLBACK,
1089.1.11 by Brian Aker
Cleanup on enum
287
  SQLCOM_ROLLBACK_TO_SAVEPOINT,
1240.3.2 by Brian Aker
Cleanup white space.
288
  SQLCOM_COMMIT,
289
  SQLCOM_SAVEPOINT,
1089.1.11 by Brian Aker
Cleanup on enum
290
  SQLCOM_RELEASE_SAVEPOINT,
291
  SQLCOM_BEGIN,
292
  SQLCOM_RENAME_TABLE,
293
  SQLCOM_SHOW_WARNS,
294
  SQLCOM_EMPTY_QUERY,
295
  SQLCOM_SHOW_ERRORS,
296
  SQLCOM_CHECKSUM,
297
  /*
298
    When a command is added here, be sure it's also added in mysqld.cc
299
    in "struct show_var_st status_vars[]= {" ...
300
  */
301
  /* This should be the last !!! */
302
  SQLCOM_END
303
};
304
1240.3.2 by Brian Aker
Cleanup white space.
305
enum enum_duplicates
306
{
307
  DUP_ERROR,
308
  DUP_REPLACE,
309
  DUP_UPDATE
1089.1.11 by Brian Aker
Cleanup on enum
310
};
311
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
312
enum drizzled_error_code {
313
314
  EE_ERROR_FIRST=1,
315
  EE_CANTCREATEFILE,
316
  EE_READ,
317
  EE_WRITE,
318
  EE_BADCLOSE,
319
  EE_OUTOFMEMORY,
320
  EE_DELETE,
321
  EE_LINK,
322
  EE_EOFERR,
323
  EE_CANTLOCK,
324
  EE_CANTUNLOCK,
325
  EE_DIR,
326
  EE_STAT,
327
  EE_CANT_CHSIZE,
328
  EE_CANT_OPEN_STREAM,
329
  EE_LINK_WARNING,
330
  EE_OPEN_WARNING,
331
  EE_DISK_FULL,
332
  EE_CANT_MKDIR,
333
  EE_UNKNOWN_CHARSET,
334
  EE_OUT_OF_FILERESOURCES,
335
  EE_CANT_READLINK,
336
  EE_CANT_SYMLINK,
337
  EE_REALPATH,
338
  EE_SYNC,
339
  EE_UNKNOWN_COLLATION,
340
  EE_FILENOTFOUND,
341
  EE_FILE_NOT_CLOSED,
342
  EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
343
344
  ER_ERROR_FIRST= 1000,
345
  ER_UNUSED1000= ER_ERROR_FIRST,
346
  ER_UNUSED1001,
347
  ER_NO,
348
  ER_YES,
349
  ER_CANT_CREATE_FILE,
350
  ER_CANT_CREATE_TABLE,
351
  ER_CANT_CREATE_DB,
352
  ER_DB_CREATE_EXISTS,
353
  ER_DB_DROP_EXISTS,
1738.4.1 by Lee Bieber
first pass at removing unused error message
354
  ER_UNUSED1009,
355
  ER_UNUSED1010,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
356
  ER_CANT_DELETE_FILE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
357
  ER_UNUSED1012,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
358
  ER_CANT_GET_STAT,
1738.4.1 by Lee Bieber
first pass at removing unused error message
359
  ER_UNUSED1014,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
360
  ER_CANT_LOCK,
361
  ER_CANT_OPEN_FILE,
362
  ER_FILE_NOT_FOUND,
363
  ER_CANT_READ_DIR,
1738.4.1 by Lee Bieber
first pass at removing unused error message
364
  ER_UNUSED1019,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
365
  ER_CHECKREAD,
366
  ER_DISK_FULL,
367
  ER_DUP_KEY,
368
  ER_ERROR_ON_CLOSE,
369
  ER_ERROR_ON_READ,
370
  ER_ERROR_ON_RENAME,
371
  ER_ERROR_ON_WRITE,
372
  ER_FILE_USED,
373
  ER_FILSORT_ABORT,
1738.4.1 by Lee Bieber
first pass at removing unused error message
374
  ER_UNUSED1029,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
375
  ER_GET_ERRNO,
376
  ER_ILLEGAL_HA,
377
  ER_KEY_NOT_FOUND,
378
  ER_NOT_FORM_FILE,
379
  ER_NOT_KEYFILE,
380
  ER_OLD_KEYFILE,
381
  ER_OPEN_AS_READONLY,
382
  ER_OUTOFMEMORY,
383
  ER_OUT_OF_SORTMEMORY,
384
  ER_UNEXPECTED_EOF,
385
  ER_CON_COUNT_ERROR,
386
  ER_OUT_OF_RESOURCES,
387
  ER_BAD_HOST_ERROR,
388
  ER_HANDSHAKE_ERROR,
389
  ER_DBACCESS_DENIED_ERROR,
390
  ER_ACCESS_DENIED_ERROR,
391
  ER_NO_DB_ERROR,
392
  ER_UNKNOWN_COM_ERROR,
393
  ER_BAD_NULL_ERROR,
394
  ER_BAD_DB_ERROR,
395
  ER_TABLE_EXISTS_ERROR,
396
  ER_BAD_TABLE_ERROR,
397
  ER_NON_UNIQ_ERROR,
398
  ER_SERVER_SHUTDOWN,
399
  ER_BAD_FIELD_ERROR,
400
  ER_WRONG_FIELD_WITH_GROUP,
401
  ER_WRONG_GROUP_FIELD,
402
  ER_WRONG_SUM_SELECT,
403
  ER_WRONG_VALUE_COUNT,
404
  ER_TOO_LONG_IDENT,
405
  ER_DUP_FIELDNAME,
406
  ER_DUP_KEYNAME,
407
  ER_DUP_ENTRY,
408
  ER_WRONG_FIELD_SPEC,
409
  ER_PARSE_ERROR,
410
  ER_EMPTY_QUERY,
411
  ER_NONUNIQ_TABLE,
412
  ER_INVALID_DEFAULT,
413
  ER_MULTIPLE_PRI_KEY,
414
  ER_TOO_MANY_KEYS,
415
  ER_TOO_MANY_KEY_PARTS,
416
  ER_TOO_LONG_KEY,
417
  ER_KEY_COLUMN_DOES_NOT_EXITS,
418
  ER_BLOB_USED_AS_KEY,
419
  ER_TOO_BIG_FIELDLENGTH,
420
  ER_WRONG_AUTO_KEY,
1738.4.1 by Lee Bieber
first pass at removing unused error message
421
  ER_UNUSED1076,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
422
  ER_NORMAL_SHUTDOWN,
423
  ER_GOT_SIGNAL,
424
  ER_SHUTDOWN_COMPLETE,
425
  ER_FORCING_CLOSE,
426
  ER_IPSOCK_ERROR,
427
  ER_NO_SUCH_INDEX,
428
  ER_WRONG_FIELD_TERMINATORS,
429
  ER_BLOBS_AND_NO_TERMINATED,
430
  ER_TEXTFILE_NOT_READABLE,
431
  ER_FILE_EXISTS_ERROR,
432
  ER_LOAD_INFO,
1738.4.1 by Lee Bieber
first pass at removing unused error message
433
  ER_UNUSED1088,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
434
  ER_WRONG_SUB_KEY,
435
  ER_CANT_REMOVE_ALL_FIELDS,
436
  ER_CANT_DROP_FIELD_OR_KEY,
437
  ER_INSERT_INFO,
438
  ER_UPDATE_TABLE_USED,
439
  ER_NO_SUCH_THREAD,
440
  ER_KILL_DENIED_ERROR,
441
  ER_NO_TABLES_USED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
442
  ER_UNUSED1097,
443
  ER_UNUSED1098,
444
  ER_UNUSED1099,
445
  ER_UNUSED1100,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
446
  ER_BLOB_CANT_HAVE_DEFAULT,
447
  ER_WRONG_DB_NAME,
448
  ER_WRONG_TABLE_NAME,
449
  ER_TOO_BIG_SELECT,
450
  ER_UNKNOWN_ERROR,
451
  ER_UNKNOWN_PROCEDURE,
452
  ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
453
  ER_UNUSED1108,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
454
  ER_UNKNOWN_TABLE,
455
  ER_FIELD_SPECIFIED_TWICE,
456
  ER_INVALID_GROUP_FUNC_USE,
457
  ER_UNSUPPORTED_EXTENSION,
458
  ER_TABLE_MUST_HAVE_COLUMNS,
459
  ER_RECORD_FILE_FULL,
1738.4.1 by Lee Bieber
first pass at removing unused error message
460
  ER_UNUSED1115,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
461
  ER_TOO_MANY_TABLES,
462
  ER_TOO_MANY_FIELDS,
463
  ER_TOO_BIG_ROWSIZE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
464
  ER_UNUSED1119,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
465
  ER_WRONG_OUTER_JOIN,
466
  ER_NULL_COLUMN_IN_INDEX,
1738.4.1 by Lee Bieber
first pass at removing unused error message
467
  ER_UNUSED1122,
468
  ER_UNUSED1123,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
469
  ER_PLUGIN_NO_PATHS,
470
  ER_PLUGIN_EXISTS,
471
  ER_CANT_OPEN_LIBRARY,
472
  ER_CANT_FIND_DL_ENTRY,
1738.4.1 by Lee Bieber
first pass at removing unused error message
473
  ER_UNUSED1128,
474
  ER_UNUSED1129,
475
  ER_UNUSED1130,
476
  ER_UNUSED1131,
477
  ER_UNUSED1132,
478
  ER_UNUSED1133,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
479
  ER_UPDATE_INFO,
480
  ER_CANT_CREATE_THREAD,
481
  ER_WRONG_VALUE_COUNT_ON_ROW,
482
  ER_CANT_REOPEN_TABLE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
483
  ER_UNUSED1138,
484
  ER_UNUSED1139,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
485
  ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
1738.4.1 by Lee Bieber
first pass at removing unused error message
486
  ER_UNUSED1141,
487
  ER_UNUSED1142,
488
  ER_UNUSED1143,
489
  ER_UNUSED1144,
490
  ER_UNUSED1145,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
491
  ER_NO_SUCH_TABLE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
492
  ER_UNUSED1147,
493
  ER_UNUSED1148,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
494
  ER_SYNTAX_ERROR,
1738.4.1 by Lee Bieber
first pass at removing unused error message
495
  ER_UNUSED1150,
496
  ER_UNUSED1151,
497
  ER_UNUSED1152,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
498
  ER_NET_PACKET_TOO_LARGE,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
499
  ER_UNUSED1154,
500
  ER_UNUSED1155,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
501
  ER_NET_PACKETS_OUT_OF_ORDER,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
502
  ER_UNUSED1157,
503
  ER_UNUSED1158,
504
  ER_UNUSED1159,
505
  ER_UNUSED1160,
506
  ER_UNUSED1161,
507
  ER_UNUSED1162,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
508
  ER_TABLE_CANT_HANDLE_BLOB,
509
  ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
1738.4.1 by Lee Bieber
first pass at removing unused error message
510
  ER_UNUSED1165,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
511
  ER_WRONG_COLUMN_NAME,
512
  ER_WRONG_KEY_COLUMN,
513
  ER_WRONG_MRG_TABLE,
514
  ER_DUP_UNIQUE,
515
  ER_BLOB_KEY_WITHOUT_LENGTH,
516
  ER_PRIMARY_CANT_HAVE_NULL,
517
  ER_TOO_MANY_ROWS,
518
  ER_REQUIRES_PRIMARY_KEY,
1738.4.1 by Lee Bieber
first pass at removing unused error message
519
  ER_UNUSED1174,
520
  ER_UNUSED1175,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
521
  ER_KEY_DOES_NOT_EXITS,
522
  ER_CHECK_NO_SUCH_TABLE,
523
  ER_CHECK_NOT_IMPLEMENTED,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
524
  ER_UNUSED1179,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
525
  ER_ERROR_DURING_COMMIT,
526
  ER_ERROR_DURING_ROLLBACK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
527
  ER_UNUSED1182,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
528
  ER_UNUSED1183,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
529
  ER_NEW_ABORTING_CONNECTION,
1738.4.1 by Lee Bieber
first pass at removing unused error message
530
  ER_UNUSED1185,
531
  ER_UNUSED1186,
532
  ER_UNUSED1187,
533
  ER_UNUSED1188,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
534
  ER_UNUSED1189,
535
  ER_UNUSED1190,
1738.4.1 by Lee Bieber
first pass at removing unused error message
536
  ER_UNUSED1191,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
537
  ER_LOCK_OR_ACTIVE_TRANSACTION,
538
  ER_UNKNOWN_SYSTEM_VARIABLE,
539
  ER_CRASHED_ON_USAGE,
540
  ER_CRASHED_ON_REPAIR,
541
  ER_WARNING_NOT_COMPLETE_ROLLBACK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
542
  ER_UNUSED1197,
543
  ER_UNUSED1198,
544
  ER_UNUSED1199,
545
  ER_UNUSED1200,
546
  ER_UNUSED1201,
547
  ER_UNUSED1202,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
548
  ER_UNUSED1203,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
549
  ER_SET_CONSTANTS_ONLY,
550
  ER_LOCK_WAIT_TIMEOUT,
551
  ER_LOCK_TABLE_FULL,
552
  ER_READ_ONLY_TRANSACTION,
553
  ER_DROP_DB_WITH_READ_LOCK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
554
  ER_UNUSED1209,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
555
  ER_WRONG_ARGUMENTS,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
556
  ER_UNUSED1211,
1738.4.1 by Lee Bieber
first pass at removing unused error message
557
  ER_UNUSED1212,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
558
  ER_LOCK_DEADLOCK,
559
  ER_TABLE_CANT_HANDLE_FT,
560
  ER_CANNOT_ADD_FOREIGN,
561
  ER_NO_REFERENCED_ROW,
562
  ER_ROW_IS_REFERENCED,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
563
  ER_UNUSED1218,
1738.4.1 by Lee Bieber
first pass at removing unused error message
564
  ER_UNUSED1219,
565
  ER_UNUSED1220,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
566
  ER_WRONG_USAGE,
567
  ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
568
  ER_CANT_UPDATE_WITH_READLOCK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
569
  ER_UNUSED1224,
570
  ER_UNUSED1225,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
571
  ER_UNUSED1226,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
572
  ER_UNUSED1227,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
573
  ER_LOCAL_VARIABLE,
574
  ER_GLOBAL_VARIABLE,
575
  ER_NO_DEFAULT,
576
  ER_WRONG_VALUE_FOR_VAR,
577
  ER_WRONG_TYPE_FOR_VAR,
578
  ER_VAR_CANT_BE_READ,
579
  ER_CANT_USE_OPTION_HERE,
580
  ER_NOT_SUPPORTED_YET,
1738.4.1 by Lee Bieber
first pass at removing unused error message
581
  ER_UNUSED1236,
582
  ER_UNUSED1237,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
583
  ER_INCORRECT_GLOBAL_LOCAL_VAR,
584
  ER_WRONG_FK_DEF,
585
  ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
586
  ER_OPERAND_COLUMNS,
587
  ER_SUBQUERY_NO_1_ROW,
1738.4.1 by Lee Bieber
first pass at removing unused error message
588
  ER_UNUSED1243,
589
  ER_UNUSED1244,
590
  ER_UNUSED1245,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
591
  ER_AUTO_CONVERT,
592
  ER_ILLEGAL_REFERENCE,
593
  ER_DERIVED_MUST_HAVE_ALIAS,
594
  ER_SELECT_REDUCED,
595
  ER_TABLENAME_NOT_ALLOWED_HERE,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
596
  ER_UNUSED1251,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
597
  ER_SPATIAL_CANT_HAVE_NULL,
598
  ER_COLLATION_CHARSET_MISMATCH,
1738.4.1 by Lee Bieber
first pass at removing unused error message
599
  ER_UNUSED1254,
600
  ER_UNUSED1255,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
601
  ER_TOO_BIG_FOR_UNCOMPRESS,
602
  ER_ZLIB_Z_MEM_ERROR,
603
  ER_ZLIB_Z_BUF_ERROR,
604
  ER_ZLIB_Z_DATA_ERROR,
605
  ER_CUT_VALUE_GROUP_CONCAT,
606
  ER_WARN_TOO_FEW_RECORDS,
607
  ER_WARN_TOO_MANY_RECORDS,
608
  ER_WARN_NULL_TO_NOTNULL,
609
  ER_WARN_DATA_OUT_OF_RANGE,
610
  ER_WARN_DATA_TRUNCATED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
611
  ER_UNUSED1266,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
612
  ER_CANT_AGGREGATE_2COLLATIONS,
1738.4.1 by Lee Bieber
first pass at removing unused error message
613
  ER_UNUSED1268,
614
  ER_UNUSED1269,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
615
  ER_CANT_AGGREGATE_3COLLATIONS,
616
  ER_CANT_AGGREGATE_NCOLLATIONS,
617
  ER_VARIABLE_IS_NOT_STRUCT,
618
  ER_UNKNOWN_COLLATION,
1738.4.1 by Lee Bieber
first pass at removing unused error message
619
  ER_UNUSED1274,
620
  ER_UNUSED1275,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
621
  ER_WARN_FIELD_RESOLVED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
622
  ER_UNUSED1277,
623
  ER_UNUSED1278,
624
  ER_UNUSED1279,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
625
  ER_WRONG_NAME_FOR_INDEX,
626
  ER_WRONG_NAME_FOR_CATALOG,
1738.4.1 by Lee Bieber
first pass at removing unused error message
627
  ER_UNUSED1282,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
628
  ER_BAD_FT_COLUMN,
1738.4.1 by Lee Bieber
first pass at removing unused error message
629
  ER_UNUSED1284,
630
  ER_UNUSED1285,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
631
  ER_UNKNOWN_STORAGE_ENGINE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
632
  ER_UNUSED1287,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
633
  ER_NON_UPDATABLE_TABLE,
634
  ER_FEATURE_DISABLED,
635
  ER_OPTION_PREVENTS_STATEMENT,
636
  ER_DUPLICATED_VALUE_IN_TYPE,
637
  ER_TRUNCATED_WRONG_VALUE,
638
  ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
639
  ER_INVALID_ON_UPDATE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
640
  ER_UNUSED1295,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
641
  ER_GET_ERRMSG,
642
  ER_GET_TEMPORARY_ERRMSG,
643
  ER_UNKNOWN_TIME_ZONE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
644
  ER_UNUSED1299,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
645
  ER_INVALID_CHARACTER_STRING,
646
  ER_WARN_ALLOWED_PACKET_OVERFLOWED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
647
  ER_UNUSED1302,
648
  ER_UNUSED1303,
649
  ER_UNUSED1304,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
650
  ER_SP_DOES_NOT_EXIST,
1738.4.1 by Lee Bieber
first pass at removing unused error message
651
  ER_UNUSED1306,
652
  ER_UNUSED1307,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
653
  ER_UNUSED1308,
654
  ER_UNUSED1309,
655
  ER_UNUSED1310,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
656
  ER_UNUSED1311,
657
  ER_UNUSED1312,
658
  ER_UNUSED1313,
659
  ER_UNUSED1314,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
660
  ER_UNUSED1315,
661
  ER_UNUSED1316,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
662
  ER_QUERY_INTERRUPTED,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
663
  ER_UNUSED1318,
664
  ER_UNUSED1319,
665
  ER_UNUSED1320,
666
  ER_UNUSED1321,
667
  ER_UNUSED1322,
668
  ER_UNUSED1323,
669
  ER_UNUSED1324,
670
  ER_UNUSED1325,
671
  ER_UNUSED1326,
1738.4.1 by Lee Bieber
first pass at removing unused error message
672
  ER_UNUSED1327,
673
  ER_UNUSED1328,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
674
  ER_SP_FETCH_NO_DATA,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
675
  ER_UNUSED1330,
676
  ER_UNUSED1331,
677
  ER_UNUSED1332,
678
  ER_UNUSED1333,
1738.4.1 by Lee Bieber
first pass at removing unused error message
679
  ER_UNUSED1334,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
680
  ER_UNUSED1335,
681
  ER_UNUSED1336,
682
  ER_UNUSED1337,
683
  ER_UNUSED1338,
1738.4.1 by Lee Bieber
first pass at removing unused error message
684
  ER_UNUSED1339,
685
  ER_UNUSED1340,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
686
  ER_UNUSED1341,
687
  ER_UNUSED1342,
688
  ER_UNUSED1343,
1738.4.1 by Lee Bieber
first pass at removing unused error message
689
  ER_UNUSED1344,
690
  ER_UNUSED1345,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
691
  ER_UNUSED1346,
1738.4.1 by Lee Bieber
first pass at removing unused error message
692
  ER_UNUSED1347,
693
  ER_UNUSED1348,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
694
  ER_UNUSED1349,
695
  ER_UNUSED1350,
696
  ER_UNUSED1351,
697
  ER_UNUSED1352,
698
  ER_UNUSED1353,
699
  ER_UNUSED1354,
700
  ER_UNUSED1355,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
701
  ER_VIEW_INVALID,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
702
  ER_UNUSED1357,
703
  ER_UNUSED1358,
704
  ER_UNUSED1359,
705
  ER_UNUSED1360,
706
  ER_UNUSED1361,
707
  ER_UNUSED1362,
708
  ER_UNUSED1363,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
709
  ER_NO_DEFAULT_FOR_FIELD,
710
  ER_DIVISION_BY_ZERO,
711
  ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
712
  ER_ILLEGAL_VALUE_FOR_TYPE,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
713
  ER_UNUSED1368,
714
  ER_UNUSED1369,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
715
  ER_UNUSED1370,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
716
  ER_UNUSED1371,
717
  ER_UNUSED1372,
718
  ER_UNUSED1373,
719
  ER_UNUSED1374,
720
  ER_UNUSED1375,
1738.4.1 by Lee Bieber
first pass at removing unused error message
721
  ER_UNUSED1376,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
722
  ER_UNUSED1377,
723
  ER_UNUSED1378,
724
  ER_UNUSED1379,
725
  ER_UNUSED1380,
726
  ER_UNUSED1381,
727
  ER_UNUSED1382,
728
  ER_UNUSED1383,
729
  ER_UNUSED1384,
730
  ER_UNUSED1385,
731
  ER_UNUSED1386,
732
  ER_UNUSED1387,
733
  ER_UNUSED1388,
734
  ER_UNUSED1389,
735
  ER_UNUSED1390,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
736
  ER_KEY_PART_0,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
737
  ER_UNUSED1392,
738
  ER_UNUSED1393,
739
  ER_UNUSED1394,
740
  ER_UNUSED1395,
741
  ER_UNUSED1396,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
742
  ER_UNUSED1397,
743
  ER_UNUSED1398,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
744
  ER_XAER_RMFAIL,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
745
  ER_UNUSED1400,
746
  ER_UNUSED1401,
747
  ER_UNUSED1402,
748
  ER_UNUSED1403,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
749
  ER_UNUSED1404,
750
  ER_UNUSED1405,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
751
  ER_DATA_TOO_LONG,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
752
  ER_UNUSED1407,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
753
  ER_STARTUP,
754
  ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
755
  ER_UNUSED1410,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
756
  ER_WRONG_VALUE_FOR_TYPE,
757
  ER_TABLE_DEF_CHANGED,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
758
  ER_UNUSED1413,
759
  ER_UNUSED1414,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
760
  ER_SP_NO_RETSET,
761
  ER_CANT_CREATE_GEOMETRY_OBJECT,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
762
  ER_UNUSED1417,
763
  ER_UNUSED1418,
764
  ER_UNUSED1419,
765
  ER_UNUSED1420,
766
  ER_UNUSED1421,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
767
  ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
768
  ER_UNUSED1423,
769
  ER_UNUSED1424,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
770
  ER_TOO_BIG_SCALE,
771
  ER_TOO_BIG_PRECISION,
772
  ER_M_BIGGER_THAN_D,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
773
  ER_UNUSED1428,
774
  ER_UNUSED1429,
775
  ER_UNUSED1430,
776
  ER_UNUSED1431,
777
  ER_UNUSED1432,
778
  ER_UNUSED1433,
779
  ER_UNUSED1434,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
780
  ER_TRG_IN_WRONG_SCHEMA,
781
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
782
  ER_UNUSED1437,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
783
  ER_UNUSED1438,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
784
  ER_TOO_BIG_DISPLAYWIDTH,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
785
  ER_UNUSED1440,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
786
  ER_DATETIME_FUNCTION_OVERFLOW,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
787
  ER_UNUSED1442,
788
  ER_UNUSED1443,
789
  ER_UNUSED1444,
790
  ER_UNUSED1445,
791
  ER_UNUSED1446,
792
  ER_UNUSED1447,
793
  ER_UNUSED1448,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
794
  ER_UNUSED1449,
795
  ER_UNUSED1450,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
796
  ER_ROW_IS_REFERENCED_2,
797
  ER_NO_REFERENCED_ROW_2,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
798
  ER_UNUSED1453,
799
  ER_UNUSED1454,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
800
  ER_UNUSED1455,
801
  ER_UNUSED1456,
802
  ER_UNUSED1457,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
803
  ER_UNUSED1458,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
804
  ER_TABLE_NEEDS_UPGRADE,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
805
  ER_UNUSED1460,
806
  ER_UNUSED1461,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
807
  ER_UNUSED1462,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
808
  ER_NON_GROUPING_FIELD_USED,
809
  ER_TABLE_CANT_HANDLE_SPKEYS,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
810
  ER_UNUSED1465,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
811
  ER_REMOVED_SPACES,
812
  ER_AUTOINC_READ_FAILED,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
813
  ER_UNUSED1468,
814
  ER_UNUSED1469,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
815
  ER_WRONG_STRING_LENGTH,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
816
  ER_UNUSED1471,
817
  ER_UNUSED1472,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
818
  ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
819
  ER_NAME_BECOMES_EMPTY,
820
  ER_AMBIGUOUS_FIELD_TERM,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
821
  ER_UNUSED1476,
822
  ER_UNUSED1477,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
823
  ER_ILLEGAL_HA_CREATE_OPTION,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
824
  ER_UNUSED1479,
825
  ER_UNUSED1480,
826
  ER_UNUSED1481,
827
  ER_UNUSED1482,
828
  ER_UNUSED1483,
829
  ER_UNUSED1484,
830
  ER_UNUSED1485,
831
  ER_UNUSED1486,
832
  ER_UNUSED1487,
833
  ER_UNUSED1488,
834
  ER_UNUSED1489,
835
  ER_UNUSED1490,
836
  ER_UNUSED1491,
837
  ER_UNUSED1492,
838
  ER_UNUSED1493,
839
  ER_UNUSED1494,
840
  ER_UNUSED1495,
841
  ER_UNUSED1496,
842
  ER_UNUSED1497,
843
  ER_UNUSED1498,
844
  ER_UNUSED1499,
845
  ER_UNUSED1500,
846
  ER_UNUSED1501,
847
  ER_UNUSED1502,
848
  ER_UNUSED1503,
849
  ER_UNUSED1504,
850
  ER_UNUSED1505,
851
  ER_UNUSED1506,
852
  ER_UNUSED1507,
853
  ER_UNUSED1508,
854
  ER_UNUSED1509,
855
  ER_UNUSED1510,
856
  ER_UNUSED1511,
857
  ER_UNUSED1512,
858
  ER_UNUSED1513,
859
  ER_UNUSED1514,
860
  ER_UNUSED1515,
861
  ER_UNUSED1516,
862
  ER_UNUSED1517,
863
  ER_UNUSED1518,
864
  ER_UNUSED1519,
865
  ER_UNUSED1520,
866
  ER_UNUSED1521,
867
  ER_UNUSED1522,
868
  ER_UNUSED1523,
1964.1.2 by Monty Taylor
Fixed error message thrown when we try to set a variable to an incorrect
869
  ER_INVALID_OPTION_VALUE,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
870
  ER_WRONG_VALUE,
871
  ER_NO_PARTITION_FOR_GIVEN_VALUE,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
872
  ER_UNUSED1527,
873
  ER_UNUSED1528,
874
  ER_UNUSED1529,
875
  ER_UNUSED1530,
876
  ER_UNUSED1531,
877
  ER_UNUSED1532,
878
  ER_UNUSED1533,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
879
  ER_BINLOG_ROW_LOGGING_FAILED,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
880
  ER_UNUSED1535,
881
  ER_UNUSED1536,
882
  ER_UNUSED1537,
883
  ER_UNUSED1538,
884
  ER_UNUSED1539,
885
  ER_UNUSED1540,
886
  ER_UNUSED1541,
887
  ER_UNUSED1542,
888
  ER_UNUSED1543,
889
  ER_UNUSED1544,
890
  ER_UNUSED1545,
891
  ER_UNUSED1546,
892
  ER_UNUSED1547,
893
  ER_UNUSED1548,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
894
  ER_UNUSED1549,
895
  ER_UNUSED1550,
896
  ER_UNUSED1551,
897
  ER_UNUSED1552,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
898
  ER_DROP_INDEX_FK,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
899
  ER_UNUSED1554,
900
  ER_UNUSED1555,
901
  ER_UNUSED1556,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
902
  ER_FOREIGN_DUPLICATE_KEY,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
903
  ER_UNUSED1558,
904
  ER_UNUSED1559,
905
  ER_UNUSED1560,
906
  ER_UNUSED1561,
907
  ER_UNUSED1562,
908
  ER_UNUSED1563,
909
  ER_UNUSED1564,
910
  ER_UNUSED1565,
911
  ER_UNUSED1566,
912
  ER_UNUSED1567,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
913
  ER_CANT_CHANGE_TX_ISOLATION,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
914
  ER_UNUSED1569,
915
  ER_UNUSED1570,
916
  ER_UNUSED1571,
917
  ER_UNUSED1572,
918
  ER_UNUSED1573,
919
  ER_UNUSED1574,
920
  ER_UNUSED1575,
921
  ER_UNUSED1576,
922
  ER_UNUSED1577,
923
  ER_UNUSED1578,
924
  ER_UNUSED1579,
925
  ER_UNUSED1580,
926
  ER_UNUSED1581,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
927
  ER_WRONG_PARAMCOUNT_TO_FUNCTION,
928
  ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
929
  ER_UNUSED1584,
930
  ER_UNUSED1585,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
931
  ER_DUP_ENTRY_WITH_KEY_NAME,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
932
  ER_UNUSED1587,
933
  ER_UNUSED1588,
934
  ER_UNUSED1589,
935
  ER_UNUSED1590,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
936
  ER_UNUSED1591,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
937
  ER_UNUSED1592,
938
  ER_UNUSED1593,
939
  ER_UNUSED1594,
940
  ER_UNUSED1595,
941
  ER_UNUSED1596,
942
  ER_UNUSED1597,
943
  ER_UNUSED1598,
944
  ER_UNUSED1599,
945
  ER_UNUSED1600,
946
  ER_UNUSED1601,
947
  ER_UNUSED1602,
948
  ER_UNUSED1603,
949
  ER_UNUSED1604,
950
  ER_UNUSED1605,
951
  ER_UNUSED1606,
952
  ER_UNUSED1607,
953
  ER_UNUSED1608,
954
  ER_UNUSED1609,
955
  ER_UNUSED1610,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
956
  ER_LOAD_DATA_INVALID_COLUMN,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
957
  ER_UNUSED1612,
958
  ER_UNUSED1613,
959
  ER_UNUSED1614,
960
  ER_UNUSED1615,
961
  ER_UNUSED1616,
962
  ER_UNUSED1617,
963
  ER_UNUSED1618,
964
  ER_UNUSED1619,
965
  ER_UNUSED1620,
966
  ER_UNUSED1621,
967
  ER_UNUSED1622,
968
  ER_UNUSED1623,
969
  ER_UNUSED1624,
970
  ER_UNUSED1625,
971
  ER_UNUSED1626,
972
  ER_UNUSED1627,
973
  ER_UNUSED1628,
974
  ER_UNUSED1629,
975
  ER_UNUSED1630,
976
  ER_UNUSED1631,
977
  ER_UNUSED1632,
978
  ER_UNUSED1633,
979
  ER_UNUSED1634,
980
  ER_UNUSED1635,
981
  ER_UNUSED1636,
982
  ER_UNUSED1637,
983
  ER_UNUSED1638,
984
  ER_UNUSED1639,
985
  ER_UNUSED1640,
986
  ER_UNUSED1641,
987
  ER_UNUSED1642,
988
  ER_UNUSED1643,
989
  ER_UNUSED1644,
990
  ER_UNUSED1645,
991
  ER_UNUSED1646,
992
  ER_UNUSED1647,
993
  ER_UNUSED1648,
994
  ER_UNUSED1649,
995
  ER_UNUSED1650,
996
  ER_UNUSED1651,
997
  ER_UNUSED1652,
998
  ER_UNUSED1653,
999
  ER_UNUSED1654,
1000
  ER_UNUSED1655,
1001
  ER_UNUSED1656,
1002
  ER_UNUSED1657,
1003
  ER_UNUSED1658,
1004
  ER_UNUSED1659,
1005
  ER_UNUSED1660,
1006
  ER_UNUSED1661,
1007
  ER_UNUSED1662,
1008
  ER_UNUSED1663,
1009
  ER_UNUSED1664,
1010
  ER_UNUSED1665,
1011
  ER_UNUSED1666,
1012
  ER_UNUSED1667,
1013
  ER_UNUSED1668,
1014
  ER_UNUSED1669,
1015
  ER_UNUSED1670,
1016
  ER_UNUSED1671,
1017
  ER_UNUSED1672,
1018
  ER_UNUSED1673,
1019
  ER_UNUSED1674,
1020
  ER_UNUSED1675,
1021
  ER_UNUSED1676,
1022
  ER_UNUSED1677,
1023
  ER_UNUSED1678,
1024
  ER_UNUSED1679,
1025
  ER_UNUSED1680,
1026
  ER_UNUSED1681,
1027
  ER_UNUSED1682,
1028
  ER_UNUSED1683,
1029
  ER_UNUSED1684,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1030
  ER_INVALID_UNIX_TIMESTAMP_VALUE,
1031
  ER_INVALID_DATETIME_VALUE,
1032
  ER_INVALID_NULL_ARGUMENT,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
1033
  ER_UNUSED1688,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1034
  ER_ARGUMENT_OUT_OF_RANGE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
1035
  ER_UNUSED1690,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1036
  ER_INVALID_ENUM_VALUE,
1037
  ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
1271.7.19 by Tim Penhey
Missed an enum.
1038
  ER_CORRUPT_TABLE_DEFINITION,
1271.7.21 by Monty Taylor
Merged trunk.
1039
  ER_SCHEMA_DOES_NOT_EXIST,
1040
  ER_ALTER_SCHEMA,
1041
  ER_DROP_SCHEMA,
1487.1.1 by Brian Aker
There is room for improvement around this. We should be using rows as well
1042
  ER_USE_SQL_BIG_RESULT,
1502.1.30 by Brian Aker
First pass on cleanup of Stewart's patch, plus re-engineer to make it work a
1043
  ER_UNKNOWN_ENGINE_OPTION,
1044
  ER_UNKNOWN_SCHEMA_OPTION,
1502.5.7 by Barry.Leslie at PrimeBase
Renamed the 'Event' plugin to 'EventObserver' plugin along with some internal class renames to make things clearer.
1045
  ER_EVENT_OBSERVER_PLUGIN,
1567.1.1 by Brian Aker
This fixes bug 586009, increases the size of the log files so that the UNION
1046
  ER_CORRUPT_SCHEMA_DEFINITION,
1796.4.7 by Andrew Hutchings
Add error message for global sort buffer constraint
1047
  ER_OUT_OF_GLOBAL_SORTMEMORY,
1796.4.9 by Andrew Hutchings
Add join cache global constraint
1048
  ER_OUT_OF_GLOBAL_JOINMEMORY,
1796.4.10 by Andrew Hutchings
Add global constraint for --read-rnd-buffer-size
1049
  ER_OUT_OF_GLOBAL_READRNDMEMORY,
1796.4.11 by Andrew Hutchings
Add global constraint on read buffer
1050
  ER_OUT_OF_GLOBAL_READMEMORY,
1933.1.3 by Brian Aker
First pass though barriers.
1051
  ER_USER_LOCKS_CANT_WAIT_ON_OWN_BARRIER,
1052
  ER_USER_LOCKS_UNKNOWN_BARRIER,
1053
  ER_USER_LOCKS_NOT_OWNER_OF_BARRIER,
1955.1.1 by Brian Aker
Finally added pieces so that you can do a drop lock and wait.
1054
  ER_USER_LOCKS_CANT_WAIT_ON_OWN_LOCK,
1055
  ER_USER_LOCKS_NOT_OWNER_OF_LOCK,
1955.1.2 by Brian Aker
Update such that we can now do a lock test with a wait.
1056
  ER_USER_LOCKS_INVALID_NAME_BARRIER,
1057
  ER_USER_LOCKS_INVALID_NAME_LOCK,
1963.2.1 by Brian Aker
Fixing up the kill function.
1058
  ER_KILL_DENY_SELF_ERROR,
1976.6.1 by Brian Aker
This is a fix for bug lp:686197
1059
  ER_INVALID_ALTER_TABLE_FOR_NOT_NULL,
1960.2.3 by Andrew Hutchings
Add basic client tool (a cut-down modified clone of drizzle.cc)
1060
  ER_ADMIN_ACCESS,
1996.2.1 by Brian Aker
uuid type code.
1061
  ER_INVALID_UUID_VALUE,
1062
  ER_INVALID_UUID_TIME,
1933.1.3 by Brian Aker
First pass though barriers.
1063
1996.2.1 by Brian Aker
uuid type code.
1064
  ER_ERROR_LAST= ER_INVALID_UUID_TIME
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1065
};
1066
1067
enum drizzle_exit_codes {
1068
  EXIT_UNSPECIFIED_ERROR = 1,
1069
  EXIT_UNKNOWN_OPTION,
1070
  EXIT_AMBIGUOUS_OPTION,
1071
  EXIT_NO_ARGUMENT_ALLOWED,
1072
  EXIT_ARGUMENT_REQUIRED,
1073
  EXIT_VAR_PREFIX_NOT_UNIQUE,
1074
  EXIT_UNKNOWN_VARIABLE,
1075
  EXIT_OUT_OF_MEMORY,
1076
  EXIT_UNKNOWN_SUFFIX,
1077
  EXIT_NO_PTR_TO_VARIABLE,
1078
  EXIT_CANNOT_CONNECT_TO_SERVICE,
1079
  EXIT_OPTION_DISABLED,
1080
  EXIT_ARGUMENT_INVALID
1081
};
1082
1083
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
1084
} /* namespace drizzled */
1085
1089.1.11 by Brian Aker
Cleanup on enum
1086
#endif /* DRIZZLED_ENUM_H */