~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: Monty Taylor
  • Date: 2008-09-16 00:00:48 UTC
  • mto: This revision was merged to the branch mainline in revision 391.
  • Revision ID: monty@inaugust.com-20080916000048-3rvrv3gv9l0ad3gs
Fixed copyright headers in drizzled/

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef _drizzled_error_h
21
21
#define _drizzled_error_h
22
22
 
23
 
#ifdef  __cplusplus
24
 
extern "C" {
25
 
#endif
26
 
 
27
 
const char * error_message(unsigned int err_index);
 
23
#include <libdrizzle/gettext.h>
28
24
 
29
25
enum drizzled_error_code {
30
26
  ER_ERROR_FIRST= 1000,
31
 
  ER_HASHCHK= ER_ERROR_FIRST,
 
27
  ER_HASHCHK= 1000,
32
28
  ER_NISAMCHK,
33
29
  ER_NO,
34
30
  ER_YES,
464
460
  ER_FOREIGN_DATA_STRING_INVALID,
465
461
  ER_CANT_CREATE_FEDERATED_TABLE,
466
462
  ER_TRG_IN_WRONG_SCHEMA,
467
 
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
 
463
  ER_STACK_OVERRUN_NEED_MORE,
468
464
  ER_TOO_LONG_BODY,
469
465
  ER_WARN_CANT_DROP_DEFAULT_KEYCACHE,
470
466
  ER_TOO_BIG_DISPLAYWIDTH,
701
697
  ER_BACKUP_LOG_WRITE_ERROR,
702
698
  ER_TABLESPACE_NOT_EMPTY,
703
699
  ER_BACKUP_TS_CHANGE,
704
 
  ER_VCOL_BASED_ON_VCOL,
705
 
  ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED,
706
 
  ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN,
707
 
  ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN,
708
 
  ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN,
709
 
  ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN,
710
 
  ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN,
711
 
  ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN,
712
 
  ER_CONST_EXPR_IN_VCOL,
713
 
  ER_ERROR_LAST= ER_CONST_EXPR_IN_VCOL
 
700
  ER_ERROR_LAST= ER_BACKUP_TS_CHANGE
714
701
};
715
702
 
716
 
#ifdef  __cplusplus
717
 
}
718
 
#endif
719
 
 
720
703
#endif
721
704