312
enum drizzled_error_code {
335
EE_OUT_OF_FILERESOURCES,
340
EE_UNKNOWN_COLLATION,
343
EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
345
ER_ERROR_FIRST= 1000,
346
ER_UNUSED1000= ER_ERROR_FIRST,
351
ER_CANT_CREATE_TABLE,
384
ER_OUT_OF_SORTMEMORY,
390
ER_DBACCESS_DENIED_ERROR,
391
ER_ACCESS_DENIED_ERROR,
393
ER_UNKNOWN_COM_ERROR,
396
ER_TABLE_EXISTS_ERROR,
401
ER_WRONG_FIELD_WITH_GROUP,
402
ER_WRONG_GROUP_FIELD,
404
ER_WRONG_VALUE_COUNT,
416
ER_TOO_MANY_KEY_PARTS,
418
ER_KEY_COLUMN_DOES_NOT_EXITS,
420
ER_TOO_BIG_FIELDLENGTH,
425
ER_SHUTDOWN_COMPLETE,
429
ER_WRONG_FIELD_TERMINATORS,
430
ER_BLOBS_AND_NO_TERMINATED,
431
ER_TEXTFILE_NOT_READABLE,
432
ER_FILE_EXISTS_ERROR,
436
ER_CANT_REMOVE_ALL_FIELDS,
437
ER_CANT_DROP_FIELD_OR_KEY,
439
ER_UPDATE_TABLE_USED,
441
ER_KILL_DENIED_ERROR,
447
ER_BLOB_CANT_HAVE_DEFAULT,
452
ER_UNKNOWN_PROCEDURE,
453
ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
456
ER_FIELD_SPECIFIED_TWICE,
457
ER_INVALID_GROUP_FUNC_USE,
458
ER_UNSUPPORTED_EXTENSION,
459
ER_TABLE_MUST_HAVE_COLUMNS,
467
ER_NULL_COLUMN_IN_INDEX,
472
ER_CANT_OPEN_LIBRARY,
473
ER_CANT_FIND_DL_ENTRY,
481
ER_CANT_CREATE_THREAD,
482
ER_WRONG_VALUE_COUNT_ON_ROW,
483
ER_CANT_REOPEN_TABLE,
486
ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
499
ER_NET_PACKET_TOO_LARGE,
502
ER_NET_PACKETS_OUT_OF_ORDER,
509
ER_TABLE_CANT_HANDLE_BLOB,
510
ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
512
ER_WRONG_COLUMN_NAME,
516
ER_BLOB_KEY_WITHOUT_LENGTH,
517
ER_PRIMARY_CANT_HAVE_NULL,
519
ER_REQUIRES_PRIMARY_KEY,
522
ER_KEY_DOES_NOT_EXITS,
523
ER_CHECK_NO_SUCH_TABLE,
524
ER_CHECK_NOT_IMPLEMENTED,
526
ER_ERROR_DURING_COMMIT,
527
ER_ERROR_DURING_ROLLBACK,
530
ER_NEW_ABORTING_CONNECTION,
538
ER_LOCK_OR_ACTIVE_TRANSACTION,
539
ER_UNKNOWN_SYSTEM_VARIABLE,
541
ER_CRASHED_ON_REPAIR,
542
ER_WARNING_NOT_COMPLETE_ROLLBACK,
550
ER_SET_CONSTANTS_ONLY,
551
ER_LOCK_WAIT_TIMEOUT,
553
ER_READ_ONLY_TRANSACTION,
554
ER_DROP_DB_WITH_READ_LOCK,
560
ER_TABLE_CANT_HANDLE_FT,
561
ER_CANNOT_ADD_FOREIGN,
562
ER_NO_REFERENCED_ROW,
563
ER_ROW_IS_REFERENCED,
568
ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
569
ER_CANT_UPDATE_WITH_READLOCK,
577
ER_WRONG_VALUE_FOR_VAR,
578
ER_WRONG_TYPE_FOR_VAR,
580
ER_CANT_USE_OPTION_HERE,
581
ER_NOT_SUPPORTED_YET,
584
ER_INCORRECT_GLOBAL_LOCAL_VAR,
586
ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
588
ER_SUBQUERY_NO_1_ROW,
593
ER_ILLEGAL_REFERENCE,
594
ER_DERIVED_MUST_HAVE_ALIAS,
596
ER_TABLENAME_NOT_ALLOWED_HERE,
598
ER_SPATIAL_CANT_HAVE_NULL,
599
ER_COLLATION_CHARSET_MISMATCH,
602
ER_TOO_BIG_FOR_UNCOMPRESS,
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,
613
ER_CANT_AGGREGATE_2COLLATIONS,
616
ER_CANT_AGGREGATE_3COLLATIONS,
617
ER_CANT_AGGREGATE_NCOLLATIONS,
618
ER_VARIABLE_IS_NOT_STRUCT,
619
ER_UNKNOWN_COLLATION,
622
ER_WARN_FIELD_RESOLVED,
626
ER_WRONG_NAME_FOR_INDEX,
627
ER_WRONG_NAME_FOR_CATALOG,
632
ER_UNKNOWN_STORAGE_ENGINE,
634
ER_NON_UPDATABLE_TABLE,
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,
643
ER_GET_TEMPORARY_ERRMSG,
644
ER_UNKNOWN_TIME_ZONE,
646
ER_INVALID_CHARACTER_STRING,
647
ER_WARN_ALLOWED_PACKET_OVERFLOWED,
651
ER_SP_DOES_NOT_EXIST,
663
ER_QUERY_INTERRUPTED,
710
ER_NO_DEFAULT_FOR_FIELD,
712
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
713
ER_ILLEGAL_VALUE_FOR_TYPE,
755
ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
757
ER_WRONG_VALUE_FOR_TYPE,
758
ER_TABLE_DEF_CHANGED,
762
ER_CANT_CREATE_GEOMETRY_OBJECT,
768
ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
772
ER_TOO_BIG_PRECISION,
781
ER_TRG_IN_WRONG_SCHEMA,
782
ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
785
ER_TOO_BIG_DISPLAYWIDTH,
787
ER_DATETIME_FUNCTION_OVERFLOW,
797
ER_ROW_IS_REFERENCED_2,
798
ER_NO_REFERENCED_ROW_2,
805
ER_TABLE_NEEDS_UPGRADE,
809
ER_NON_GROUPING_FIELD_USED,
810
ER_TABLE_CANT_HANDLE_SPKEYS,
813
ER_AUTOINC_READ_FAILED,
816
ER_WRONG_STRING_LENGTH,
819
ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
820
ER_NAME_BECOMES_EMPTY,
821
ER_AMBIGUOUS_FIELD_TERM,
824
ER_ILLEGAL_HA_CREATE_OPTION,
870
ER_INVALID_OPTION_VALUE,
872
ER_NO_PARTITION_FOR_GIVEN_VALUE,
880
ER_BINLOG_ROW_LOGGING_FAILED,
903
ER_FOREIGN_DUPLICATE_KEY,
914
ER_CANT_CHANGE_TX_ISOLATION,
928
ER_WRONG_PARAMCOUNT_TO_FUNCTION,
929
ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
932
ER_DUP_ENTRY_WITH_KEY_NAME,
957
ER_LOAD_DATA_INVALID_COLUMN,
1031
ER_INVALID_UNIX_TIMESTAMP_VALUE,
1032
ER_INVALID_DATETIME_VALUE,
1033
ER_INVALID_NULL_ARGUMENT,
1035
ER_ARGUMENT_OUT_OF_RANGE,
1037
ER_INVALID_ENUM_VALUE,
1038
ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
1039
ER_CORRUPT_TABLE_DEFINITION,
1040
ER_SCHEMA_DOES_NOT_EXIST,
1043
ER_USE_SQL_BIG_RESULT,
1044
ER_UNKNOWN_ENGINE_OPTION,
1045
ER_UNKNOWN_SCHEMA_OPTION,
1046
ER_EVENT_OBSERVER_PLUGIN,
1047
ER_CORRUPT_SCHEMA_DEFINITION,
1048
ER_OUT_OF_GLOBAL_SORTMEMORY,
1049
ER_OUT_OF_GLOBAL_JOINMEMORY,
1050
ER_OUT_OF_GLOBAL_READRNDMEMORY,
1051
ER_OUT_OF_GLOBAL_READMEMORY,
1052
ER_USER_LOCKS_CANT_WAIT_ON_OWN_BARRIER,
1053
ER_USER_LOCKS_UNKNOWN_BARRIER,
1054
ER_USER_LOCKS_NOT_OWNER_OF_BARRIER,
1055
ER_USER_LOCKS_CANT_WAIT_ON_OWN_LOCK,
1056
ER_USER_LOCKS_NOT_OWNER_OF_LOCK,
1057
ER_USER_LOCKS_INVALID_NAME_BARRIER,
1058
ER_USER_LOCKS_INVALID_NAME_LOCK,
1059
ER_KILL_DENY_SELF_ERROR,
1060
ER_INVALID_ALTER_TABLE_FOR_NOT_NULL,
1062
ER_INVALID_UUID_VALUE,
1063
ER_INVALID_UUID_TIME,
1064
ER_CORRUPT_TABLE_DEFINITION_ENUM,
1065
ER_CORRUPT_TABLE_DEFINITION_UNKNOWN_COLLATION,
1066
ER_INVALID_CAST_TO_SIGNED,
1067
ER_INVALID_CAST_TO_UNSIGNED,
1068
ER_INVALID_BOOLEAN_VALUE,
1072
ER_INVALID_CAST_TO_BOOLEAN,
1074
// Leave ER_INVALID_BOOLEAN_VALUE as LAST, and force people to use tags
1075
// instead of numbers in error messages in test.
1076
ER_ERROR_LAST= ER_INVALID_CAST_TO_BOOLEAN
1079
312
enum drizzle_exit_codes {
1080
313
EXIT_UNSPECIFIED_ERROR = 1,
1081
314
EXIT_UNKNOWN_OPTION,