~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: mordred
  • Date: 2008-11-01 00:46:20 UTC
  • mto: (572.1.1 devel) (575.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 573.
  • Revision ID: mordred@opensolaris-20081101004620-vd0kzsl9k40hvf4p
Some updates to dtrace support.

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
 
#include <libdrizzle/gettext.h>
 
23
#ifdef  __cplusplus
 
24
extern "C" {
 
25
#endif
 
26
 
 
27
const char * error_message(unsigned int err_index);
24
28
 
25
29
enum drizzled_error_code {
26
30
  ER_ERROR_FIRST= 1000,
27
 
  ER_HASHCHK= 1000,
 
31
  ER_HASHCHK= ER_ERROR_FIRST,
28
32
  ER_NISAMCHK,
29
33
  ER_NO,
30
34
  ER_YES,
697
701
  ER_BACKUP_LOG_WRITE_ERROR,
698
702
  ER_TABLESPACE_NOT_EMPTY,
699
703
  ER_BACKUP_TS_CHANGE,
700
 
  ER_ERROR_LAST= 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
701
714
};
702
715
 
 
716
#ifdef  __cplusplus
 
717
}
 
718
#endif
 
719
 
703
720
#endif
704
721