MySQL 8.0.40
Source Code Documentation
db0err.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1996, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/db0err.h
29 Global error codes for the database
30
31 Created 5/24/1996 Heikki Tuuri
32 *******************************************************/
33
34#ifndef db0err_h
35#define db0err_h
36
37/* Do not include univ.i because univ.i includes this. */
38
39enum dberr_t {
41 /** like DB_SUCCESS, but a new explicit record lock was created */
44
45 /* The following are error codes */
46
50 /** The tablespace could not be auto-extending */
57 /** required history data has been deleted due to lack of space in
58 rollback segment */
60 /** skip lock */
62 /** don't wait lock */
64 /** no session temporary tablespace could be allocated */
68 /** the database has to be stopped and restarted with more file space */
71 /** a record in an index would not fit on a compressed page, or it would
72 become bigger than 1/2 free space in an uncompressed page frame */
74 /** lock wait lasted too long */
76 /** referenced key value not found for a foreign key in an insert or
77 update of a row */
79 /** cannot delete or update a row because it contains a key value which
80 is referenced */
82 /** adding a foreign key constraint to a table failed */
84 /** data structure corruption noticed */
86 /** dropping a foreign key constraint from a table failed */
88 /** no savepoint exists with the given name */
90 /** cannot create a new tablespace because a file of the same name or
91 tablespace ID already exists */
93 /** tablespace was deleted or is being dropped right now */
95 /** Attempt to delete a tablespace instance that was not found in the
96 tablespace hash table */
98 /** lock structs have exhausted the buffer pool (for big transactions,
99 InnoDB stores the lock structs in the buffer pool) */
101 /** foreign key constraints activated by the operation would lead to a
102 duplicate key in some table */
104 /** when InnoDB runs out of the preconfigured undo slots, this can only
105 happen when there are too many concurrent transactions */
107 /** when InnoDB sees any artefact or a feature that it can't recoginize
108 or work with e.g., FT indexes created by a later version of the engine. */
110 /** a NOT NULL column was found to be NULL during table rebuild */
112 /** an operation that requires the persistent storage, used for recording
113 table and index statistics, was requested but this storage does not exist
114 itself or the stats for a given table do not exist */
116 /** Foreign key constraint related cascading delete/update exceeds maximum
117 allowed depth */
119 /** the child (foreign) table does not have an index that contains the
120 foreign keys as its prefix columns */
122 /** the parent table does not have an index that contains the foreign keys
123 as its prefix columns */
125 /** index column size exceeds maximum limit */
127 /** we have corrupted index */
129 /** the undo log record is too big */
131 /** Update operation attempted in a read-only transaction */
133 /** FTS Doc ID cannot be zero */
135 /** table is being used in foreign key check */
137 /** Modification log grew too big during online index creation */
139 /** Identifier name too long */
141 /** FTS query memory exceeds result cache limit */
143 /** Temp file write failure */
145 /** Cannot create specified Geometry data object */
147 /** Cannot open a file */
149 /** Too many words in a phrase */
151 /** Server version is lower than tablespace version */
153 /** The path is too long for the OS */
155 /** Generic IO error */
157 /** Failure to decompress a page after reading it from disk */
159 /** Punch hole not supported by InnoDB */
161 /** The file system doesn't support punch hole */
163 /** The tablespace doesn't support punch hole */
165 /** Failure to decrypt a page after reading it from disk */
167 /** The tablespace doesn't support encrypt */
169 /** Partial IO request failed */
171 /** Transaction was forced to rollback by a higher priority transaction */
173 /** Table/clustered index is corrupted */
175 /** Invalid Filename */
177 /** Compute generated value failed */
179 /** Cannot add foreign constrain placed on the base column of stored column */
181 /** Invalid encryption metadata in page 0. */
183 /** Incomplete cloned directory */
185 /** Btree level limit exceeded. */
187 /** Doublewrite meta data not found in the system space header */
189 /** Failed to initialize the doublewrite extents in the system tablespace */
191 /** Failed to create the doublewrite extents in the system tablespace */
193 /** Failed to initialize the double write memory data structures */
195 /* Schema mismatch between the metadata and data being imported. */
197 /** System has run out of resources. */
199 /** Page was discarded, was not written to storage. */
201 /** Error reading the auto-increment value. */
203 /** Failed to read as read was beyond file size. */
205
206 /* The following are partial failure codes */
207
208 DB_FAIL = 1000,
217
218 /** Generic error code for "Not found" type of errors */
220
221 /* The following are API only error codes. */
222
223 /** Column update or read failed because the types mismatch */
225 /* Too many nested sub expression in full-text search string */
228#endif
dberr_t
Definition: db0err.h:39
@ DB_NO_SAVEPOINT
no savepoint exists with the given name
Definition: db0err.h:89
@ DB_FAIL
Definition: db0err.h:208
@ DB_DBLWR_INIT_FAILED
Failed to initialize the double write memory data structures.
Definition: db0err.h:194
@ DB_WRONG_FILE_NAME
Invalid Filename.
Definition: db0err.h:176
@ DB_TOO_BIG_INDEX_COL
index column size exceeds maximum limit
Definition: db0err.h:126
@ DB_TABLE_IN_FK_CHECK
table is being used in foreign key check
Definition: db0err.h:136
@ DB_FOREIGN_EXCEED_MAX_CASCADE
Foreign key constraint related cascading delete/update exceeds maximum allowed depth.
Definition: db0err.h:118
@ DB_V1_DBLWR_INIT_FAILED
Failed to initialize the doublewrite extents in the system tablespace.
Definition: db0err.h:190
@ DB_ROW_IS_REFERENCED
cannot delete or update a row because it contains a key value which is referenced
Definition: db0err.h:81
@ DB_OUT_OF_MEMORY
Definition: db0err.h:49
@ DB_TABLESPACE_EXISTS
cannot create a new tablespace because a file of the same name or tablespace ID already exists
Definition: db0err.h:92
@ DB_SCHEMA_MISMATCH
Definition: db0err.h:196
@ DB_TABLESPACE_NOT_FOUND
Attempt to delete a tablespace instance that was not found in the tablespace hash table.
Definition: db0err.h:97
@ DB_END_SAMPLE_READ
Definition: db0err.h:216
@ DB_CANNOT_ADD_CONSTRAINT
adding a foreign key constraint to a table failed
Definition: db0err.h:83
@ DB_CANT_CREATE_GEOMETRY_OBJECT
Cannot create specified Geometry data object.
Definition: db0err.h:146
@ DB_ZIP_OVERFLOW
Definition: db0err.h:212
@ DB_DUPLICATE_KEY
Definition: db0err.h:56
@ DB_COMPUTE_VALUE_FAILED
Compute generated value failed.
Definition: db0err.h:178
@ DB_SUCCESS
Definition: db0err.h:43
@ DB_LOCK_TABLE_FULL
lock structs have exhausted the buffer pool (for big transactions, InnoDB stores the lock structs in ...
Definition: db0err.h:100
@ DB_LOCK_WAIT
Definition: db0err.h:53
@ DB_ROLLBACK
Definition: db0err.h:55
@ DB_OVERFLOW
Definition: db0err.h:209
@ DB_TABLESPACE_DELETED
tablespace was deleted or is being dropped right now
Definition: db0err.h:94
@ DB_READ_ONLY
Update operation attempted in a read-only transaction.
Definition: db0err.h:132
@ DB_NO_SESSION_TEMP
no session temporary tablespace could be allocated
Definition: db0err.h:65
@ DB_IO_NO_PUNCH_HOLE_TABLESPACE
The tablespace doesn't support punch hole.
Definition: db0err.h:164
@ DB_MUST_GET_MORE_FILE_SPACE
the database has to be stopped and restarted with more file space
Definition: db0err.h:69
@ DB_INDEX_CORRUPT
we have corrupted index
Definition: db0err.h:128
@ DB_TEMP_FILE_WRITE_FAIL
Temp file write failure.
Definition: db0err.h:144
@ DB_RECORD_NOT_FOUND
Definition: db0err.h:213
@ DB_FOREIGN_DUPLICATE_KEY
foreign key constraints activated by the operation would lead to a duplicate key in some table
Definition: db0err.h:103
@ DB_FILE_READ_BEYOND_SIZE
Failed to read as read was beyond file size.
Definition: db0err.h:204
@ DB_OUT_OF_FILE_SPACE
The tablespace could not be auto-extending.
Definition: db0err.h:51
@ DB_ABORT_INCOMPLETE_CLONE
Incomplete cloned directory.
Definition: db0err.h:184
@ DB_CANNOT_DROP_CONSTRAINT
dropping a foreign key constraint from a table failed
Definition: db0err.h:87
@ DB_CORRUPTION
data structure corruption noticed
Definition: db0err.h:85
@ DB_SUCCESS_LOCKED_REC
like DB_SUCCESS, but a new explicit record lock was created
Definition: db0err.h:42
@ DB_LOCK_NOWAIT
don't wait lock
Definition: db0err.h:63
@ DB_UNDO_RECORD_TOO_BIG
the undo log record is too big
Definition: db0err.h:130
@ DB_NO_FK_ON_S_BASE_COL
Cannot add foreign constrain placed on the base column of stored column.
Definition: db0err.h:180
@ DB_FTS_INVALID_DOCID
FTS Doc ID cannot be zero.
Definition: db0err.h:134
@ DB_ONLINE_LOG_TOO_BIG
Modification log grew too big during online index creation.
Definition: db0err.h:138
@ DB_TABLE_CORRUPT
Table/clustered index is corrupted.
Definition: db0err.h:174
@ DB_FORCED_ABORT
Transaction was forced to rollback by a higher priority transaction.
Definition: db0err.h:172
@ DB_NO_REFERENCED_ROW
referenced key value not found for a foreign key in an insert or update of a row
Definition: db0err.h:78
@ DB_IO_DECRYPT_FAIL
Failure to decrypt a page after reading it from disk.
Definition: db0err.h:166
@ DB_V1_DBLWR_CREATE_FAILED
Failed to create the doublewrite extents in the system tablespace.
Definition: db0err.h:192
@ DB_NOT_FOUND
Generic error code for "Not found" type of errors.
Definition: db0err.h:219
@ DB_IDENTIFIER_TOO_LONG
Identifier name too long.
Definition: db0err.h:140
@ DB_OUT_OF_DISK_SPACE
Definition: db0err.h:52
@ DB_IO_NO_PUNCH_HOLE_FS
The file system doesn't support punch hole.
Definition: db0err.h:162
@ DB_IO_NO_PUNCH_HOLE
Punch hole not supported by InnoDB.
Definition: db0err.h:160
@ DB_IO_ERROR
Generic IO error.
Definition: db0err.h:156
@ DB_UNSUPPORTED
when InnoDB sees any artefact or a feature that it can't recoginize or work with e....
Definition: db0err.h:109
@ DB_INVALID_ENCRYPTION_META
Invalid encryption metadata in page 0.
Definition: db0err.h:182
@ DB_OUT_OF_RESOURCES
System has run out of resources.
Definition: db0err.h:198
@ DB_TABLE_IS_BEING_USED
Definition: db0err.h:70
@ DB_STRONG_FAIL
Definition: db0err.h:211
@ DB_FTS_TOO_MANY_WORDS_IN_PHRASE
Too many words in a phrase.
Definition: db0err.h:150
@ DB_AUTOINC_READ_ERROR
Error reading the auto-increment value.
Definition: db0err.h:202
@ DB_STATS_DO_NOT_EXIST
an operation that requires the persistent storage, used for recording table and index statistics,...
Definition: db0err.h:115
@ DB_FTS_EXCEED_RESULT_CACHE_LIMIT
FTS query memory exceeds result cache limit.
Definition: db0err.h:142
@ DB_END_OF_INDEX
Definition: db0err.h:215
@ DB_ERROR_UNSET
Definition: db0err.h:40
@ DB_TOO_MANY_CONCURRENT_TRXS
when InnoDB runs out of the preconfigured undo slots, this can only happen when there are too many co...
Definition: db0err.h:106
@ DB_END_OF_BLOCK
Definition: db0err.h:214
@ DB_UNDERFLOW
Definition: db0err.h:210
@ DB_IO_PARTIAL_FAILED
Partial IO request failed.
Definition: db0err.h:170
@ DB_TOO_LONG_PATH
The path is too long for the OS.
Definition: db0err.h:154
@ DB_LOCK_WAIT_TIMEOUT
lock wait lasted too long
Definition: db0err.h:75
@ DB_BTREE_LEVEL_LIMIT_EXCEEDED
Btree level limit exceeded.
Definition: db0err.h:186
@ DB_SKIP_LOCKED
skip lock
Definition: db0err.h:61
@ DB_TOO_BIG_RECORD
a record in an index would not fit on a compressed page, or it would become bigger than 1/2 free spac...
Definition: db0err.h:73
@ DB_CANNOT_OPEN_FILE
Cannot open a file.
Definition: db0err.h:148
@ DB_FTS_TOO_MANY_NESTED_EXP
Definition: db0err.h:226
@ DB_DBLWR_NOT_EXISTS
Doublewrite meta data not found in the system space header.
Definition: db0err.h:188
@ DB_INTERRUPTED
Definition: db0err.h:48
@ DB_INVALID_NULL
a NOT NULL column was found to be NULL during table rebuild
Definition: db0err.h:111
@ DB_IO_DECOMPRESS_FAIL
Failure to decompress a page after reading it from disk.
Definition: db0err.h:158
@ DB_CHILD_NO_INDEX
the child (foreign) table does not have an index that contains the foreign keys as its prefix columns
Definition: db0err.h:121
@ DB_DEADLOCK
Definition: db0err.h:54
@ DB_IO_NO_ENCRYPT_TABLESPACE
The tablespace doesn't support encrypt.
Definition: db0err.h:168
@ DB_PARENT_NO_INDEX
the parent table does not have an index that contains the foreign keys as its prefix columns
Definition: db0err.h:124
@ DB_CLUSTER_NOT_FOUND
Definition: db0err.h:66
@ DB_MISSING_HISTORY
required history data has been deleted due to lack of space in rollback segment
Definition: db0err.h:59
@ DB_SERVER_VERSION_LOW
Server version is lower than tablespace version.
Definition: db0err.h:152
@ DB_DATA_MISMATCH
Column update or read failed because the types mismatch.
Definition: db0err.h:224
@ DB_TABLE_NOT_FOUND
Definition: db0err.h:67
@ DB_PAGE_IS_STALE
Page was discarded, was not written to storage.
Definition: db0err.h:200
@ DB_ERROR
Definition: db0err.h:47