~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 MySQL
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
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.
 
8
 *  the Free Software Foundation; version 2 of the License.
10
9
 *
11
10
 *  This program is distributed in the hope that it will be useful,
12
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
20
#ifndef _drizzled_error_h
22
21
#define _drizzled_error_h
23
22
 
24
 
#include <libdrizzle/gettext.h>
 
23
#ifdef  __cplusplus
 
24
extern "C" {
 
25
#endif
 
26
 
 
27
const char * error_message(unsigned int err_index);
25
28
 
26
29
enum drizzled_error_code {
27
30
  ER_ERROR_FIRST= 1000,
28
 
  ER_HASHCHK= 1000,
 
31
  ER_HASHCHK= ER_ERROR_FIRST,
29
32
  ER_NISAMCHK,
30
33
  ER_NO,
31
34
  ER_YES,
461
464
  ER_FOREIGN_DATA_STRING_INVALID,
462
465
  ER_CANT_CREATE_FEDERATED_TABLE,
463
466
  ER_TRG_IN_WRONG_SCHEMA,
464
 
  ER_STACK_OVERRUN_NEED_MORE,
 
467
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
465
468
  ER_TOO_LONG_BODY,
466
469
  ER_WARN_CANT_DROP_DEFAULT_KEYCACHE,
467
470
  ER_TOO_BIG_DISPLAYWIDTH,
698
701
  ER_BACKUP_LOG_WRITE_ERROR,
699
702
  ER_TABLESPACE_NOT_EMPTY,
700
703
  ER_BACKUP_TS_CHANGE,
701
 
  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
702
714
};
703
715
 
 
716
#ifdef  __cplusplus
 
717
}
 
718
#endif
 
719
 
704
720
#endif
705
721