~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
2015.3.3 by Brian Aker
Update disconnect code.
314
  EE_OK=0,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
315
  EE_ERROR_FIRST=1,
316
  EE_CANTCREATEFILE,
317
  EE_READ,
318
  EE_WRITE,
319
  EE_BADCLOSE,
320
  EE_OUTOFMEMORY,
321
  EE_DELETE,
322
  EE_LINK,
323
  EE_EOFERR,
324
  EE_CANTLOCK,
325
  EE_CANTUNLOCK,
326
  EE_DIR,
327
  EE_STAT,
328
  EE_CANT_CHSIZE,
329
  EE_CANT_OPEN_STREAM,
330
  EE_LINK_WARNING,
331
  EE_OPEN_WARNING,
332
  EE_DISK_FULL,
333
  EE_CANT_MKDIR,
334
  EE_UNKNOWN_CHARSET,
335
  EE_OUT_OF_FILERESOURCES,
336
  EE_CANT_READLINK,
337
  EE_CANT_SYMLINK,
338
  EE_REALPATH,
339
  EE_SYNC,
340
  EE_UNKNOWN_COLLATION,
341
  EE_FILENOTFOUND,
342
  EE_FILE_NOT_CLOSED,
343
  EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
344
345
  ER_ERROR_FIRST= 1000,
346
  ER_UNUSED1000= ER_ERROR_FIRST,
347
  ER_UNUSED1001,
348
  ER_NO,
349
  ER_YES,
350
  ER_CANT_CREATE_FILE,
351
  ER_CANT_CREATE_TABLE,
352
  ER_CANT_CREATE_DB,
353
  ER_DB_CREATE_EXISTS,
354
  ER_DB_DROP_EXISTS,
1738.4.1 by Lee Bieber
first pass at removing unused error message
355
  ER_UNUSED1009,
356
  ER_UNUSED1010,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
357
  ER_CANT_DELETE_FILE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
358
  ER_UNUSED1012,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
359
  ER_CANT_GET_STAT,
1738.4.1 by Lee Bieber
first pass at removing unused error message
360
  ER_UNUSED1014,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
361
  ER_CANT_LOCK,
362
  ER_CANT_OPEN_FILE,
363
  ER_FILE_NOT_FOUND,
364
  ER_CANT_READ_DIR,
1738.4.1 by Lee Bieber
first pass at removing unused error message
365
  ER_UNUSED1019,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
366
  ER_CHECKREAD,
367
  ER_DISK_FULL,
368
  ER_DUP_KEY,
369
  ER_ERROR_ON_CLOSE,
370
  ER_ERROR_ON_READ,
371
  ER_ERROR_ON_RENAME,
372
  ER_ERROR_ON_WRITE,
373
  ER_FILE_USED,
374
  ER_FILSORT_ABORT,
1738.4.1 by Lee Bieber
first pass at removing unused error message
375
  ER_UNUSED1029,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
376
  ER_GET_ERRNO,
377
  ER_ILLEGAL_HA,
378
  ER_KEY_NOT_FOUND,
379
  ER_NOT_FORM_FILE,
380
  ER_NOT_KEYFILE,
381
  ER_OLD_KEYFILE,
382
  ER_OPEN_AS_READONLY,
383
  ER_OUTOFMEMORY,
384
  ER_OUT_OF_SORTMEMORY,
385
  ER_UNEXPECTED_EOF,
386
  ER_CON_COUNT_ERROR,
387
  ER_OUT_OF_RESOURCES,
388
  ER_BAD_HOST_ERROR,
389
  ER_HANDSHAKE_ERROR,
390
  ER_DBACCESS_DENIED_ERROR,
391
  ER_ACCESS_DENIED_ERROR,
392
  ER_NO_DB_ERROR,
393
  ER_UNKNOWN_COM_ERROR,
394
  ER_BAD_NULL_ERROR,
395
  ER_BAD_DB_ERROR,
396
  ER_TABLE_EXISTS_ERROR,
397
  ER_BAD_TABLE_ERROR,
398
  ER_NON_UNIQ_ERROR,
399
  ER_SERVER_SHUTDOWN,
400
  ER_BAD_FIELD_ERROR,
401
  ER_WRONG_FIELD_WITH_GROUP,
402
  ER_WRONG_GROUP_FIELD,
403
  ER_WRONG_SUM_SELECT,
404
  ER_WRONG_VALUE_COUNT,
405
  ER_TOO_LONG_IDENT,
406
  ER_DUP_FIELDNAME,
407
  ER_DUP_KEYNAME,
408
  ER_DUP_ENTRY,
409
  ER_WRONG_FIELD_SPEC,
410
  ER_PARSE_ERROR,
411
  ER_EMPTY_QUERY,
412
  ER_NONUNIQ_TABLE,
413
  ER_INVALID_DEFAULT,
414
  ER_MULTIPLE_PRI_KEY,
415
  ER_TOO_MANY_KEYS,
416
  ER_TOO_MANY_KEY_PARTS,
417
  ER_TOO_LONG_KEY,
418
  ER_KEY_COLUMN_DOES_NOT_EXITS,
419
  ER_BLOB_USED_AS_KEY,
420
  ER_TOO_BIG_FIELDLENGTH,
421
  ER_WRONG_AUTO_KEY,
1738.4.1 by Lee Bieber
first pass at removing unused error message
422
  ER_UNUSED1076,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
423
  ER_NORMAL_SHUTDOWN,
424
  ER_GOT_SIGNAL,
425
  ER_SHUTDOWN_COMPLETE,
426
  ER_FORCING_CLOSE,
427
  ER_IPSOCK_ERROR,
428
  ER_NO_SUCH_INDEX,
429
  ER_WRONG_FIELD_TERMINATORS,
430
  ER_BLOBS_AND_NO_TERMINATED,
431
  ER_TEXTFILE_NOT_READABLE,
432
  ER_FILE_EXISTS_ERROR,
433
  ER_LOAD_INFO,
1738.4.1 by Lee Bieber
first pass at removing unused error message
434
  ER_UNUSED1088,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
435
  ER_WRONG_SUB_KEY,
436
  ER_CANT_REMOVE_ALL_FIELDS,
437
  ER_CANT_DROP_FIELD_OR_KEY,
438
  ER_INSERT_INFO,
439
  ER_UPDATE_TABLE_USED,
440
  ER_NO_SUCH_THREAD,
441
  ER_KILL_DENIED_ERROR,
442
  ER_NO_TABLES_USED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
443
  ER_UNUSED1097,
444
  ER_UNUSED1098,
445
  ER_UNUSED1099,
446
  ER_UNUSED1100,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
447
  ER_BLOB_CANT_HAVE_DEFAULT,
448
  ER_WRONG_DB_NAME,
449
  ER_WRONG_TABLE_NAME,
450
  ER_TOO_BIG_SELECT,
451
  ER_UNKNOWN_ERROR,
452
  ER_UNKNOWN_PROCEDURE,
453
  ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
454
  ER_UNUSED1108,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
455
  ER_UNKNOWN_TABLE,
456
  ER_FIELD_SPECIFIED_TWICE,
457
  ER_INVALID_GROUP_FUNC_USE,
458
  ER_UNSUPPORTED_EXTENSION,
459
  ER_TABLE_MUST_HAVE_COLUMNS,
460
  ER_RECORD_FILE_FULL,
1738.4.1 by Lee Bieber
first pass at removing unused error message
461
  ER_UNUSED1115,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
462
  ER_TOO_MANY_TABLES,
463
  ER_TOO_MANY_FIELDS,
464
  ER_TOO_BIG_ROWSIZE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
465
  ER_UNUSED1119,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
466
  ER_WRONG_OUTER_JOIN,
467
  ER_NULL_COLUMN_IN_INDEX,
1738.4.1 by Lee Bieber
first pass at removing unused error message
468
  ER_UNUSED1122,
469
  ER_UNUSED1123,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
470
  ER_PLUGIN_NO_PATHS,
471
  ER_PLUGIN_EXISTS,
472
  ER_CANT_OPEN_LIBRARY,
473
  ER_CANT_FIND_DL_ENTRY,
1738.4.1 by Lee Bieber
first pass at removing unused error message
474
  ER_UNUSED1128,
475
  ER_UNUSED1129,
476
  ER_UNUSED1130,
477
  ER_UNUSED1131,
478
  ER_UNUSED1132,
479
  ER_UNUSED1133,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
480
  ER_UPDATE_INFO,
481
  ER_CANT_CREATE_THREAD,
482
  ER_WRONG_VALUE_COUNT_ON_ROW,
483
  ER_CANT_REOPEN_TABLE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
484
  ER_UNUSED1138,
485
  ER_UNUSED1139,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
486
  ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
1738.4.1 by Lee Bieber
first pass at removing unused error message
487
  ER_UNUSED1141,
488
  ER_UNUSED1142,
489
  ER_UNUSED1143,
490
  ER_UNUSED1144,
491
  ER_UNUSED1145,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
492
  ER_NO_SUCH_TABLE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
493
  ER_UNUSED1147,
494
  ER_UNUSED1148,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
495
  ER_SYNTAX_ERROR,
1738.4.1 by Lee Bieber
first pass at removing unused error message
496
  ER_UNUSED1150,
497
  ER_UNUSED1151,
498
  ER_UNUSED1152,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
499
  ER_NET_PACKET_TOO_LARGE,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
500
  ER_UNUSED1154,
501
  ER_UNUSED1155,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
502
  ER_NET_PACKETS_OUT_OF_ORDER,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
503
  ER_UNUSED1157,
504
  ER_UNUSED1158,
505
  ER_UNUSED1159,
506
  ER_UNUSED1160,
507
  ER_UNUSED1161,
508
  ER_UNUSED1162,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
509
  ER_TABLE_CANT_HANDLE_BLOB,
510
  ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
1738.4.1 by Lee Bieber
first pass at removing unused error message
511
  ER_UNUSED1165,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
512
  ER_WRONG_COLUMN_NAME,
513
  ER_WRONG_KEY_COLUMN,
514
  ER_WRONG_MRG_TABLE,
515
  ER_DUP_UNIQUE,
516
  ER_BLOB_KEY_WITHOUT_LENGTH,
517
  ER_PRIMARY_CANT_HAVE_NULL,
518
  ER_TOO_MANY_ROWS,
519
  ER_REQUIRES_PRIMARY_KEY,
1738.4.1 by Lee Bieber
first pass at removing unused error message
520
  ER_UNUSED1174,
521
  ER_UNUSED1175,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
522
  ER_KEY_DOES_NOT_EXITS,
523
  ER_CHECK_NO_SUCH_TABLE,
524
  ER_CHECK_NOT_IMPLEMENTED,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
525
  ER_UNUSED1179,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
526
  ER_ERROR_DURING_COMMIT,
527
  ER_ERROR_DURING_ROLLBACK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
528
  ER_UNUSED1182,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
529
  ER_UNUSED1183,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
530
  ER_NEW_ABORTING_CONNECTION,
1738.4.1 by Lee Bieber
first pass at removing unused error message
531
  ER_UNUSED1185,
532
  ER_UNUSED1186,
533
  ER_UNUSED1187,
534
  ER_UNUSED1188,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
535
  ER_UNUSED1189,
536
  ER_UNUSED1190,
1738.4.1 by Lee Bieber
first pass at removing unused error message
537
  ER_UNUSED1191,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
538
  ER_LOCK_OR_ACTIVE_TRANSACTION,
539
  ER_UNKNOWN_SYSTEM_VARIABLE,
540
  ER_CRASHED_ON_USAGE,
541
  ER_CRASHED_ON_REPAIR,
542
  ER_WARNING_NOT_COMPLETE_ROLLBACK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
543
  ER_UNUSED1197,
544
  ER_UNUSED1198,
545
  ER_UNUSED1199,
546
  ER_UNUSED1200,
547
  ER_UNUSED1201,
548
  ER_UNUSED1202,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
549
  ER_UNUSED1203,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
550
  ER_SET_CONSTANTS_ONLY,
551
  ER_LOCK_WAIT_TIMEOUT,
552
  ER_LOCK_TABLE_FULL,
553
  ER_READ_ONLY_TRANSACTION,
554
  ER_DROP_DB_WITH_READ_LOCK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
555
  ER_UNUSED1209,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
556
  ER_WRONG_ARGUMENTS,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
557
  ER_UNUSED1211,
1738.4.1 by Lee Bieber
first pass at removing unused error message
558
  ER_UNUSED1212,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
559
  ER_LOCK_DEADLOCK,
560
  ER_TABLE_CANT_HANDLE_FT,
561
  ER_CANNOT_ADD_FOREIGN,
562
  ER_NO_REFERENCED_ROW,
563
  ER_ROW_IS_REFERENCED,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
564
  ER_UNUSED1218,
1738.4.1 by Lee Bieber
first pass at removing unused error message
565
  ER_UNUSED1219,
566
  ER_UNUSED1220,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
567
  ER_WRONG_USAGE,
568
  ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
569
  ER_CANT_UPDATE_WITH_READLOCK,
1738.4.1 by Lee Bieber
first pass at removing unused error message
570
  ER_UNUSED1224,
571
  ER_UNUSED1225,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
572
  ER_UNUSED1226,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
573
  ER_UNUSED1227,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
574
  ER_LOCAL_VARIABLE,
575
  ER_GLOBAL_VARIABLE,
576
  ER_NO_DEFAULT,
577
  ER_WRONG_VALUE_FOR_VAR,
578
  ER_WRONG_TYPE_FOR_VAR,
579
  ER_VAR_CANT_BE_READ,
580
  ER_CANT_USE_OPTION_HERE,
581
  ER_NOT_SUPPORTED_YET,
1738.4.1 by Lee Bieber
first pass at removing unused error message
582
  ER_UNUSED1236,
583
  ER_UNUSED1237,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
584
  ER_INCORRECT_GLOBAL_LOCAL_VAR,
585
  ER_WRONG_FK_DEF,
586
  ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
587
  ER_OPERAND_COLUMNS,
588
  ER_SUBQUERY_NO_1_ROW,
1738.4.1 by Lee Bieber
first pass at removing unused error message
589
  ER_UNUSED1243,
590
  ER_UNUSED1244,
591
  ER_UNUSED1245,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
592
  ER_AUTO_CONVERT,
593
  ER_ILLEGAL_REFERENCE,
594
  ER_DERIVED_MUST_HAVE_ALIAS,
595
  ER_SELECT_REDUCED,
596
  ER_TABLENAME_NOT_ALLOWED_HERE,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
597
  ER_UNUSED1251,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
598
  ER_SPATIAL_CANT_HAVE_NULL,
599
  ER_COLLATION_CHARSET_MISMATCH,
1738.4.1 by Lee Bieber
first pass at removing unused error message
600
  ER_UNUSED1254,
601
  ER_UNUSED1255,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
602
  ER_TOO_BIG_FOR_UNCOMPRESS,
603
  ER_ZLIB_Z_MEM_ERROR,
604
  ER_ZLIB_Z_BUF_ERROR,
605
  ER_ZLIB_Z_DATA_ERROR,
606
  ER_CUT_VALUE_GROUP_CONCAT,
607
  ER_WARN_TOO_FEW_RECORDS,
608
  ER_WARN_TOO_MANY_RECORDS,
609
  ER_WARN_NULL_TO_NOTNULL,
610
  ER_WARN_DATA_OUT_OF_RANGE,
611
  ER_WARN_DATA_TRUNCATED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
612
  ER_UNUSED1266,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
613
  ER_CANT_AGGREGATE_2COLLATIONS,
1738.4.1 by Lee Bieber
first pass at removing unused error message
614
  ER_UNUSED1268,
615
  ER_UNUSED1269,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
616
  ER_CANT_AGGREGATE_3COLLATIONS,
617
  ER_CANT_AGGREGATE_NCOLLATIONS,
618
  ER_VARIABLE_IS_NOT_STRUCT,
619
  ER_UNKNOWN_COLLATION,
1738.4.1 by Lee Bieber
first pass at removing unused error message
620
  ER_UNUSED1274,
621
  ER_UNUSED1275,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
622
  ER_WARN_FIELD_RESOLVED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
623
  ER_UNUSED1277,
624
  ER_UNUSED1278,
625
  ER_UNUSED1279,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
626
  ER_WRONG_NAME_FOR_INDEX,
627
  ER_WRONG_NAME_FOR_CATALOG,
1738.4.1 by Lee Bieber
first pass at removing unused error message
628
  ER_UNUSED1282,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
629
  ER_BAD_FT_COLUMN,
1738.4.1 by Lee Bieber
first pass at removing unused error message
630
  ER_UNUSED1284,
631
  ER_UNUSED1285,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
632
  ER_UNKNOWN_STORAGE_ENGINE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
633
  ER_UNUSED1287,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
634
  ER_NON_UPDATABLE_TABLE,
635
  ER_FEATURE_DISABLED,
636
  ER_OPTION_PREVENTS_STATEMENT,
637
  ER_DUPLICATED_VALUE_IN_TYPE,
638
  ER_TRUNCATED_WRONG_VALUE,
639
  ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
640
  ER_INVALID_ON_UPDATE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
641
  ER_UNUSED1295,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
642
  ER_GET_ERRMSG,
643
  ER_GET_TEMPORARY_ERRMSG,
644
  ER_UNKNOWN_TIME_ZONE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
645
  ER_UNUSED1299,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
646
  ER_INVALID_CHARACTER_STRING,
647
  ER_WARN_ALLOWED_PACKET_OVERFLOWED,
1738.4.1 by Lee Bieber
first pass at removing unused error message
648
  ER_UNUSED1302,
649
  ER_UNUSED1303,
650
  ER_UNUSED1304,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
651
  ER_SP_DOES_NOT_EXIST,
1738.4.1 by Lee Bieber
first pass at removing unused error message
652
  ER_UNUSED1306,
653
  ER_UNUSED1307,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
654
  ER_UNUSED1308,
655
  ER_UNUSED1309,
656
  ER_UNUSED1310,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
657
  ER_UNUSED1311,
658
  ER_UNUSED1312,
659
  ER_UNUSED1313,
660
  ER_UNUSED1314,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
661
  ER_UNUSED1315,
662
  ER_UNUSED1316,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
663
  ER_QUERY_INTERRUPTED,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
664
  ER_UNUSED1318,
665
  ER_UNUSED1319,
666
  ER_UNUSED1320,
667
  ER_UNUSED1321,
668
  ER_UNUSED1322,
669
  ER_UNUSED1323,
670
  ER_UNUSED1324,
671
  ER_UNUSED1325,
672
  ER_UNUSED1326,
1738.4.1 by Lee Bieber
first pass at removing unused error message
673
  ER_UNUSED1327,
674
  ER_UNUSED1328,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
675
  ER_SP_FETCH_NO_DATA,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
676
  ER_UNUSED1330,
677
  ER_UNUSED1331,
678
  ER_UNUSED1332,
679
  ER_UNUSED1333,
1738.4.1 by Lee Bieber
first pass at removing unused error message
680
  ER_UNUSED1334,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
681
  ER_UNUSED1335,
682
  ER_UNUSED1336,
683
  ER_UNUSED1337,
684
  ER_UNUSED1338,
1738.4.1 by Lee Bieber
first pass at removing unused error message
685
  ER_UNUSED1339,
686
  ER_UNUSED1340,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
687
  ER_UNUSED1341,
688
  ER_UNUSED1342,
689
  ER_UNUSED1343,
1738.4.1 by Lee Bieber
first pass at removing unused error message
690
  ER_UNUSED1344,
691
  ER_UNUSED1345,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
692
  ER_UNUSED1346,
1738.4.1 by Lee Bieber
first pass at removing unused error message
693
  ER_UNUSED1347,
694
  ER_UNUSED1348,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
695
  ER_UNUSED1349,
696
  ER_UNUSED1350,
697
  ER_UNUSED1351,
698
  ER_UNUSED1352,
699
  ER_UNUSED1353,
700
  ER_UNUSED1354,
701
  ER_UNUSED1355,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
702
  ER_VIEW_INVALID,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
703
  ER_UNUSED1357,
704
  ER_UNUSED1358,
705
  ER_UNUSED1359,
706
  ER_UNUSED1360,
707
  ER_UNUSED1361,
708
  ER_UNUSED1362,
709
  ER_UNUSED1363,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
710
  ER_NO_DEFAULT_FOR_FIELD,
711
  ER_DIVISION_BY_ZERO,
712
  ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
713
  ER_ILLEGAL_VALUE_FOR_TYPE,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
714
  ER_UNUSED1368,
715
  ER_UNUSED1369,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
716
  ER_UNUSED1370,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
717
  ER_UNUSED1371,
718
  ER_UNUSED1372,
719
  ER_UNUSED1373,
720
  ER_UNUSED1374,
721
  ER_UNUSED1375,
1738.4.1 by Lee Bieber
first pass at removing unused error message
722
  ER_UNUSED1376,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
723
  ER_UNUSED1377,
724
  ER_UNUSED1378,
725
  ER_UNUSED1379,
726
  ER_UNUSED1380,
727
  ER_UNUSED1381,
728
  ER_UNUSED1382,
729
  ER_UNUSED1383,
730
  ER_UNUSED1384,
731
  ER_UNUSED1385,
732
  ER_UNUSED1386,
733
  ER_UNUSED1387,
734
  ER_UNUSED1388,
735
  ER_UNUSED1389,
736
  ER_UNUSED1390,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
737
  ER_KEY_PART_0,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
738
  ER_UNUSED1392,
739
  ER_UNUSED1393,
740
  ER_UNUSED1394,
741
  ER_UNUSED1395,
742
  ER_UNUSED1396,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
743
  ER_UNUSED1397,
744
  ER_UNUSED1398,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
745
  ER_XAER_RMFAIL,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
746
  ER_UNUSED1400,
747
  ER_UNUSED1401,
748
  ER_UNUSED1402,
749
  ER_UNUSED1403,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
750
  ER_UNUSED1404,
751
  ER_UNUSED1405,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
752
  ER_DATA_TOO_LONG,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
753
  ER_UNUSED1407,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
754
  ER_STARTUP,
755
  ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
756
  ER_UNUSED1410,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
757
  ER_WRONG_VALUE_FOR_TYPE,
758
  ER_TABLE_DEF_CHANGED,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
759
  ER_UNUSED1413,
760
  ER_UNUSED1414,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
761
  ER_SP_NO_RETSET,
762
  ER_CANT_CREATE_GEOMETRY_OBJECT,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
763
  ER_UNUSED1417,
764
  ER_UNUSED1418,
765
  ER_UNUSED1419,
766
  ER_UNUSED1420,
767
  ER_UNUSED1421,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
768
  ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
769
  ER_UNUSED1423,
770
  ER_UNUSED1424,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
771
  ER_TOO_BIG_SCALE,
772
  ER_TOO_BIG_PRECISION,
773
  ER_M_BIGGER_THAN_D,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
774
  ER_UNUSED1428,
775
  ER_UNUSED1429,
776
  ER_UNUSED1430,
777
  ER_UNUSED1431,
778
  ER_UNUSED1432,
779
  ER_UNUSED1433,
780
  ER_UNUSED1434,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
781
  ER_TRG_IN_WRONG_SCHEMA,
782
  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
783
  ER_UNUSED1437,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
784
  ER_UNUSED1438,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
785
  ER_TOO_BIG_DISPLAYWIDTH,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
786
  ER_UNUSED1440,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
787
  ER_DATETIME_FUNCTION_OVERFLOW,
1738.4.3 by Lee Bieber
another pass at removing unused error messages
788
  ER_UNUSED1442,
789
  ER_UNUSED1443,
790
  ER_UNUSED1444,
791
  ER_UNUSED1445,
792
  ER_UNUSED1446,
793
  ER_UNUSED1447,
794
  ER_UNUSED1448,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
795
  ER_UNUSED1449,
796
  ER_UNUSED1450,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
797
  ER_ROW_IS_REFERENCED_2,
798
  ER_NO_REFERENCED_ROW_2,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
799
  ER_UNUSED1453,
800
  ER_UNUSED1454,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
801
  ER_UNUSED1455,
802
  ER_UNUSED1456,
803
  ER_UNUSED1457,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
804
  ER_UNUSED1458,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
805
  ER_TABLE_NEEDS_UPGRADE,
1750.2.1 by Lee Bieber
remove unused error messages - 2nd pass
806
  ER_UNUSED1460,
807
  ER_UNUSED1461,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
808
  ER_UNUSED1462,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
809
  ER_NON_GROUPING_FIELD_USED,
810
  ER_TABLE_CANT_HANDLE_SPKEYS,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
811
  ER_UNUSED1465,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
812
  ER_REMOVED_SPACES,
813
  ER_AUTOINC_READ_FAILED,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
814
  ER_UNUSED1468,
815
  ER_UNUSED1469,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
816
  ER_WRONG_STRING_LENGTH,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
817
  ER_UNUSED1471,
818
  ER_UNUSED1472,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
819
  ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
820
  ER_NAME_BECOMES_EMPTY,
821
  ER_AMBIGUOUS_FIELD_TERM,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
822
  ER_UNUSED1476,
823
  ER_UNUSED1477,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
824
  ER_ILLEGAL_HA_CREATE_OPTION,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
825
  ER_UNUSED1479,
826
  ER_UNUSED1480,
827
  ER_UNUSED1481,
828
  ER_UNUSED1482,
829
  ER_UNUSED1483,
830
  ER_UNUSED1484,
831
  ER_UNUSED1485,
832
  ER_UNUSED1486,
833
  ER_UNUSED1487,
834
  ER_UNUSED1488,
835
  ER_UNUSED1489,
836
  ER_UNUSED1490,
837
  ER_UNUSED1491,
838
  ER_UNUSED1492,
839
  ER_UNUSED1493,
840
  ER_UNUSED1494,
841
  ER_UNUSED1495,
842
  ER_UNUSED1496,
843
  ER_UNUSED1497,
844
  ER_UNUSED1498,
845
  ER_UNUSED1499,
846
  ER_UNUSED1500,
847
  ER_UNUSED1501,
848
  ER_UNUSED1502,
849
  ER_UNUSED1503,
850
  ER_UNUSED1504,
851
  ER_UNUSED1505,
852
  ER_UNUSED1506,
853
  ER_UNUSED1507,
854
  ER_UNUSED1508,
855
  ER_UNUSED1509,
856
  ER_UNUSED1510,
857
  ER_UNUSED1511,
858
  ER_UNUSED1512,
859
  ER_UNUSED1513,
860
  ER_UNUSED1514,
861
  ER_UNUSED1515,
862
  ER_UNUSED1516,
863
  ER_UNUSED1517,
864
  ER_UNUSED1518,
865
  ER_UNUSED1519,
866
  ER_UNUSED1520,
867
  ER_UNUSED1521,
868
  ER_UNUSED1522,
869
  ER_UNUSED1523,
1964.1.2 by Monty Taylor
Fixed error message thrown when we try to set a variable to an incorrect
870
  ER_INVALID_OPTION_VALUE,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
871
  ER_WRONG_VALUE,
872
  ER_NO_PARTITION_FOR_GIVEN_VALUE,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
873
  ER_UNUSED1527,
874
  ER_UNUSED1528,
875
  ER_UNUSED1529,
876
  ER_UNUSED1530,
877
  ER_UNUSED1531,
878
  ER_UNUSED1532,
879
  ER_UNUSED1533,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
880
  ER_BINLOG_ROW_LOGGING_FAILED,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
881
  ER_UNUSED1535,
882
  ER_UNUSED1536,
883
  ER_UNUSED1537,
884
  ER_UNUSED1538,
885
  ER_UNUSED1539,
886
  ER_UNUSED1540,
887
  ER_UNUSED1541,
888
  ER_UNUSED1542,
889
  ER_UNUSED1543,
890
  ER_UNUSED1544,
891
  ER_UNUSED1545,
892
  ER_UNUSED1546,
893
  ER_UNUSED1547,
894
  ER_UNUSED1548,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
895
  ER_UNUSED1549,
896
  ER_UNUSED1550,
897
  ER_UNUSED1551,
898
  ER_UNUSED1552,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
899
  ER_DROP_INDEX_FK,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
900
  ER_UNUSED1554,
901
  ER_UNUSED1555,
902
  ER_UNUSED1556,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
903
  ER_FOREIGN_DUPLICATE_KEY,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
904
  ER_UNUSED1558,
905
  ER_UNUSED1559,
906
  ER_UNUSED1560,
907
  ER_UNUSED1561,
908
  ER_UNUSED1562,
909
  ER_UNUSED1563,
910
  ER_UNUSED1564,
911
  ER_UNUSED1565,
912
  ER_UNUSED1566,
913
  ER_UNUSED1567,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
914
  ER_CANT_CHANGE_TX_ISOLATION,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
915
  ER_UNUSED1569,
916
  ER_UNUSED1570,
917
  ER_UNUSED1571,
918
  ER_UNUSED1572,
919
  ER_UNUSED1573,
920
  ER_UNUSED1574,
921
  ER_UNUSED1575,
922
  ER_UNUSED1576,
923
  ER_UNUSED1577,
924
  ER_UNUSED1578,
925
  ER_UNUSED1579,
926
  ER_UNUSED1580,
927
  ER_UNUSED1581,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
928
  ER_WRONG_PARAMCOUNT_TO_FUNCTION,
929
  ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
930
  ER_UNUSED1584,
931
  ER_UNUSED1585,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
932
  ER_DUP_ENTRY_WITH_KEY_NAME,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
933
  ER_UNUSED1587,
934
  ER_UNUSED1588,
935
  ER_UNUSED1589,
936
  ER_UNUSED1590,
1738.4.4 by Lee Bieber
next pass at removing unused error messages
937
  ER_UNUSED1591,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
938
  ER_UNUSED1592,
939
  ER_UNUSED1593,
940
  ER_UNUSED1594,
941
  ER_UNUSED1595,
942
  ER_UNUSED1596,
943
  ER_UNUSED1597,
944
  ER_UNUSED1598,
945
  ER_UNUSED1599,
946
  ER_UNUSED1600,
947
  ER_UNUSED1601,
948
  ER_UNUSED1602,
949
  ER_UNUSED1603,
950
  ER_UNUSED1604,
951
  ER_UNUSED1605,
952
  ER_UNUSED1606,
953
  ER_UNUSED1607,
954
  ER_UNUSED1608,
955
  ER_UNUSED1609,
956
  ER_UNUSED1610,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
957
  ER_LOAD_DATA_INVALID_COLUMN,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
958
  ER_UNUSED1612,
959
  ER_UNUSED1613,
960
  ER_UNUSED1614,
961
  ER_UNUSED1615,
962
  ER_UNUSED1616,
963
  ER_UNUSED1617,
964
  ER_UNUSED1618,
965
  ER_UNUSED1619,
966
  ER_UNUSED1620,
967
  ER_UNUSED1621,
968
  ER_UNUSED1622,
969
  ER_UNUSED1623,
970
  ER_UNUSED1624,
971
  ER_UNUSED1625,
972
  ER_UNUSED1626,
973
  ER_UNUSED1627,
974
  ER_UNUSED1628,
975
  ER_UNUSED1629,
976
  ER_UNUSED1630,
977
  ER_UNUSED1631,
978
  ER_UNUSED1632,
979
  ER_UNUSED1633,
980
  ER_UNUSED1634,
981
  ER_UNUSED1635,
982
  ER_UNUSED1636,
983
  ER_UNUSED1637,
984
  ER_UNUSED1638,
985
  ER_UNUSED1639,
986
  ER_UNUSED1640,
987
  ER_UNUSED1641,
988
  ER_UNUSED1642,
989
  ER_UNUSED1643,
990
  ER_UNUSED1644,
991
  ER_UNUSED1645,
992
  ER_UNUSED1646,
993
  ER_UNUSED1647,
994
  ER_UNUSED1648,
995
  ER_UNUSED1649,
996
  ER_UNUSED1650,
997
  ER_UNUSED1651,
998
  ER_UNUSED1652,
999
  ER_UNUSED1653,
1000
  ER_UNUSED1654,
1001
  ER_UNUSED1655,
1002
  ER_UNUSED1656,
1003
  ER_UNUSED1657,
1004
  ER_UNUSED1658,
1005
  ER_UNUSED1659,
1006
  ER_UNUSED1660,
1007
  ER_UNUSED1661,
1008
  ER_UNUSED1662,
1009
  ER_UNUSED1663,
1010
  ER_UNUSED1664,
1011
  ER_UNUSED1665,
1012
  ER_UNUSED1666,
1013
  ER_UNUSED1667,
1014
  ER_UNUSED1668,
1015
  ER_UNUSED1669,
1016
  ER_UNUSED1670,
1017
  ER_UNUSED1671,
1018
  ER_UNUSED1672,
1019
  ER_UNUSED1673,
1020
  ER_UNUSED1674,
1021
  ER_UNUSED1675,
1022
  ER_UNUSED1676,
1023
  ER_UNUSED1677,
1024
  ER_UNUSED1678,
1025
  ER_UNUSED1679,
1026
  ER_UNUSED1680,
1027
  ER_UNUSED1681,
1028
  ER_UNUSED1682,
1029
  ER_UNUSED1683,
1030
  ER_UNUSED1684,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1031
  ER_INVALID_UNIX_TIMESTAMP_VALUE,
1032
  ER_INVALID_DATETIME_VALUE,
1033
  ER_INVALID_NULL_ARGUMENT,
1738.4.5 by Lee Bieber
next pass at removing unused error messages
1034
  ER_UNUSED1688,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1035
  ER_ARGUMENT_OUT_OF_RANGE,
1738.4.1 by Lee Bieber
first pass at removing unused error message
1036
  ER_UNUSED1690,
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1037
  ER_INVALID_ENUM_VALUE,
1038
  ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
1271.7.19 by Tim Penhey
Missed an enum.
1039
  ER_CORRUPT_TABLE_DEFINITION,
1271.7.21 by Monty Taylor
Merged trunk.
1040
  ER_SCHEMA_DOES_NOT_EXIST,
1041
  ER_ALTER_SCHEMA,
1042
  ER_DROP_SCHEMA,
1487.1.1 by Brian Aker
There is room for improvement around this. We should be using rows as well
1043
  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
1044
  ER_UNKNOWN_ENGINE_OPTION,
1045
  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.
1046
  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
1047
  ER_CORRUPT_SCHEMA_DEFINITION,
1796.4.7 by Andrew Hutchings
Add error message for global sort buffer constraint
1048
  ER_OUT_OF_GLOBAL_SORTMEMORY,
1796.4.9 by Andrew Hutchings
Add join cache global constraint
1049
  ER_OUT_OF_GLOBAL_JOINMEMORY,
1796.4.10 by Andrew Hutchings
Add global constraint for --read-rnd-buffer-size
1050
  ER_OUT_OF_GLOBAL_READRNDMEMORY,
1796.4.11 by Andrew Hutchings
Add global constraint on read buffer
1051
  ER_OUT_OF_GLOBAL_READMEMORY,
1933.1.3 by Brian Aker
First pass though barriers.
1052
  ER_USER_LOCKS_CANT_WAIT_ON_OWN_BARRIER,
1053
  ER_USER_LOCKS_UNKNOWN_BARRIER,
1054
  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.
1055
  ER_USER_LOCKS_CANT_WAIT_ON_OWN_LOCK,
1056
  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.
1057
  ER_USER_LOCKS_INVALID_NAME_BARRIER,
1058
  ER_USER_LOCKS_INVALID_NAME_LOCK,
1963.2.1 by Brian Aker
Fixing up the kill function.
1059
  ER_KILL_DENY_SELF_ERROR,
1976.6.1 by Brian Aker
This is a fix for bug lp:686197
1060
  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)
1061
  ER_ADMIN_ACCESS,
1996.2.1 by Brian Aker
uuid type code.
1062
  ER_INVALID_UUID_VALUE,
1063
  ER_INVALID_UUID_TIME,
1933.1.3 by Brian Aker
First pass though barriers.
1064
1996.2.1 by Brian Aker
uuid type code.
1065
  ER_ERROR_LAST= ER_INVALID_UUID_TIME
1271.7.7 by Tim Penhey
Move the error enums into the enum header.
1066
};
1067
1068
enum drizzle_exit_codes {
1069
  EXIT_UNSPECIFIED_ERROR = 1,
1070
  EXIT_UNKNOWN_OPTION,
1071
  EXIT_AMBIGUOUS_OPTION,
1072
  EXIT_NO_ARGUMENT_ALLOWED,
1073
  EXIT_ARGUMENT_REQUIRED,
1074
  EXIT_VAR_PREFIX_NOT_UNIQUE,
1075
  EXIT_UNKNOWN_VARIABLE,
1076
  EXIT_OUT_OF_MEMORY,
1077
  EXIT_UNKNOWN_SUFFIX,
1078
  EXIT_NO_PTR_TO_VARIABLE,
1079
  EXIT_CANNOT_CONNECT_TO_SERVICE,
1080
  EXIT_OPTION_DISABLED,
1081
  EXIT_ARGUMENT_INVALID
1082
};
1083
1084
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
1085
} /* namespace drizzled */
1086
1089.1.11 by Brian Aker
Cleanup on enum
1087
#endif /* DRIZZLED_ENUM_H */