~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/*
2
  Errors a handler can give you
3
*/
4
5
static const char *handler_error_messages[]=
6
{
7
  /* HA_ERR_KEY_NOT_FOUND */
8
  "Didn't find key on read or update",
9
  /* HA_ERR_FOUND_DUPP_KEY */
10
  "Duplicate key on write or update",
11
  /* HA_ERR_INTERNAL_ERROR */
12
  "Internal (unspecified) error in handler",
13
  /* HA_ERR_RECORD_CHANGED */
14
  "Someone has changed the row since it was read (while the table was locked to prevent it)",
15
  /* HA_ERR_WRONG_INDEX */
16
  "Wrong index given to function",
17
  /* empty */
18
  "Undefined handler error 125",
19
  /* HA_ERR_CRASHED */
20
  "Index file is crashed",
21
  /* HA_ERR_WRONG_IN_RECORD */
22
  "Record file is crashed",
23
  /* HA_ERR_OUT_OF_MEM */
24
  "Out of memory in engine",
25
  /* empty */
26
  "Undefined handler error 129",
27
  /* HA_ERR_NOT_A_TABLE */
28
  "Incorrect file format",
29
  /* HA_ERR_WRONG_COMMAND */
30
  "Command not supported by database",
31
  /* HA_ERR_OLD_FILE */
32
  "Old database file",
33
  /* HA_ERR_NO_ACTIVE_RECORD */
34
  "No record read before update",
35
  /* HA_ERR_RECORD_DELETED */
36
  "Record was already deleted (or record file crashed)",
37
  /* HA_ERR_RECORD_FILE_FULL */
38
  "No more room in record file",
39
  /* HA_ERR_INDEX_FILE_FULL */
40
  "No more room in index file",
41
  /* HA_ERR_END_OF_FILE */
42
  "No more records (read after end of file)",
43
  /* HA_ERR_UNSUPPORTED */
44
  "Unsupported extension used for table",
45
  /* HA_ERR_TO_BIG_ROW */
46
  "Too big row",
47
  /* HA_WRONG_CREATE_OPTION */
48
  "Wrong create options",
49
  /* HA_ERR_FOUND_DUPP_UNIQUE */
50
  "Duplicate unique key or constraint on write or update",
51
  /* HA_ERR_UNKNOWN_CHARSET */
52
  "Unknown character set used in table",
53
  /* HA_ERR_WRONG_MRG_TABLE_DEF */
54
  "Conflicting table definitions in sub-tables of MERGE table",
55
  /* HA_ERR_CRASHED_ON_REPAIR */
56
  "Table is crashed and last repair failed",
57
  /* HA_ERR_CRASHED_ON_USAGE */
58
  "Table was marked as crashed and should be repaired",
59
  /* HA_ERR_LOCK_WAIT_TIMEOUT */
60
  "Lock timed out; Retry transaction",
61
  /* HA_ERR_LOCK_TABLE_FULL */
62
  "Lock table is full;  Restart program with a larger locktable",
63
  /* HA_ERR_READ_ONLY_TRANSACTION */
64
  "Updates are not allowed under a read only transactions",
65
  /* HA_ERR_LOCK_DEADLOCK */
66
  "Lock deadlock; Retry transaction",
67
  /* HA_ERR_CANNOT_ADD_FOREIGN */
68
  "Foreign key constraint is incorrectly formed",
69
  /* HA_ERR_NO_REFERENCED_ROW */
70
  "Cannot add a child row",
71
  /* HA_ERR_ROW_IS_REFERENCED */
72
  "Cannot delete a parent row",
73
  /* HA_ERR_NO_SAVEPOINT */
74
  "No savepoint with that name",
75
  /* HA_ERR_NON_UNIQUE_BLOCK_SIZE */
76
  "Non unique key block size",
77
  /* HA_ERR_NO_SUCH_TABLE */
78
  "The table does not exist in engine",
79
  /* HA_ERR_TABLE_EXIST */
80
  "The table already existed in storage engine",
81
  /* HA_ERR_NO_CONNECTION */
82
  "Could not connect to storage engine",
83
  /* HA_ERR_NULL_IN_SPATIAL */
84
  "Unexpected null pointer found when using spatial index",
85
  /* HA_ERR_TABLE_DEF_CHANGED */
86
  "The table changed in storage engine",
87
  /* HA_ERR_NO_PARTITION_FOUND */
88
  "There's no partition in table for the given value",
89
  /* HA_ERR_RBR_LOGGING_FAILED */
90
  "Row-based binlogging of row failed",
91
  /* HA_ERR_DROP_INDEX_FK */
92
  "Index needed in foreign key constraint",
93
  /* HA_ERR_FOREIGN_DUPLICATE_KEY */
94
  "Upholding foreign key constraints would lead to a duplicate key error in "
95
  /* HA_ERR_TABLE_NEEDS_UPGRADE */
96
  "Table needs to be upgraded before it can be used",
97
  /* HA_ERR_TABLE_READONLY */
98
  "Table is read only",
99
  /* HA_ERR_AUTOINC_READ_FAILED */
100
  "Failed to get next auto increment value",
101
  /* HA_ERR_AUTOINC_ERANGE */
102
  "Failed to set row auto increment value",
103
  /* HA_ERR_GENERIC */
104
  "Unknown (generic) error from engine",
105
  /* HA_ERR_RECORD_IS_THE_SAME */
106
  "Record is the same",
107
  /* HA_ERR_LOGGING_IMPOSSIBLE */
108
  "It is not possible to log this statement",
109
  /* HA_ERR_TABLESPACE_EXIST */
110
  "Tablespace exists",
111
  /* HA_ERR_CORRUPT_EVENT */
112
  "The event was corrupt, leading to illegal data being read",
113
  /* HA_ERR_NEW_FILE */
114
  "The table is of a new format not supported by this version",
115
  /* HA_ERR_ROWS_EVENT_APPLY */
116
  "The event could not be processed no other hanlder error happened",
117
  /* HA_ERR_INITIALIZATION */
118
  "Got a fatal error during initialzaction of handler",
119
  /* HA_ERR_FILE_TOO_SHORT */
120
  "File to short; Expected more data in file",
121
  /* HA_ERR_WRONG_CRC */
122
  "Read page with wrong checksum",
123
  /* HA_ERR_LOCK_OR_ACTIVE_TRANSACTION */
124
  "Lock or active transaction", /* TODO: get a better message */
125
  /* HA_ERR_NO_SUCH_TABLESPACE */
126
  "No such table space", /* TODO: get a better message */
127
  /* HA_ERR_TABLESPACE_NOT_EMPTY */
128
  "Tablespace not empty" /* TODO: get a better message */
129
};
130
131