~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/db0err.h

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
13
 
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/db0err.h
 
1
/******************************************************
21
2
Global error codes for the database
22
3
 
 
4
(c) 1996 Innobase Oy
 
5
 
23
6
Created 5/24/1996 Heikki Tuuri
24
7
*******************************************************/
25
8
 
28
11
 
29
12
 
30
13
enum db_err {
31
 
        DB_SUCCESS_LOCKED_REC = 9,      /*!< like DB_SUCCESS, but a new
32
 
                                        explicit record lock was created */
33
14
        DB_SUCCESS = 10,
34
15
 
35
16
        /* The following are error codes */
36
17
        DB_ERROR,
37
 
        DB_INTERRUPTED,
38
18
        DB_OUT_OF_MEMORY,
39
19
        DB_OUT_OF_FILE_SPACE,
40
20
        DB_LOCK_WAIT,
95
75
        DB_PRIMARY_KEY_IS_NULL,         /* a column in the PRIMARY KEY
96
76
                                        was found to be NULL */
97
77
 
98
 
        DB_STATS_DO_NOT_EXIST,          /* an operation that requires the
99
 
                                        persistent storage, used for recording
100
 
                                        table and index statistics, was
101
 
                                        requested but this storage does not
102
 
                                        exist itself or the stats for a given
103
 
                                        table do not exist */
104
 
        DB_FOREIGN_EXCEED_MAX_CASCADE,  /* Foreign key constraint related
105
 
                                        cascading delete/update exceeds
106
 
                                        maximum allowed depth */
107
 
        DB_CHILD_NO_INDEX,              /* the child (foreign) table does not
108
 
                                        have an index that contains the
109
 
                                        foreign keys as its prefix columns */
110
 
        DB_PARENT_NO_INDEX,             /* the parent table does not
111
 
                                        have an index that contains the
112
 
                                        foreign keys as its prefix columns */
113
 
 
114
78
        /* The following are partial failure codes */
115
79
        DB_FAIL = 1000,
116
80
        DB_OVERFLOW,