MySQL  8.0.12
Source Code Documentation
db0err.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 1996, 2018, Oracle and/or its affiliates. All Rights Reserved.
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24  The lines above are intentionally left blank
25 */
26 
27 /** @file include/db0err.h
28  Global error codes for the database
29 
30  Created 5/24/1996 Heikki Tuuri
31  *******************************************************/
32 
33 #ifndef db0err_h
34 #define db0err_h
35 
36 /* Do not include univ.i because univ.i includes this. */
37 
38 enum dberr_t {
40  DB_SUCCESS_LOCKED_REC = 9, /*!< like DB_SUCCESS, but a new
41  explicit record lock was created */
42  DB_SUCCESS = 10,
43 
44  /* The following are error codes */
48  DB_OUT_OF_FILE_SPACE, /*!< the tablespace could not be
49  auto-extending */
55  DB_MISSING_HISTORY, /*!< required history data has been
56  deleted due to lack of space in
57  rollback segment */
58  DB_SKIP_LOCKED, /*!< skip lock */
59  DB_LOCK_NOWAIT, /*!< don't wait lock */
60 
63  DB_MUST_GET_MORE_FILE_SPACE, /*!< the database has to be stopped
64  and restarted with more file space */
66  DB_TOO_BIG_RECORD, /*!< a record in an index would not fit
67  on a compressed page, or it would
68  become bigger than 1/2 free space in
69  an uncompressed page frame */
70  DB_LOCK_WAIT_TIMEOUT, /*!< lock wait lasted too long */
71  DB_NO_REFERENCED_ROW, /*!< referenced key value not found
72  for a foreign key in an insert or
73  update of a row */
74  DB_ROW_IS_REFERENCED, /*!< cannot delete or update a row
75  because it contains a key value
76  which is referenced */
77  DB_CANNOT_ADD_CONSTRAINT, /*!< adding a foreign key constraint
78  to a table failed */
79  DB_CORRUPTION, /*!< data structure corruption
80  noticed */
81  DB_CANNOT_DROP_CONSTRAINT, /*!< dropping a foreign key constraint
82  from a table failed */
83  DB_NO_SAVEPOINT, /*!< no savepoint exists with the given
84  name */
85  DB_TABLESPACE_EXISTS, /*!< we cannot create a new single-table
86  tablespace because a file of the same
87  name already exists */
88  DB_TABLESPACE_DELETED, /*!< tablespace was deleted or is
89  being dropped right now */
90  DB_TABLESPACE_NOT_FOUND, /*!< Attempt to delete a tablespace
91  instance that was not found in the
92  tablespace hash table */
93  DB_LOCK_TABLE_FULL, /*!< lock structs have exhausted the
94  buffer pool (for big transactions,
95  InnoDB stores the lock structs in the
96  buffer pool) */
97  DB_FOREIGN_DUPLICATE_KEY, /*!< foreign key constraints
98  activated by the operation would
99  lead to a duplicate key in some
100  table */
101  DB_TOO_MANY_CONCURRENT_TRXS, /*!< when InnoDB runs out of the
102  preconfigured undo slots, this can
103  only happen when there are too many
104  concurrent transactions */
105  DB_UNSUPPORTED, /*!< when InnoDB sees any artefact or
106  a feature that it can't recoginize or
107  work with e.g., FT indexes created by
108  a later version of the engine. */
109 
110  DB_INVALID_NULL, /*!< a NOT NULL column was found to
111  be NULL during table rebuild */
112 
113  DB_STATS_DO_NOT_EXIST, /*!< an operation that requires the
114  persistent storage, used for recording
115  table and index statistics, was
116  requested but this storage does not
117  exist itself or the stats for a given
118  table do not exist */
119  DB_FOREIGN_EXCEED_MAX_CASCADE, /*!< Foreign key constraint related
120  cascading delete/update exceeds
121  maximum allowed depth */
122  DB_CHILD_NO_INDEX, /*!< the child (foreign) table does
123  not have an index that contains the
124  foreign keys as its prefix columns */
125  DB_PARENT_NO_INDEX, /*!< the parent table does not
126  have an index that contains the
127  foreign keys as its prefix columns */
128  DB_TOO_BIG_INDEX_COL, /*!< index column size exceeds
129  maximum limit */
130  DB_INDEX_CORRUPT, /*!< we have corrupted index */
131  DB_UNDO_RECORD_TOO_BIG, /*!< the undo log record is too big */
132  DB_READ_ONLY, /*!< Update operation attempted in
133  a read-only transaction */
134  DB_FTS_INVALID_DOCID, /* FTS Doc ID cannot be zero */
135  DB_TABLE_IN_FK_CHECK, /* table is being used in foreign
136  key check */
137  DB_ONLINE_LOG_TOO_BIG, /*!< Modification log grew too big
138  during online index creation */
139 
140  DB_IDENTIFIER_TOO_LONG, /*!< Identifier name too long */
141  DB_FTS_EXCEED_RESULT_CACHE_LIMIT, /*!< FTS query memory
142  exceeds result cache limit */
143  DB_TEMP_FILE_WRITE_FAIL, /*!< Temp file write failure */
144  DB_CANT_CREATE_GEOMETRY_OBJECT, /*!< Cannot create specified Geometry
145  data object */
146  DB_CANNOT_OPEN_FILE, /*!< Cannot open a file */
147  DB_FTS_TOO_MANY_WORDS_IN_PHRASE, /*!< Too many words in a phrase */
148  DB_SERVER_VERSION_LOW, /* Server version is lower than tablespace version */
149 
150  DB_IO_ERROR = 100, /*!< Generic IO error */
151 
152  DB_IO_DECOMPRESS_FAIL, /*!< Failure to decompress a page
153  after reading it from disk */
154 
155  DB_IO_NO_PUNCH_HOLE, /*!< Punch hole not supported by
156  InnoDB */
157 
158  DB_IO_NO_PUNCH_HOLE_FS, /*!< The file system doesn't support
159  punch hole */
160 
161  DB_IO_NO_PUNCH_HOLE_TABLESPACE, /*!< The tablespace doesn't support
162  punch hole */
163 
164  DB_IO_DECRYPT_FAIL, /*!< Failure to decrypt a page
165  after reading it from disk */
166 
167  DB_IO_NO_ENCRYPT_TABLESPACE, /*!< The tablespace doesn't support
168  encrypt */
169 
170  DB_IO_PARTIAL_FAILED, /*!< Partial IO request failed */
171 
172  DB_FORCED_ABORT, /*!< Transaction was forced to rollback
173  by a higher priority transaction */
174 
175  DB_TABLE_CORRUPT, /*!< Table/clustered index is
176  corrupted */
177 
178  DB_WRONG_FILE_NAME, /*!< Invalid Filename */
179 
180  DB_COMPUTE_VALUE_FAILED, /*!< Compute generated value failed */
181  DB_NO_FK_ON_S_BASE_COL, /*!< Cannot add foreign constrain
182  placed on the base column of
183  stored column */
184 
185  DB_INVALID_ENCRYPTION_META, /*!< Invalid encrytion metadata in
186  page 0. */
187 
188  /* The following are partial failure codes */
189  DB_FAIL = 1000,
196  DB_NOT_FOUND, /*!< Generic error code for "Not found"
197  type of errors */
198 
199  /* The following are API only error codes. */
200  DB_DATA_MISMATCH = 2000, /*!< Column update or read failed
201  because the types mismatch */
202 };
203 
204 #endif
the child (foreign) table does not have an index that contains the foreign keys as its prefix columns...
Definition: db0err.h:122
Definition: db0err.h:42
Foreign key constraint related cascading delete/update exceeds maximum allowed depth.
Definition: db0err.h:119
FTS query memory exceeds result cache limit.
Definition: db0err.h:141
tablespace was deleted or is being dropped right now
Definition: db0err.h:88
the database has to be stopped and restarted with more file space
Definition: db0err.h:63
Definition: db0err.h:52
Definition: db0err.h:134
required history data has been deleted due to lack of space in rollback segment
Definition: db0err.h:55
dropping a foreign key constraint from a table failed
Definition: db0err.h:81
Definition: db0err.h:193
Temp file write failure.
Definition: db0err.h:143
Failure to decompress a page after reading it from disk.
Definition: db0err.h:152
a NOT NULL column was found to be NULL during table rebuild
Definition: db0err.h:110
Identifier name too long.
Definition: db0err.h:140
cannot delete or update a row because it contains a key value which is referenced ...
Definition: db0err.h:74
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:66
Definition: db0err.h:191
Failure to decrypt a page after reading it from disk.
Definition: db0err.h:164
The file system doesn&#39;t support punch hole.
Definition: db0err.h:158
Definition: db0err.h:135
Definition: db0err.h:65
Cannot create specified Geometry data object.
Definition: db0err.h:144
Partial IO request failed.
Definition: db0err.h:170
Update operation attempted in a read-only transaction.
Definition: db0err.h:132
Definition: db0err.h:192
Definition: db0err.h:46
Definition: db0err.h:194
Attempt to delete a tablespace instance that was not found in the tablespace hash table...
Definition: db0err.h:90
skip lock
Definition: db0err.h:58
Definition: db0err.h:50
referenced key value not found for a foreign key in an insert or update of a row
Definition: db0err.h:71
Invalid encrytion metadata in page 0.
Definition: db0err.h:185
Compute generated value failed.
Definition: db0err.h:180
Definition: db0err.h:148
dberr_t
Definition: db0err.h:38
Cannot add foreign constrain placed on the base column of stored column.
Definition: db0err.h:181
the undo log record is too big
Definition: db0err.h:131
we have corrupted index
Definition: db0err.h:130
adding a foreign key constraint to a table failed
Definition: db0err.h:77
Modification log grew too big during online index creation.
Definition: db0err.h:137
we cannot create a new single-table tablespace because a file of the same name already exists ...
Definition: db0err.h:85
when InnoDB sees any artefact or a feature that it can&#39;t recoginize or work with e.g., FT indexes created by a later version of the engine.
Definition: db0err.h:105
foreign key constraints activated by the operation would lead to a duplicate key in some table ...
Definition: db0err.h:97
Definition: db0err.h:54
Definition: db0err.h:62
when InnoDB runs out of the preconfigured undo slots, this can only happen when there are too many co...
Definition: db0err.h:101
don&#39;t wait lock
Definition: db0err.h:59
Generic IO error.
Definition: db0err.h:150
Transaction was forced to rollback by a higher priority transaction.
Definition: db0err.h:172
Definition: db0err.h:53
lock structs have exhausted the buffer pool (for big transactions, InnoDB stores the lock structs in ...
Definition: db0err.h:93
Definition: db0err.h:39
Column update or read failed because the types mismatch.
Definition: db0err.h:200
The tablespace doesn&#39;t support encrypt.
Definition: db0err.h:167
Punch hole not supported by InnoDB.
Definition: db0err.h:155
lock wait lasted too long
Definition: db0err.h:70
Definition: db0err.h:190
the tablespace could not be auto-extending
Definition: db0err.h:48
Invalid Filename.
Definition: db0err.h:178
Generic error code for "Not found" type of errors.
Definition: db0err.h:196
an operation that requires the persistent storage, used for recording table and index statistics...
Definition: db0err.h:113
Definition: db0err.h:45
index column size exceeds maximum limit
Definition: db0err.h:128
Table/clustered index is corrupted.
Definition: db0err.h:175
Definition: db0err.h:195
like DB_SUCCESS, but a new explicit record lock was created
Definition: db0err.h:40
the parent table does not have an index that contains the foreign keys as its prefix columns ...
Definition: db0err.h:125
Definition: db0err.h:51
Definition: db0err.h:47
Too many words in a phrase.
Definition: db0err.h:147
data structure corruption noticed
Definition: db0err.h:79
Cannot open a file.
Definition: db0err.h:146
no savepoint exists with the given name
Definition: db0err.h:83
Definition: db0err.h:61
The tablespace doesn&#39;t support punch hole.
Definition: db0err.h:161
Definition: db0err.h:189