1#ifndef MYSYS_MY_HANDLER_ERRORS_INCLUDED
2#define MYSYS_MY_HANDLER_ERRORS_INCLUDED
3
4/* Copyright (c) 2008, 2013, Oracle and/or its affiliates.
5 Copyright (c) 2011, 2013, SkySQL Ab.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; version 2 of the License.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software Foundation,
18 Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
19
20/*
21 Errors a handler can give you
22*/
23
24static const char *handler_error_messages[]=
25{
26 /* 120 */
27 "Didn't find the key on read or update",
28 "Duplicate key on write or update",
29 "Internal (unspecified) error in handler",
30 "Someone has changed the row since it was read (even though the table was locked to prevent it)",
31 "Wrong index given to a function",
32 "Undefined handler error 125",
33 "Index is corrupted",
34 "Table file is corrupted",
35 "Out of memory in engine",
36 "Undefined handler error 129",
37 /* 130 */
38 "Incorrect file format",
39 "Command not supported by the engine",
40 "Old database file",
41 "No record read before update",
42 "Record was already deleted (or record file crashed)",
43 "No more room in record file",
44 "No more room in index file",
45 "No more records (read after end of file)",
46 "Unsupported extension used for table",
47 "Too big row",
48 /* 140 */
49 "Wrong create options",
50 "Duplicate unique key on write or update",
51 "Unknown character set used in table",
52 "Conflicting table definitions in sub-tables of MERGE table",
53 "Table is crashed and last repair failed",
54 "Table was marked as crashed and should be repaired",
55 "Lock timed out; Retry transaction",
56 "Lock table is full; Restart program with a larger lock table",
57 "Updates are not allowed under a read only transactions",
58 "Lock deadlock; Retry transaction",
59 /* 150 */
60 "Foreign key constraint is incorrectly formed",
61 "Cannot add a child row",
62 "Cannot delete a parent row",
63 "No savepoint with that name",
64 "Non unique key block size",
65 "The table does not exist in the storage engine",
66 "The table already existed in the storage engine",
67 "Could not connect to the storage engine",
68 "Unexpected null pointer found when using spatial index",
69 "The table changed in the storage engine",
70 /* 160 */
71 "There's no partition in the table for the given value",
72 "Row-based binary logging of row failed",
73 "Index needed in foreign key constraint",
74 "Upholding foreign key constraints would lead to a duplicate key error in some other table",
75 "Table needs to be upgraded before it can be used",
76 "Table is read only",
77 "Failed to get next auto increment value",
78 "Failed to set row auto increment value",
79 "Unknown (generic) error from engine",
80 "Record was not updated. New values were the same as original values",
81 /* 170 */
82 "It is not possible to log this statement",
83 "The event was corrupt, leading to illegal data being read",
84 "The table is of a new format not supported by this version",
85 "The event could not be processed. No other handler error happened",
86 "Fatal error during initialization of handler",
87 "File too short; Expected more data in file",
88 "Read page with wrong checksum",
89 "Too many active concurrent transactions",
90 "Record not matching the given partition set",
91 "Index column length exceeds limit",
92 /* 180 */
93 "Index corrupted",
94 "Undo record too big",
95 "Invalid InnoDB FTS Doc ID",
96 "Table is being used in foreign key check",
97 "Tablespace already exists",
98 "Too many columns",
99 "Row in wrong partition",
100 "Row is not visible by the current transaction",
101 "Operation was interrupted by end user (probably kill command?)",
102 "Disk full",
103 /* 190 */
104 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this",
105 "Too many words in a FTS phrase or proximity search",
106 "Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.",
107 "Foreign key cascade delete/update exceeds max depth",
108 "Tablespace is missing for a table",
109 "Sequence has been run out",
110 "Sequence values are conflicting"
111};
112
113#endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */
114