1
/*****************************************************************************
3
Copyright (c) 1996, 2012, Oracle and/or its affiliates. All Rights Reserved.
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.
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.
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.,
15
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/db0err.h
21
Global error codes for the database
23
Created 5/24/1996 Heikki Tuuri
24
*******************************************************/
31
DB_SUCCESS_LOCKED_REC = 9, /*!< like DB_SUCCESS, but a new
32
explicit record lock was created */
35
/* The following are error codes */
45
DB_MISSING_HISTORY, /* required history data has been
46
deleted due to lack of space in
48
DB_CLUSTER_NOT_FOUND = 30,
50
DB_MUST_GET_MORE_FILE_SPACE, /* the database has to be stopped
51
and restarted with more file space */
52
DB_TABLE_IS_BEING_USED,
53
DB_TOO_BIG_RECORD, /* a record in an index would not fit
54
on a compressed page, or it would
55
become bigger than 1/2 free space in
56
an uncompressed page frame */
57
DB_LOCK_WAIT_TIMEOUT, /* lock wait lasted too long */
58
DB_NO_REFERENCED_ROW, /* referenced key value not found
59
for a foreign key in an insert or
61
DB_ROW_IS_REFERENCED, /* cannot delete or update a row
62
because it contains a key value
63
which is referenced */
64
DB_CANNOT_ADD_CONSTRAINT, /* adding a foreign key constraint
66
DB_CORRUPTION, /* data structure corruption noticed */
67
DB_CANNOT_DROP_CONSTRAINT, /* dropping a foreign key constraint
68
from a table failed */
69
DB_NO_SAVEPOINT, /* no savepoint exists with the given
71
DB_TABLESPACE_ALREADY_EXISTS, /* we cannot create a new single-table
72
tablespace because a file of the same
73
name already exists */
74
DB_TABLESPACE_DELETED, /* tablespace does not exist or is
75
being dropped right now */
76
DB_LOCK_TABLE_FULL, /* lock structs have exhausted the
77
buffer pool (for big transactions,
78
InnoDB stores the lock structs in the
80
DB_FOREIGN_DUPLICATE_KEY, /* foreign key constraints
81
activated by the operation would
82
lead to a duplicate key in some
84
DB_TOO_MANY_CONCURRENT_TRXS, /* when InnoDB runs out of the
85
preconfigured undo slots, this can
86
only happen when there are too many
87
concurrent transactions */
88
DB_UNSUPPORTED, /* when InnoDB sees any artefact or
89
a feature that it can't recoginize or
90
work with e.g., FT indexes created by
91
a later version of the engine. */
93
DB_PRIMARY_KEY_IS_NULL, /* a column in the PRIMARY KEY
94
was found to be NULL */
96
DB_STATS_DO_NOT_EXIST, /* an operation that requires the
97
persistent storage, used for recording
98
table and index statistics, was
99
requested but this storage does not
100
exist itself or the stats for a given
101
table do not exist */
102
DB_FOREIGN_EXCEED_MAX_CASCADE, /* Foreign key constraint related
103
cascading delete/update exceeds
104
maximum allowed depth */
105
DB_CHILD_NO_INDEX, /* the child (foreign) table does not
106
have an index that contains the
107
foreign keys as its prefix columns */
108
DB_PARENT_NO_INDEX, /* the parent table does not
109
have an index that contains the
110
foreign keys as its prefix columns */
111
DB_TOO_BIG_INDEX_COL, /* index column size exceeds maximum
113
DB_INDEX_CORRUPT, /* we have corrupted index */
114
DB_UNDO_RECORD_TOO_BIG, /* the undo log record is too big */
115
DB_TABLE_IN_FK_CHECK, /* table is being used in foreign
117
DB_IDENTIFIER_TOO_LONG, /* Identifier name too long */
119
/* The following are partial failure codes */
125
DB_RECORD_NOT_FOUND = 1500,