1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2009 Sun Microsystems, Inc.
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.
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.
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
21
#ifndef DRIZZLED_ERROR_T_H
22
#define DRIZZLED_ERROR_T_H
26
enum drizzled_error_code {
49
EE_OUT_OF_FILERESOURCES,
57
EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
60
ER_UNUSED1000= ER_ERROR_FIRST,
104
ER_DBACCESS_DENIED_ERROR,
105
ER_ACCESS_DENIED_ERROR,
107
ER_UNKNOWN_COM_ERROR,
110
ER_TABLE_EXISTS_ERROR,
115
ER_WRONG_FIELD_WITH_GROUP,
116
ER_WRONG_GROUP_FIELD,
118
ER_WRONG_VALUE_COUNT,
130
ER_TOO_MANY_KEY_PARTS,
132
ER_KEY_COLUMN_DOES_NOT_EXITS,
134
ER_TOO_BIG_FIELDLENGTH,
139
ER_SHUTDOWN_COMPLETE,
143
ER_WRONG_FIELD_TERMINATORS,
144
ER_BLOBS_AND_NO_TERMINATED,
145
ER_TEXTFILE_NOT_READABLE,
146
ER_FILE_EXISTS_ERROR,
150
ER_CANT_REMOVE_ALL_FIELDS,
151
ER_CANT_DROP_FIELD_OR_KEY,
153
ER_UPDATE_TABLE_USED,
155
ER_KILL_DENIED_ERROR,
161
ER_BLOB_CANT_HAVE_DEFAULT,
166
ER_UNKNOWN_PROCEDURE,
167
ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
170
ER_FIELD_SPECIFIED_TWICE,
171
ER_INVALID_GROUP_FUNC_USE,
172
ER_UNSUPPORTED_EXTENSION,
173
ER_TABLE_MUST_HAVE_COLUMNS,
181
ER_NULL_COLUMN_IN_INDEX,
186
ER_CANT_OPEN_LIBRARY,
187
ER_CANT_FIND_DL_ENTRY,
195
ER_CANT_CREATE_THREAD,
196
ER_WRONG_VALUE_COUNT_ON_ROW,
197
ER_CANT_REOPEN_TABLE,
200
ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
213
ER_NET_PACKET_TOO_LARGE,
216
ER_NET_PACKETS_OUT_OF_ORDER,
223
ER_TABLE_CANT_HANDLE_BLOB,
224
ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
226
ER_WRONG_COLUMN_NAME,
230
ER_BLOB_KEY_WITHOUT_LENGTH,
231
ER_PRIMARY_CANT_HAVE_NULL,
233
ER_REQUIRES_PRIMARY_KEY,
236
ER_KEY_DOES_NOT_EXITS,
237
ER_CHECK_NO_SUCH_TABLE,
238
ER_CHECK_NOT_IMPLEMENTED,
240
ER_ERROR_DURING_COMMIT,
241
ER_ERROR_DURING_ROLLBACK,
244
ER_NEW_ABORTING_CONNECTION,
252
ER_LOCK_OR_ACTIVE_TRANSACTION,
253
ER_UNKNOWN_SYSTEM_VARIABLE,
255
ER_CRASHED_ON_REPAIR,
256
ER_WARNING_NOT_COMPLETE_ROLLBACK,
264
ER_SET_CONSTANTS_ONLY,
265
ER_LOCK_WAIT_TIMEOUT,
267
ER_READ_ONLY_TRANSACTION,
268
ER_DROP_DB_WITH_READ_LOCK,
274
ER_TABLE_CANT_HANDLE_FT,
275
ER_CANNOT_ADD_FOREIGN,
276
ER_NO_REFERENCED_ROW,
277
ER_ROW_IS_REFERENCED,
282
ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
283
ER_CANT_UPDATE_WITH_READLOCK,
291
ER_WRONG_VALUE_FOR_VAR,
292
ER_WRONG_TYPE_FOR_VAR,
294
ER_CANT_USE_OPTION_HERE,
295
ER_NOT_SUPPORTED_YET,
298
ER_INCORRECT_GLOBAL_LOCAL_VAR,
300
ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
302
ER_SUBQUERY_NO_1_ROW,
307
ER_ILLEGAL_REFERENCE,
308
ER_DERIVED_MUST_HAVE_ALIAS,
310
ER_TABLENAME_NOT_ALLOWED_HERE,
312
ER_SPATIAL_CANT_HAVE_NULL,
313
ER_COLLATION_CHARSET_MISMATCH,
316
ER_TOO_BIG_FOR_UNCOMPRESS,
319
ER_ZLIB_Z_DATA_ERROR,
320
ER_CUT_VALUE_GROUP_CONCAT,
321
ER_WARN_TOO_FEW_RECORDS,
322
ER_WARN_TOO_MANY_RECORDS,
323
ER_WARN_NULL_TO_NOTNULL,
324
ER_WARN_DATA_OUT_OF_RANGE,
325
ER_WARN_DATA_TRUNCATED,
327
ER_CANT_AGGREGATE_2COLLATIONS,
330
ER_CANT_AGGREGATE_3COLLATIONS,
331
ER_CANT_AGGREGATE_NCOLLATIONS,
332
ER_VARIABLE_IS_NOT_STRUCT,
333
ER_UNKNOWN_COLLATION,
336
ER_WARN_FIELD_RESOLVED,
340
ER_WRONG_NAME_FOR_INDEX,
341
ER_WRONG_NAME_FOR_CATALOG,
346
ER_UNKNOWN_STORAGE_ENGINE,
348
ER_NON_UPDATABLE_TABLE,
350
ER_OPTION_PREVENTS_STATEMENT,
351
ER_DUPLICATED_VALUE_IN_TYPE,
352
ER_TRUNCATED_WRONG_VALUE,
353
ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
354
ER_INVALID_ON_UPDATE,
357
ER_GET_TEMPORARY_ERRMSG,
358
ER_UNKNOWN_TIME_ZONE,
360
ER_INVALID_CHARACTER_STRING,
361
ER_WARN_ALLOWED_PACKET_OVERFLOWED,
365
ER_SP_DOES_NOT_EXIST,
377
ER_QUERY_INTERRUPTED,
424
ER_NO_DEFAULT_FOR_FIELD,
426
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
427
ER_ILLEGAL_VALUE_FOR_TYPE,
469
ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
471
ER_WRONG_VALUE_FOR_TYPE,
472
ER_TABLE_DEF_CHANGED,
476
ER_CANT_CREATE_GEOMETRY_OBJECT,
482
ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
486
ER_TOO_BIG_PRECISION,
495
ER_TRG_IN_WRONG_SCHEMA,
496
ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
499
ER_TOO_BIG_DISPLAYWIDTH,
501
ER_DATETIME_FUNCTION_OVERFLOW,
511
ER_ROW_IS_REFERENCED_2,
512
ER_NO_REFERENCED_ROW_2,
519
ER_TABLE_NEEDS_UPGRADE,
523
ER_NON_GROUPING_FIELD_USED,
524
ER_TABLE_CANT_HANDLE_SPKEYS,
527
ER_AUTOINC_READ_FAILED,
530
ER_WRONG_STRING_LENGTH,
533
ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
534
ER_NAME_BECOMES_EMPTY,
535
ER_AMBIGUOUS_FIELD_TERM,
538
ER_ILLEGAL_HA_CREATE_OPTION,
584
ER_INVALID_OPTION_VALUE,
586
ER_NO_PARTITION_FOR_GIVEN_VALUE,
594
ER_BINLOG_ROW_LOGGING_FAILED,
617
ER_FOREIGN_DUPLICATE_KEY,
628
ER_CANT_CHANGE_TX_ISOLATION,
642
ER_WRONG_PARAMCOUNT_TO_FUNCTION,
643
ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
646
ER_DUP_ENTRY_WITH_KEY_NAME,
671
ER_LOAD_DATA_INVALID_COLUMN,
745
ER_INVALID_UNIX_TIMESTAMP_VALUE,
746
ER_INVALID_DATETIME_VALUE,
747
ER_INVALID_NULL_ARGUMENT,
749
ER_ARGUMENT_OUT_OF_RANGE,
751
ER_INVALID_ENUM_VALUE,
752
ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
753
ER_CORRUPT_TABLE_DEFINITION,
754
ER_SCHEMA_DOES_NOT_EXIST,
757
ER_USE_SQL_BIG_RESULT,
758
ER_UNKNOWN_ENGINE_OPTION,
759
ER_UNKNOWN_SCHEMA_OPTION,
760
ER_EVENT_OBSERVER_PLUGIN,
761
ER_CORRUPT_SCHEMA_DEFINITION,
762
ER_OUT_OF_GLOBAL_SORTMEMORY,
763
ER_OUT_OF_GLOBAL_JOINMEMORY,
764
ER_OUT_OF_GLOBAL_READRNDMEMORY,
765
ER_OUT_OF_GLOBAL_READMEMORY,
766
ER_USER_LOCKS_CANT_WAIT_ON_OWN_BARRIER,
767
ER_USER_LOCKS_UNKNOWN_BARRIER,
768
ER_USER_LOCKS_NOT_OWNER_OF_BARRIER,
769
ER_USER_LOCKS_CANT_WAIT_ON_OWN_LOCK,
770
ER_USER_LOCKS_NOT_OWNER_OF_LOCK,
771
ER_USER_LOCKS_INVALID_NAME_BARRIER,
772
ER_USER_LOCKS_INVALID_NAME_LOCK,
773
ER_KILL_DENY_SELF_ERROR,
774
ER_INVALID_ALTER_TABLE_FOR_NOT_NULL,
776
ER_INVALID_UUID_VALUE,
777
ER_INVALID_UUID_TIME,
778
ER_CORRUPT_TABLE_DEFINITION_ENUM,
779
ER_CORRUPT_TABLE_DEFINITION_UNKNOWN_COLLATION,
780
ER_INVALID_CAST_TO_SIGNED,
781
ER_INVALID_CAST_TO_UNSIGNED,
782
ER_INVALID_BOOLEAN_VALUE,
786
ER_INVALID_CAST_TO_BOOLEAN,
788
// Leave ER_INVALID_BOOLEAN_VALUE as LAST, and force people to use tags
789
// instead of numbers in error messages in test.
790
ER_ERROR_LAST= ER_INVALID_CAST_TO_BOOLEAN
794
} /* namespace drizzled */
796
#endif /* DRIZZLED_ERROR_T_H */