~drizzle-trunk/drizzle/development

549 by Monty Taylor
Took gettext.h out of header files.
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
4
 *  Copyright (C) 2000 MySQL AB
549 by Monty Taylor
Took gettext.h out of header files.
5
 *  Copyright (C) 2008 Sun Microsystems
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
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
21
/*
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
22
 * Errors a drizzled can give you
23
 */
549 by Monty Taylor
Took gettext.h out of header files.
24
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
25
#include "config.h"
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
26
#include "drizzled/internal/my_sys.h"
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
27
#include "drizzled/definitions.h"
28
#include "drizzled/error.h"
29
#include "drizzled/gettext.h"
1271.7.9 by Tim Penhey
Almost there.
30
1429.3.1 by Monty Taylor
Use unordered_map from the upcoming c++0x standard instead of a homemade
31
#include <drizzled/unordered_map.h>
1271.7.9 by Tim Penhey
Almost there.
32
#include <exception>
549 by Monty Taylor
Took gettext.h out of header files.
33
1271.7.15 by Tim Penhey
Fix mistakes from the merge.
34
namespace drizzled
35
{
36
namespace
37
{
1271.7.2 by Tim Penhey
Add notes and typedef.
38
1271.7.9 by Tim Penhey
Almost there.
39
class ErrorStringNotFound: public std::exception
40
{
41
public:
42
  ErrorStringNotFound(uint32_t code)
43
    : error_num_(code)
44
  {}
45
  uint32_t error_num() const
46
  {
47
    return error_num_;
48
  }
49
private:
50
  uint32_t error_num_;
51
};
1271.7.2 by Tim Penhey
Add notes and typedef.
52
1271.7.4 by Tim Penhey
Another incremental commit.
53
/*
54
 * Provides a mapping from the error enum values to std::strings.
55
 */
56
class ErrorMap
57
{
58
public:
59
  ErrorMap();
60
61
  // Insert the message for the error.  If the error already has an existing
62
  // mapping, an error is logged, but the function continues.
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
63
  void add(uint32_t error_num, const std::string &message);
1271.7.9 by Tim Penhey
Almost there.
64
65
  // If there is no error mapping for the error_num, ErrorStringNotFound is raised.
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
66
  const std::string &find(uint32_t error_num) const;
1271.7.4 by Tim Penhey
Another incremental commit.
67
68
private:
69
  // Disable copy and assignment.
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
70
  ErrorMap(const ErrorMap &e);
71
  ErrorMap& operator=(const ErrorMap &e);
1271.7.4 by Tim Penhey
Another incremental commit.
72
1429.3.1 by Monty Taylor
Use unordered_map from the upcoming c++0x standard instead of a homemade
73
  typedef unordered_map<uint32_t, std::string> ErrorMessageMap;
1271.7.4 by Tim Penhey
Another incremental commit.
74
  ErrorMessageMap mapping_;
75
};
76
77
ErrorMap& get_error_map()
78
{
79
  static ErrorMap errors;
80
  return errors;
81
}
82
83
} // anonymous namespace
1271.7.3 by Tim Penhey
Kinda changed, probably doesn't compile.
84
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
85
void add_error_message(uint32_t error_code, const std::string &message)
1271.7.9 by Tim Penhey
Almost there.
86
{
87
  get_error_map().add(error_code, message);
88
}
89
549 by Monty Taylor
Took gettext.h out of header files.
90
const char * error_message(unsigned int code)
91
{
1271.7.9 by Tim Penhey
Almost there.
92
  try
93
  {
94
    return get_error_map().find(code).c_str();
95
  }
96
  catch (ErrorStringNotFound const& e)
97
  {
98
    return get_error_map().find(ER_UNKNOWN_ERROR).c_str();
99
  }
549 by Monty Taylor
Took gettext.h out of header files.
100
}
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
101
102
error_handler_func error_handler_hook= NULL;
103
104
/*
105
  WARNING!
106
  my_error family functions have to be used according following rules:
107
  - if message have not parameters use my_message(ER_CODE, ER(ER_CODE), MYF(N))
108
  - if message registered use my_error(ER_CODE, MYF(N), ...).
109
  - With some special text of errror message use:
110
  my_printf_error(ER_CODE, format, MYF(N), ...)
111
*/
112
113
/*
114
   Error message to user
115
116
   SYNOPSIS
117
     my_error()
118
       nr	Errno
119
       MyFlags	Flags
120
       ...	variable list
121
*/
122
123
void my_error(int nr, myf MyFlags, ...)
124
{
1271.7.9 by Tim Penhey
Almost there.
125
  std::string format;
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
126
  va_list args;
127
  char ebuff[ERRMSGSIZE + 20];
128
1271.7.9 by Tim Penhey
Almost there.
129
  try
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
130
  {
1271.7.9 by Tim Penhey
Almost there.
131
    format= get_error_map().find(nr);
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
132
    va_start(args,MyFlags);
1271.7.12 by Tim Penhey
Put the gettext macro back in.
133
    (void) vsnprintf (ebuff, sizeof(ebuff), _(format.c_str()), args);
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
134
    va_end(args);
135
  }
1271.7.9 by Tim Penhey
Almost there.
136
  catch (ErrorStringNotFound const& e)
137
  {
138
    (void) snprintf (ebuff, sizeof(ebuff), _("Unknown error %d"), nr);
139
  }
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
140
  (*error_handler_hook)(nr, ebuff, MyFlags);
141
}
142
143
/*
144
  Error as printf
145
1271.5.3 by Tim Penhey
change the include files
146
         SYNOPSIS
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
147
    my_printf_error()
148
      error	Errno
149
      format	Format string
150
      MyFlags	Flags
151
      ...	variable list
152
*/
153
154
void my_printf_error(uint32_t error, const char *format, myf MyFlags, ...)
155
{
156
  va_list args;
157
  char ebuff[ERRMSGSIZE+20];
158
159
  va_start(args,MyFlags);
160
  (void) vsnprintf (ebuff, sizeof(ebuff), format, args);
161
  va_end(args);
162
  (*error_handler_hook)(error, ebuff, MyFlags);
163
  return;
164
}
165
166
/*
167
  Give message using error_handler_hook
168
169
  SYNOPSIS
170
    my_message()
171
      error	Errno
172
      str	Error message
173
      MyFlags	Flags
174
*/
175
176
void my_message(uint32_t error, const char *str, register myf MyFlags)
177
{
178
  (*error_handler_hook)(error, str, MyFlags);
179
}
180
181
1271.7.4 by Tim Penhey
Another incremental commit.
182
namespace
183
{
184
185
// Insert the message for the error.  If the error already has an existing
186
// mapping, an error is logged, but the function continues.
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
187
void ErrorMap::add(uint32_t error_num, const std::string &message)
1271.7.4 by Tim Penhey
Another incremental commit.
188
{
189
  if (mapping_.find(error_num) == mapping_.end())
190
  {
191
    // Log the error.
1271.7.9 by Tim Penhey
Almost there.
192
    mapping_[error_num]= message;
1271.7.4 by Tim Penhey
Another incremental commit.
193
  }
194
  else
195
  {
196
    mapping_.insert(ErrorMessageMap::value_type(error_num, message));
197
  }
198
}
199
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
200
const std::string &ErrorMap::find(uint32_t error_num) const
1271.7.4 by Tim Penhey
Another incremental commit.
201
{
202
  ErrorMessageMap::const_iterator pos= mapping_.find(error_num);
203
  if (pos == mapping_.end())
204
  {
1271.7.9 by Tim Penhey
Almost there.
205
    throw ErrorStringNotFound(error_num);
1271.7.4 by Tim Penhey
Another incremental commit.
206
  }
207
  return pos->second;
208
}
209
210
211
// Constructor sets the default mappings.
212
ErrorMap::ErrorMap()
213
{
214
  add(ER_NO, N_("NO"));
215
  add(ER_YES, N_("YES"));
216
  add(ER_CANT_CREATE_FILE, N_("Can't create file '%-.200s' (errno: %d)"));
217
  add(ER_CANT_CREATE_TABLE, N_("Can't create table '%-.200s' (errno: %d)"));
218
  add(ER_CANT_CREATE_DB, N_("Can't create database '%-.192s' (errno: %d)"));
219
  add(ER_DB_CREATE_EXISTS, N_("Can't create database '%-.192s'; database exists"));
220
  add(ER_DB_DROP_EXISTS, N_("Can't drop database '%-.192s'; database doesn't exist"));
221
  add(ER_DB_DROP_DELETE, N_("Error dropping database (can't delete '%-.192s', errno: %d)"));
222
  add(ER_DB_DROP_RMDIR, N_("Error dropping database (can't rmdir '%-.192s', errno: %d)"));
223
  add(ER_CANT_DELETE_FILE, N_("Error on delete of '%-.192s' (errno: %d)"));
224
  add(ER_CANT_FIND_SYSTEM_REC, N_("Can't read record in system table"));
225
  add(ER_CANT_GET_STAT, N_("Can't get status of '%-.200s' (errno: %d)"));
226
  add(ER_CANT_GET_WD, N_("Can't get working directory (errno: %d)"));
227
  add(ER_CANT_LOCK, N_("Can't lock file (errno: %d)"));
228
  add(ER_CANT_OPEN_FILE, N_("Can't open file: '%-.200s' (errno: %d)"));
229
  add(ER_FILE_NOT_FOUND, N_("Can't find file: '%-.200s' (errno: %d)"));
230
  add(ER_CANT_READ_DIR, N_("Can't read dir of '%-.192s' (errno: %d)"));
231
  add(ER_CANT_SET_WD, N_("Can't change dir to '%-.192s' (errno: %d)"));
232
  add(ER_CHECKREAD, N_("Record has changed since last read in table '%-.192s'"));
233
  add(ER_DISK_FULL, N_("Disk full (%s); waiting for someone to free some space..."));
234
  add(ER_DUP_KEY, N_("Can't write; duplicate key in table '%-.192s'"));
235
  add(ER_ERROR_ON_CLOSE, N_("Error on close of '%-.192s' (errno: %d)"));
236
  add(ER_ERROR_ON_READ, N_("Error reading file '%-.200s' (errno: %d)"));
237
  add(ER_ERROR_ON_RENAME, N_("Error on rename of '%-.150s' to '%-.150s' (errno: %d)"));
238
  add(ER_ERROR_ON_WRITE, N_("Error writing file '%-.200s' (errno: %d)"));
239
  add(ER_FILE_USED, N_("'%-.192s' is locked against change"));
240
  add(ER_FILSORT_ABORT, N_("Sort aborted"));
241
  add(ER_FORM_NOT_FOUND, N_("View '%-.192s' doesn't exist for '%-.192s'"));
242
  add(ER_GET_ERRNO, N_("Got error %d from storage engine"));
243
  add(ER_ILLEGAL_HA, N_("Table storage engine for '%-.192s' doesn't have this option"));
244
  add(ER_KEY_NOT_FOUND, N_("Can't find record in '%-.192s'"));
245
  add(ER_NOT_FORM_FILE, N_("Incorrect information in file: '%-.200s'"));
246
  add(ER_NOT_KEYFILE, N_("Incorrect key file for table '%-.200s'; try to repair it"));
247
  add(ER_OLD_KEYFILE, N_("Old key file for table '%-.192s'; repair it!"));
248
  add(ER_OPEN_AS_READONLY, N_("Table '%-.192s' is read only"));
249
  add(ER_OUTOFMEMORY, N_("Out of memory; restart server and try again (needed %lu bytes)"));
250
  add(ER_OUT_OF_SORTMEMORY, N_("Out of sort memory; increase server sort buffer size"));
251
  add(ER_UNEXPECTED_EOF, N_("Unexpected EOF found when reading file '%-.192s' (errno: %d)"));
252
  add(ER_CON_COUNT_ERROR, N_("Too many connections"));
253
  add(ER_OUT_OF_RESOURCES, N_("Out of memory; check if drizzled or some other process uses all available memory; if not, you may have to use 'ulimit' to allow drizzled to use more memory or you can add more swap space"));
254
  add(ER_BAD_HOST_ERROR, N_("Can't get hostname for your address"));
255
  add(ER_HANDSHAKE_ERROR, N_("Bad handshake"));
256
  add(ER_DBACCESS_DENIED_ERROR, N_("Access denied for user '%-.48s'@'%-.64s' to database '%-.192s'"));
257
  add(ER_ACCESS_DENIED_ERROR, N_("Access denied for user '%-.48s'@'%-.64s' (using password: %s)"));
258
  add(ER_NO_DB_ERROR, N_("No database selected"));
259
  add(ER_UNKNOWN_COM_ERROR, N_("Unknown command"));
260
  add(ER_BAD_NULL_ERROR, N_("Column '%-.192s' cannot be null"));
261
  add(ER_BAD_DB_ERROR, N_("Unknown database '%-.192s'"));
262
  add(ER_TABLE_EXISTS_ERROR, N_("Table '%-.192s' already exists"));
263
  add(ER_BAD_TABLE_ERROR, N_("Unknown table '%-.100s'"));
264
  add(ER_NON_UNIQ_ERROR, N_("Column '%-.192s' in %-.192s is ambiguous"));
265
  add(ER_SERVER_SHUTDOWN, N_("Server shutdown in progress"));
266
  add(ER_BAD_FIELD_ERROR, N_("Unknown column '%-.192s' in '%-.192s'"));
267
  add(ER_WRONG_FIELD_WITH_GROUP, N_("'%-.192s' isn't in GROUP BY"));
268
  add(ER_WRONG_GROUP_FIELD, N_("Can't group on '%-.192s'"));
269
  add(ER_WRONG_SUM_SELECT, N_("Statement has sum functions and columns in same statement"));
270
  add(ER_WRONG_VALUE_COUNT, N_("Column count doesn't match value count"));
271
  add(ER_TOO_LONG_IDENT, N_("Identifier name '%-.100s' is too long"));
272
  add(ER_DUP_FIELDNAME, N_("Duplicate column name '%-.192s'"));
273
  add(ER_DUP_KEYNAME, N_("Duplicate key name '%-.192s'"));
274
  add(ER_DUP_ENTRY, N_("Duplicate entry '%-.192s' for key %d"));
275
  add(ER_WRONG_FIELD_SPEC, N_("Incorrect column specifier for column '%-.192s'"));
276
  add(ER_PARSE_ERROR, N_("%s near '%-.80s' at line %d"));
277
  add(ER_EMPTY_QUERY, N_("Query was empty"));
278
  add(ER_NONUNIQ_TABLE, N_("Not unique table/alias: '%-.192s'"));
279
  add(ER_INVALID_DEFAULT, N_("Invalid default value for '%-.192s'"));
280
  add(ER_MULTIPLE_PRI_KEY, N_("Multiple primary key defined"));
281
  add(ER_TOO_MANY_KEYS, N_("Too many keys specified; max %d keys allowed"));
282
  add(ER_TOO_MANY_KEY_PARTS, N_("Too many key parts specified; max %d parts allowed"));
283
  add(ER_TOO_LONG_KEY, N_("Specified key was too long; max key length is %d bytes"));
284
  add(ER_KEY_COLUMN_DOES_NOT_EXITS, N_("Key column '%-.192s' doesn't exist in table"));
285
  add(ER_BLOB_USED_AS_KEY, N_("BLOB column '%-.192s' can't be used in key specification with the used table type"));
286
  add(ER_TOO_BIG_FIELDLENGTH, N_("Column length too big for column '%-.192s' (max = %d); use BLOB or TEXT instead"));
287
  add(ER_WRONG_AUTO_KEY, N_("Incorrect table definition; there can be only one auto column and it must be defined as a key"));
288
  add(ER_READY, N_("%s: ready for connections.\nVersion: '%s'  socket: '%s'  port: %u\n"));
289
  add(ER_NORMAL_SHUTDOWN, N_("%s: Normal shutdown\n"));
290
  add(ER_GOT_SIGNAL, N_("%s: Got signal %d. Aborting!\n"));
291
  add(ER_SHUTDOWN_COMPLETE, N_("%s: Shutdown complete\n"));
292
  add(ER_FORCING_CLOSE, N_("%s: Forcing close of thread %" PRIu64 " user: '%-.48s'\n"));
293
  add(ER_IPSOCK_ERROR, N_("Can't create IP socket"));
294
  add(ER_NO_SUCH_INDEX, N_("Table '%-.192s' has no index like the one used in CREATE INDEX; recreate the table"));
295
  add(ER_WRONG_FIELD_TERMINATORS, N_("Field separator argument '%-.32s' with length '%d' is not what is expected; check the manual"));
296
  add(ER_BLOBS_AND_NO_TERMINATED, N_("You can't use fixed rowlength with BLOBs; please use 'fields terminated by'"));
297
  add(ER_TEXTFILE_NOT_READABLE, N_("The file '%-.128s' must be in the database directory or be readable by all"));
298
  add(ER_FILE_EXISTS_ERROR, N_("File '%-.200s' already exists"));
299
  add(ER_LOAD_INFO, N_("Records: %ld  Deleted: %ld  Skipped: %ld  Warnings: %ld"));
300
  add(ER_ALTER_INFO, N_("Records: %ld  Duplicates: %ld"));
301
  add(ER_WRONG_SUB_KEY, N_("Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys"));
302
  add(ER_CANT_REMOVE_ALL_FIELDS, N_("You can't delete all columns with ALTER TABLE; use DROP TABLE instead"));
303
  add(ER_CANT_DROP_FIELD_OR_KEY, N_("Can't DROP '%-.192s'; check that column/key exists"));
304
  add(ER_INSERT_INFO, N_("Records: %ld  Duplicates: %ld  Warnings: %ld"));
305
  add(ER_UPDATE_TABLE_USED, N_("You can't specify target table '%-.192s' for update in FROM clause"));
306
  add(ER_NO_SUCH_THREAD, N_("Unknown thread id: %lu"));
307
  add(ER_KILL_DENIED_ERROR, N_("You are not owner of thread %lu"));
308
  add(ER_NO_TABLES_USED, N_("No tables used"));
309
  add(ER_TOO_BIG_SET, N_("Too many strings for column %-.192s and SET"));
310
  add(ER_NO_UNIQUE_LOGFILE, N_("Can't generate a unique log-filename %-.200s.(1-999)\n"));
311
  add(ER_TABLE_NOT_LOCKED_FOR_WRITE, N_("Table '%-.192s' was locked with a READ lock and can't be updated"));
312
  add(ER_TABLE_NOT_LOCKED, N_("Table '%-.192s' was not locked with LOCK TABLES"));
313
  add(ER_BLOB_CANT_HAVE_DEFAULT, N_("BLOB/TEXT column '%-.192s' can't have a default value"));
314
  add(ER_WRONG_DB_NAME, N_("Incorrect database name '%-.100s'"));
315
  add(ER_WRONG_TABLE_NAME, N_("Incorrect table name '%-.100s'"));
316
  add(ER_TOO_BIG_SELECT, N_("The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay"));
317
  add(ER_UNKNOWN_ERROR, N_("Unknown error"));
318
  add(ER_UNKNOWN_PROCEDURE, N_("Unknown procedure '%-.192s'"));
319
  add(ER_WRONG_PARAMCOUNT_TO_PROCEDURE, N_("Incorrect parameter count to procedure '%-.192s'"));
320
  add(ER_WRONG_PARAMETERS_TO_PROCEDURE, N_("Incorrect parameters to procedure '%-.192s'"));
321
  add(ER_UNKNOWN_TABLE, N_("Unknown table '%-.192s' in %-.32s"));
322
  add(ER_FIELD_SPECIFIED_TWICE, N_("Column '%-.192s' specified twice"));
323
  add(ER_INVALID_GROUP_FUNC_USE, N_("Invalid use of group function"));
324
  add(ER_UNSUPPORTED_EXTENSION, N_("Table '%-.192s' uses an extension that doesn't exist in this Drizzle version"));
325
  add(ER_TABLE_MUST_HAVE_COLUMNS, N_("A table must have at least 1 column"));
326
  add(ER_RECORD_FILE_FULL, N_("The table '%-.192s' is full"));
327
  add(ER_UNKNOWN_CHARACTER_SET, N_("Unknown character set: '%-.64s'"));
328
  add(ER_TOO_MANY_TABLES, N_("Too many tables; Drizzle can only use %d tables in a join"));
329
  add(ER_TOO_MANY_FIELDS, N_("Too many columns"));
330
  add(ER_TOO_BIG_ROWSIZE, N_("Row size too large. The maximum row size for the used table type, not counting BLOBs, is %ld. You have to change some columns to TEXT or BLOBs"));
331
  add(ER_STACK_OVERRUN, N_("Thread stack overrun:  Used: %ld of a %ld stack.  Use 'drizzled -O thread_stack=#' to specify a bigger stack if needed"));
332
  add(ER_WRONG_OUTER_JOIN, N_("Cross dependency found in OUTER JOIN; examine your ON conditions"));
333
  add(ER_NULL_COLUMN_IN_INDEX, N_("Table handler doesn't support NULL in given index. Please change column '%-.192s' to be NOT NULL or use another handler"));
334
  add(ER_CANT_FIND_UDF, N_("Can't load function '%-.192s'"));
335
  add(ER_CANT_INITIALIZE_UDF, N_("Can't initialize function '%-.192s'; %-.80s"));
336
  add(ER_PLUGIN_NO_PATHS, N_("No paths allowed for plugin library"));
1271.7.9 by Tim Penhey
Almost there.
337
  add(ER_PLUGIN_EXISTS, N_("Plugin '%-.192s' already exists"));
1271.7.4 by Tim Penhey
Another incremental commit.
338
  add(ER_CANT_OPEN_LIBRARY, N_("Can't open shared library '%-.192s' (errno: %d %-.128s)"));
339
  add(ER_CANT_FIND_DL_ENTRY, N_("Can't find symbol '%-.128s' in library '%-.128s'"));
340
  add(ER_FUNCTION_NOT_DEFINED, N_("Function '%-.192s' is not defined"));
341
  add(ER_HOST_IS_BLOCKED, N_("Host '%-.64s' is blocked because of many connection errors; unblock with 'drizzleadmin flush-hosts'"));
342
  add(ER_HOST_NOT_PRIVILEGED, N_("Host '%-.64s' is not allowed to connect to this Drizzle server"));
343
  add(ER_PASSWORD_ANONYMOUS_USER, N_("You are using Drizzle as an anonymous user and anonymous users are not allowed to change passwords"));
344
  add(ER_PASSWORD_NOT_ALLOWED, N_("You must have privileges to update tables in the drizzle database to be able to change passwords for others"));
345
  add(ER_PASSWORD_NO_MATCH, N_("Can't find any matching row in the user table"));
346
  add(ER_UPDATE_INFO, N_("Rows matched: %ld  Changed: %ld  Warnings: %ld"));
347
  add(ER_CANT_CREATE_THREAD, N_("Can't create a new thread (errno %d); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug"));
348
  add(ER_WRONG_VALUE_COUNT_ON_ROW, N_("Column count doesn't match value count at row %ld"));
349
  add(ER_CANT_REOPEN_TABLE, N_("Can't reopen table: '%-.192s'"));
350
  add(ER_INVALID_USE_OF_NULL, N_("Invalid use of NULL value"));
351
  add(ER_REGEXP_ERROR, N_("Got error '%-.64s' from regexp"));
352
  add(ER_MIX_OF_GROUP_FUNC_AND_FIELDS, N_("Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause"));
353
  add(ER_NONEXISTING_GRANT, N_("There is no such grant defined for user '%-.48s' on host '%-.64s'"));
354
  add(ER_TABLEACCESS_DENIED_ERROR, N_("%-.16s command denied to user '%-.48s'@'%-.64s' for table '%-.192s'"));
355
  add(ER_COLUMNACCESS_DENIED_ERROR, N_("%-.16s command denied to user '%-.48s'@'%-.64s' for column '%-.192s' in table '%-.192s'"));
356
  add(ER_ILLEGAL_GRANT_FOR_TABLE, N_("Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used"));
357
  add(ER_GRANT_WRONG_HOST_OR_USER, N_("The host or user argument to GRANT is too long"));
358
  add(ER_NO_SUCH_TABLE, N_("Table '%-.192s.%-.192s' doesn't exist"));
359
  add(ER_NONEXISTING_TABLE_GRANT, N_("There is no such grant defined for user '%-.48s' on host '%-.64s' on table '%-.192s'"));
360
  add(ER_NOT_ALLOWED_COMMAND, N_("The used command is not allowed with this Drizzle version"));
361
  add(ER_SYNTAX_ERROR, N_("You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use"));
362
  add(ER_DELAYED_CANT_CHANGE_LOCK, N_("Delayed insert thread couldn't get requested lock for table %-.192s"));
363
  add(ER_TOO_MANY_DELAYED_THREADS, N_("Too many delayed threads in use"));
364
  add(ER_ABORTING_CONNECTION, N_("Aborted connection %ld to db: '%-.192s' user: '%-.48s' (%-.64s)"));
365
  add(ER_NET_PACKET_TOO_LARGE, N_("Got a packet bigger than 'max_allowed_packet' bytes"));
366
  add(ER_NET_READ_ERROR_FROM_PIPE, N_("Got a read error from the connection pipe"));
367
  add(ER_NET_FCNTL_ERROR, N_("Got an error from fcntl()"));
368
  add(ER_NET_PACKETS_OUT_OF_ORDER, N_("Got packets out of order"));
369
  add(ER_NET_UNCOMPRESS_ERROR, N_("Couldn't uncompress communication packet"));
370
  add(ER_NET_READ_ERROR, N_("Got an error reading communication packets"));
371
  add(ER_NET_READ_INTERRUPTED, N_("Got timeout reading communication packets"));
372
  add(ER_NET_ERROR_ON_WRITE, N_("Got an error writing communication packets"));
373
  add(ER_NET_WRITE_INTERRUPTED, N_("Got timeout writing communication packets"));
374
  add(ER_TOO_LONG_STRING, N_("Result string is longer than 'max_allowed_packet' bytes"));
375
  add(ER_TABLE_CANT_HANDLE_BLOB, N_("The used table type doesn't support BLOB/TEXT columns"));
376
  add(ER_TABLE_CANT_HANDLE_AUTO_INCREMENT, N_("The used table type doesn't support AUTO_INCREMENT columns"));
377
  add(ER_DELAYED_INSERT_TABLE_LOCKED, N_("INSERT DELAYED can't be used with table '%-.192s' because it is locked with LOCK TABLES"));
378
  add(ER_WRONG_COLUMN_NAME, N_("Incorrect column name '%-.100s'"));
379
  add(ER_WRONG_KEY_COLUMN, N_("The used storage engine can't index column '%-.192s'"));
380
  add(ER_WRONG_MRG_TABLE, N_("Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist"));
381
  add(ER_DUP_UNIQUE, N_("Can't write, because of unique constraint, to table '%-.192s'"));
382
  add(ER_BLOB_KEY_WITHOUT_LENGTH, N_("BLOB/TEXT column '%-.192s' used in key specification without a key length"));
383
  add(ER_PRIMARY_CANT_HAVE_NULL, N_("All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead"));
384
  add(ER_TOO_MANY_ROWS, N_("Result consisted of more than one row"));
385
  add(ER_REQUIRES_PRIMARY_KEY, N_("This table type requires a primary key"));
386
  add(ER_NO_RAID_COMPILED, N_("This version of Drizzle is not compiled with RAID support"));
387
  add(ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE, N_("You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column"));
388
  add(ER_KEY_DOES_NOT_EXITS, N_("Key '%-.192s' doesn't exist in table '%-.192s'"));
389
  add(ER_CHECK_NO_SUCH_TABLE, N_("Can't open table"));
390
  add(ER_CHECK_NOT_IMPLEMENTED, N_("The storage engine for the table doesn't support %s"));
391
  add(ER_CANT_DO_THIS_DURING_AN_TRANSACTION, N_("You are not allowed to execute this command in a transaction"));
392
  add(ER_ERROR_DURING_COMMIT, N_("Got error %d during COMMIT"));
393
  add(ER_ERROR_DURING_ROLLBACK, N_("Got error %d during ROLLBACK"));
394
  add(ER_ERROR_DURING_FLUSH_LOGS, N_("Got error %d during FLUSH_LOGS"));
395
  add(ER_ERROR_DURING_CHECKPOINT, N_("Got error %d during CHECKPOINT"));
396
  // This is a very incorrect place to use the PRIi64 macro as the
397
  // program that looks over the source for the N_() macros does not
398
  // (obviously) do macro expansion, so the string is entirely wrong for
399
  // what it is trying to output for every language except english.
400
  add(ER_NEW_ABORTING_CONNECTION, N_("Aborted connection %"PRIi64" to db: '%-.192s' user: '%-.48s' host: '%-.64s' (%-.64s)"));
401
  add(ER_DUMP_NOT_IMPLEMENTED, N_("The storage engine for the table does not support binary table dump"));
402
  add(ER_FLUSH_MASTER_BINLOG_CLOSED, N_("Binlog closed, cannot RESET MASTER"));
403
  add(ER_INDEX_REBUILD, N_("Failed rebuilding the index of  dumped table '%-.192s'"));
404
  add(ER_MASTER, N_("Error from master: '%-.64s'"));
405
  add(ER_MASTER_NET_READ, N_("Net error reading from master"));
406
  add(ER_MASTER_NET_WRITE, N_("Net error writing to master"));
407
  add(ER_FT_MATCHING_KEY_NOT_FOUND, N_("Can't find FULLTEXT index matching the column list"));
408
  add(ER_LOCK_OR_ACTIVE_TRANSACTION, N_("Can't execute the given command because you have active locked tables or an active transaction"));
409
  add(ER_UNKNOWN_SYSTEM_VARIABLE, N_("Unknown system variable '%-.64s'"));
410
  add(ER_CRASHED_ON_USAGE, N_("Table '%-.192s' is marked as crashed and should be repaired"));
411
  add(ER_CRASHED_ON_REPAIR, N_("Table '%-.192s' is marked as crashed and last (automatic?) repair failed"));
412
  add(ER_WARNING_NOT_COMPLETE_ROLLBACK, N_("Some non-transactional changed tables couldn't be rolled back"));
413
  add(ER_TRANS_CACHE_FULL, N_("Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this drizzled variable and try again"));
414
  add(ER_SLAVE_MUST_STOP, N_("This operation cannot be performed with a running slave; run STOP SLAVE first"));
415
  add(ER_SLAVE_NOT_RUNNING, N_("This operation requires a running slave; configure slave and do START SLAVE"));
416
  add(ER_BAD_SLAVE, N_("The server is not configured as slave; fix with CHANGE MASTER TO"));
417
  add(ER_MASTER_INFO, N_("Could not initialize master info structure; more error messages can be found in the Drizzle error log"));
418
  add(ER_SLAVE_THREAD, N_("Could not create slave thread; check system resources"));
419
  add(ER_TOO_MANY_USER_CONNECTIONS, N_("User %-.64s already has more than 'max_user_connections' active connections"));
420
  add(ER_SET_CONSTANTS_ONLY, N_("You may only use constant expressions with SET"));
421
  add(ER_LOCK_WAIT_TIMEOUT, N_("Lock wait timeout exceeded; try restarting transaction"));
422
  add(ER_LOCK_TABLE_FULL, N_("The total number of locks exceeds the lock table size"));
423
  add(ER_READ_ONLY_TRANSACTION, N_("Update locks cannot be acquired during a READ UNCOMMITTED transaction"));
424
  add(ER_DROP_DB_WITH_READ_LOCK, N_("DROP DATABASE not allowed while thread is holding global read lock"));
425
  add(ER_CREATE_DB_WITH_READ_LOCK, N_("CREATE DATABASE not allowed while thread is holding global read lock"));
426
  add(ER_WRONG_ARGUMENTS, N_("Incorrect arguments to %s"));
427
  add(ER_NO_PERMISSION_TO_CREATE_USER, N_("'%-.48s'@'%-.64s' is not allowed to create new users"));
428
  add(ER_UNION_TABLES_IN_DIFFERENT_DIR, N_("Incorrect table definition; all MERGE tables must be in the same database"));
429
  add(ER_LOCK_DEADLOCK, N_("Deadlock found when trying to get lock; try restarting transaction"));
430
  add(ER_TABLE_CANT_HANDLE_FT, N_("The used table type doesn't support FULLTEXT indexes"));
431
  add(ER_CANNOT_ADD_FOREIGN, N_("Cannot add foreign key constraint"));
432
  add(ER_NO_REFERENCED_ROW, N_("Cannot add or update a child row: a foreign key constraint fails"));
433
  add(ER_ROW_IS_REFERENCED, N_("Cannot delete or update a parent row: a foreign key constraint fails"));
434
  add(ER_CONNECT_TO_MASTER, N_("Error connecting to master: %-.128s"));
435
  add(ER_QUERY_ON_MASTER, N_("Error running query on master: %-.128s"));
436
  add(ER_ERROR_WHEN_EXECUTING_COMMAND, N_("Error when executing command %s: %-.128s"));
437
  add(ER_WRONG_USAGE, N_("Incorrect usage of %s and %s"));
438
  add(ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT, N_("The used SELECT statements have a different number of columns"));
439
  add(ER_CANT_UPDATE_WITH_READLOCK, N_("Can't execute the query because you have a conflicting read lock"));
440
  add(ER_MIXING_NOT_ALLOWED, N_("Mixing of transactional and non-transactional tables is disabled"));
441
  add(ER_DUP_ARGUMENT, N_("Option '%s' used twice in statement"));
442
  add(ER_USER_LIMIT_REACHED, N_("User '%-.64s' has exceeded the '%s' resource (current value: %ld)"));
443
  add(ER_SPECIFIC_ACCESS_DENIED_ERROR, N_("Access denied; you need the %-.128s privilege for this operation"));
444
  add(ER_LOCAL_VARIABLE, N_("Variable '%-.64s' is a SESSION variable and can't be used with SET GLOBAL"));
445
  add(ER_GLOBAL_VARIABLE, N_("Variable '%-.64s' is a GLOBAL variable and should be set with SET GLOBAL"));
446
  add(ER_NO_DEFAULT, N_("Variable '%-.64s' doesn't have a default value"));
447
  add(ER_WRONG_VALUE_FOR_VAR, N_("Variable '%-.64s' can't be set to the value of '%-.200s'"));
448
  add(ER_WRONG_TYPE_FOR_VAR, N_("Incorrect argument type to variable '%-.64s'"));
449
  add(ER_VAR_CANT_BE_READ, N_("Variable '%-.64s' can only be set, not read"));
450
  add(ER_CANT_USE_OPTION_HERE, N_("Incorrect usage/placement of '%s'"));
451
  add(ER_NOT_SUPPORTED_YET, N_("This version of Drizzle doesn't yet support '%s'"));
452
  add(ER_MASTER_FATAL_ERROR_READING_BINLOG, N_("Got fatal error %d: '%-.128s' from master when reading data from binary log"));
453
  add(ER_SLAVE_IGNORED_TABLE, N_("Slave SQL thread ignored the query because of replicate-*-table rules"));
454
  add(ER_INCORRECT_GLOBAL_LOCAL_VAR, N_("Variable '%-.192s' is a %s variable"));
455
  add(ER_WRONG_FK_DEF, N_("Incorrect foreign key definition for '%-.192s': %s"));
456
  add(ER_KEY_REF_DO_NOT_MATCH_TABLE_REF, N_("Key reference and table reference don't match"));
457
  add(ER_OPERAND_COLUMNS, N_("Operand should contain %d column(s)"));
458
  add(ER_SUBQUERY_NO_1_ROW, N_("Subquery returns more than 1 row"));
459
  add(ER_UNKNOWN_STMT_HANDLER, N_("Unknown prepared statement handler (%.*s) given to %s"));
460
  add(ER_CORRUPT_HELP_DB, N_("Help database is corrupt or does not exist"));
461
  add(ER_CYCLIC_REFERENCE, N_("Cyclic reference on subqueries"));
462
  add(ER_AUTO_CONVERT, N_("Converting column '%s' from %s to %s"));
463
  add(ER_ILLEGAL_REFERENCE, N_("Reference '%-.64s' not supported (%s)"));
464
  add(ER_DERIVED_MUST_HAVE_ALIAS, N_("Every derived table must have its own alias"));
465
  add(ER_SELECT_REDUCED, N_("Select %u was reduced during optimization"));
466
  add(ER_TABLENAME_NOT_ALLOWED_HERE, N_("Table '%-.192s' from one of the SELECTs cannot be used in %-.32s"));
467
  add(ER_NOT_SUPPORTED_AUTH_MODE, N_("Client does not support authentication protocol requested by server; consider upgrading Drizzle client"));
468
  add(ER_SPATIAL_CANT_HAVE_NULL, N_("All parts of a SPATIAL index must be NOT NULL"));
469
  add(ER_COLLATION_CHARSET_MISMATCH, N_("COLLATION '%s' is not valid for CHARACTER SET '%s'"));
470
  add(ER_SLAVE_WAS_RUNNING, N_("Slave is already running"));
471
  add(ER_SLAVE_WAS_NOT_RUNNING, N_("Slave already has been stopped"));
1570 by Brian Aker
Clean up message for compression failure.
472
  add(ER_TOO_BIG_FOR_UNCOMPRESS, N_("Uncompressed data size too large; the maximum size is %d (based on max_allowed_packet). The length of uncompressed data may also be corrupted."));
1271.7.4 by Tim Penhey
Another incremental commit.
473
  add(ER_ZLIB_Z_MEM_ERROR, N_("ZLIB: Not enough memory"));
474
  add(ER_ZLIB_Z_BUF_ERROR, N_("ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)"));
475
  add(ER_ZLIB_Z_DATA_ERROR, N_("ZLIB: Input data corrupted"));
476
  add(ER_CUT_VALUE_GROUP_CONCAT, N_("%d line(s) were cut by GROUP_CONCAT()"));
477
  add(ER_WARN_TOO_FEW_RECORDS, N_("Row %ld doesn't contain data for all columns"));
478
  add(ER_WARN_TOO_MANY_RECORDS, N_("Row %ld was truncated; it contained more data than there were input columns"));
479
  add(ER_WARN_NULL_TO_NOTNULL, N_("Column set to default value; NULL supplied to NOT NULL column '%s' at row %ld"));
480
  add(ER_WARN_DATA_OUT_OF_RANGE, N_("Out of range value for column '%s' at row %ld"));
1271.7.9 by Tim Penhey
Almost there.
481
  add(ER_WARN_DATA_TRUNCATED, N_("Data truncated for column '%s' at row %ld"));
1271.7.4 by Tim Penhey
Another incremental commit.
482
  add(ER_WARN_USING_OTHER_HANDLER, N_("Using storage engine %s for table '%s'"));
483
  add(ER_CANT_AGGREGATE_2COLLATIONS, N_("Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'"));
484
  add(ER_DROP_USER, N_("Cannot drop one or more of the requested users"));
485
  add(ER_REVOKE_GRANTS, N_("Can't revoke all privileges for one or more of the requested users"));
486
  add(ER_CANT_AGGREGATE_3COLLATIONS, N_("Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation '%s'"));
487
  add(ER_CANT_AGGREGATE_NCOLLATIONS, N_("Illegal mix of collations for operation '%s'"));
488
  add(ER_VARIABLE_IS_NOT_STRUCT, N_("Variable '%-.64s' is not a variable component (can't be used as XXXX.variable_name)"));
489
  add(ER_UNKNOWN_COLLATION, N_("Unknown collation: '%-.64s'"));
490
  add(ER_SLAVE_IGNORED_SSL_PARAMS, N_("SSL parameters in CHANGE MASTER are ignored because this Drizzle slave was compiled without SSL support; they can be used later if Drizzle slave with SSL is started"));
491
  add(ER_SERVER_IS_IN_SECURE_AUTH_MODE, N_("Server is running in --secure-auth mode, but '%s'@'%s' has a password in the old format; please change the password to the new format"));
492
  add(ER_WARN_FIELD_RESOLVED, N_("Field or reference '%-.192s%s%-.192s%s%-.192s' of SELECT #%d was resolved in SELECT #%d"));
493
  add(ER_BAD_SLAVE_UNTIL_COND, N_("Incorrect parameter or combination of parameters for START SLAVE UNTIL"));
494
  add(ER_MISSING_SKIP_SLAVE, N_("It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's drizzled restart"));
495
  add(ER_UNTIL_COND_IGNORED, N_("SQL thread is not to be started so UNTIL options are ignored"));
496
  add(ER_WRONG_NAME_FOR_INDEX, N_("Incorrect index name '%-.100s'"));
497
  add(ER_WRONG_NAME_FOR_CATALOG, N_("Incorrect catalog name '%-.100s'"));
498
  add(ER_WARN_QC_RESIZE, N_("Query cache failed to set size %lu; new query cache size is %lu"));
499
  add(ER_BAD_FT_COLUMN, N_("Column '%-.192s' cannot be part of FULLTEXT index"));
500
  add(ER_UNKNOWN_KEY_CACHE, N_("Unknown key cache '%-.100s'"));
501
  add(ER_WARN_HOSTNAME_WONT_WORK, N_("Drizzle is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work"));
502
  add(ER_UNKNOWN_STORAGE_ENGINE, N_("Unknown table engine '%s'"));
503
  add(ER_WARN_DEPRECATED_SYNTAX, N_("'%s' is deprecated; use '%s' instead"));
504
  add(ER_NON_UPDATABLE_TABLE, N_("The target table %-.100s of the %s is not updatable"));
505
  add(ER_FEATURE_DISABLED, N_("The '%s' feature is disabled; you need Drizzle built with '%s' to have it working"));
506
  add(ER_OPTION_PREVENTS_STATEMENT, N_("The Drizzle server is running with the %s option so it cannot execute this statement"));
507
  add(ER_DUPLICATED_VALUE_IN_TYPE, N_("Column '%-.100s' has duplicated value '%-.64s' in %s"));
508
  add(ER_TRUNCATED_WRONG_VALUE, N_("Truncated incorrect %-.32s value: '%-.128s'"));
509
  add(ER_TOO_MUCH_AUTO_TIMESTAMP_COLS, N_("Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause"));
510
  add(ER_INVALID_ON_UPDATE, N_("Invalid ON UPDATE clause for '%-.192s' column"));
511
  add(ER_UNSUPPORTED_PS, N_("This command is not supported in the prepared statement protocol yet"));
512
  add(ER_GET_ERRMSG, N_("Got error %d '%-.100s' from %s"));
513
  add(ER_GET_TEMPORARY_ERRMSG, N_("Got temporary error %d '%-.100s' from %s"));
514
  add(ER_UNKNOWN_TIME_ZONE, N_("Unknown or incorrect time zone: '%-.64s'"));
515
  add(ER_WARN_INVALID_TIMESTAMP, N_("Invalid TIMESTAMP value in column '%s' at row %ld"));
516
  add(ER_INVALID_CHARACTER_STRING, N_("Invalid %s character string: '%.64s'"));
517
  add(ER_WARN_ALLOWED_PACKET_OVERFLOWED, N_("Result of %s() was larger than max_allowed_packet (%ld) - truncated"));
518
  add(ER_CONFLICTING_DECLARATIONS, N_("Conflicting declarations: '%s%s' and '%s%s'"));
519
  add(ER_SP_NO_RECURSIVE_CREATE, N_("Can't create a %s from within another stored routine"));
520
  add(ER_SP_ALREADY_EXISTS, N_("%s %s already exists"));
521
  add(ER_SP_DOES_NOT_EXIST, N_("%s %s does not exist"));
522
  add(ER_SP_DROP_FAILED, N_("Failed to DROP %s %s"));
523
  add(ER_SP_STORE_FAILED, N_("Failed to CREATE %s %s"));
524
  add(ER_SP_LILABEL_MISMATCH, N_("%s with no matching label: %s"));
525
  add(ER_SP_LABEL_REDEFINE, N_("Redefining label %s"));
526
  add(ER_SP_LABEL_MISMATCH, N_("End-label %s without match"));
527
  add(ER_SP_UNINIT_VAR, N_("Referring to uninitialized variable %s"));
528
  add(ER_SP_BADSELECT, N_("PROCEDURE %s can't return a result set in the given context"));
529
  add(ER_SP_BADRETURN, N_("RETURN is only allowed in a FUNCTION"));
530
  add(ER_SP_BADSTATEMENT, N_("%s is not allowed in stored procedures"));
531
  add(ER_UPDATE_LOG_DEPRECATED_IGNORED, N_("The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored"));
532
  add(ER_UPDATE_LOG_DEPRECATED_TRANSLATED, N_("The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN"));
533
  add(ER_QUERY_INTERRUPTED, N_("Query execution was interrupted"));
534
  add(ER_SP_WRONG_NO_OF_ARGS, N_("Incorrect number of arguments for %s %s; expected %u, got %u"));
535
  add(ER_SP_COND_MISMATCH, N_("Undefined CONDITION: %s"));
536
  add(ER_SP_NORETURN, N_("No RETURN found in FUNCTION %s"));
537
  add(ER_SP_NORETURNEND, N_("FUNCTION %s ended without RETURN"));
538
  add(ER_SP_BAD_CURSOR_QUERY, N_("Cursor statement must be a SELECT"));
539
  add(ER_SP_BAD_CURSOR_SELECT, N_("Cursor SELECT must not have INTO"));
540
  add(ER_SP_CURSOR_MISMATCH, N_("Undefined CURSOR: %s"));
541
  add(ER_SP_CURSOR_ALREADY_OPEN, N_("Cursor is already open"));
542
  add(ER_SP_CURSOR_NOT_OPEN, N_("Cursor is not open"));
543
  add(ER_SP_UNDECLARED_VAR, N_("Undeclared variable: %s"));
544
  add(ER_SP_WRONG_NO_OF_FETCH_ARGS, N_("Incorrect number of FETCH variables"));
545
  add(ER_SP_FETCH_NO_DATA, N_("No data - zero rows fetched, selected, or processed"));
546
  add(ER_SP_DUP_PARAM, N_("Duplicate parameter: %s"));
547
  add(ER_SP_DUP_VAR, N_("Duplicate variable: %s"));
548
  add(ER_SP_DUP_COND, N_("Duplicate condition: %s"));
549
  add(ER_SP_DUP_CURS, N_("Duplicate cursor: %s"));
550
  add(ER_SP_CANT_ALTER, N_("Failed to ALTER %s %s"));
551
  add(ER_SP_SUBSELECT_NYI, N_("Subquery value not supported"));
552
  add(ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG, N_("%s is not allowed in stored function or trigger"));
553
  add(ER_SP_VARCOND_AFTER_CURSHNDLR, N_("Variable or condition declaration after cursor or handler declaration"));
554
  add(ER_SP_CURSOR_AFTER_HANDLER, N_("Cursor declaration after handler declaration"));
555
  add(ER_SP_CASE_NOT_FOUND, N_("Case not found for CASE statement"));
556
  add(ER_FPARSER_TOO_BIG_FILE, N_("Configuration file '%-.192s' is too big"));
557
  add(ER_FPARSER_BAD_HEADER, N_("Malformed file type header in file '%-.192s'"));
558
  add(ER_FPARSER_EOF_IN_COMMENT, N_("Unexpected end of file while parsing comment '%-.200s'"));
559
  add(ER_FPARSER_ERROR_IN_PARAMETER, N_("Error while parsing parameter '%-.192s' (line: '%-.192s')"));
560
  add(ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER, N_("Unexpected end of file while skipping unknown parameter '%-.192s'"));
561
  add(ER_VIEW_NO_EXPLAIN, N_("EXPLAIN/SHOW can not be issued; lacking privileges for underlying table"));
562
  add(ER_WRONG_OBJECT, N_("'%-.192s.%-.192s' is not %s"));
563
  add(ER_NONUPDATEABLE_COLUMN, N_("Column '%-.192s' is not updatable"));
564
  add(ER_VIEW_SELECT_DERIVED, N_("View's SELECT contains a subquery in the FROM clause"));
565
  add(ER_VIEW_SELECT_CLAUSE, N_("View's SELECT contains a '%s' clause"));
566
  add(ER_VIEW_SELECT_VARIABLE, N_("View's SELECT contains a variable or parameter"));
567
  add(ER_VIEW_SELECT_TMPTABLE, N_("View's SELECT refers to a temporary table '%-.192s'"));
568
  add(ER_VIEW_WRONG_LIST, N_("View's SELECT and view's field list have different column counts"));
569
  add(ER_WARN_VIEW_MERGE, N_("View merge algorithm can't be used here for now (assumed undefined algorithm)"));
570
  add(ER_WARN_VIEW_WITHOUT_KEY, N_("View being updated does not have complete key of underlying table in it"));
571
  add(ER_VIEW_INVALID, N_("View '%-.192s.%-.192s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them"));
572
  add(ER_SP_NO_DROP_SP, N_("Can't drop or alter a %s from within another stored routine"));
573
  add(ER_SP_GOTO_IN_HNDLR, N_("GOTO is not allowed in a stored procedure handler"));
574
  add(ER_TRG_ALREADY_EXISTS, N_("Trigger already exists"));
575
  add(ER_TRG_DOES_NOT_EXIST, N_("Trigger does not exist"));
576
  add(ER_TRG_ON_VIEW_OR_TEMP_TABLE, N_("Trigger's '%-.192s' is view or temporary table"));
577
  add(ER_TRG_CANT_CHANGE_ROW, N_("Updating of %s row is not allowed in %strigger"));
578
  add(ER_TRG_NO_SUCH_ROW_IN_TRG, N_("There is no %s row in %s trigger"));
579
  add(ER_NO_DEFAULT_FOR_FIELD, N_("Field '%-.192s' doesn't have a default value"));
580
  add(ER_DIVISION_BY_ZERO, N_("Division by 0"));
581
  add(ER_TRUNCATED_WRONG_VALUE_FOR_FIELD, N_("Incorrect %-.32s value: '%-.128s' for column '%.192s' at row %u"));
582
  add(ER_ILLEGAL_VALUE_FOR_TYPE, N_("Illegal %s '%-.192s' value found during parsing"));
583
  add(ER_VIEW_NONUPD_CHECK, N_("CHECK OPTION on non-updatable view '%-.192s.%-.192s'"));
584
  add(ER_VIEW_CHECK_FAILED, N_("CHECK OPTION failed '%-.192s.%-.192s'"));
585
  add(ER_PROCACCESS_DENIED_ERROR, N_("%-.16s command denied to user '%-.48s'@'%-.64s' for routine '%-.192s'"));
586
  add(ER_RELAY_LOG_FAIL, N_("Failed purging old relay logs: %s"));
587
  add(ER_PASSWD_LENGTH, N_("Password hash should be a %d-digit hexadecimal number"));
588
  add(ER_UNKNOWN_TARGET_BINLOG, N_("Target log not found in binlog index"));
589
  add(ER_IO_ERR_LOG_INDEX_READ, N_("I/O error reading log index file"));
590
  add(ER_BINLOG_PURGE_PROHIBITED, N_("Server configuration does not permit binlog purge"));
591
  add(ER_FSEEK_FAIL, N_("Failed on fseek()"));
592
  add(ER_BINLOG_PURGE_FATAL_ERR, N_("Fatal error during log purge"));
593
  add(ER_LOG_IN_USE, N_("A purgeable log is in use, will not purge"));
594
  add(ER_LOG_PURGE_UNKNOWN_ERR, N_("Unknown error during log purge"));
595
  add(ER_RELAY_LOG_INIT, N_("Failed initializing relay log position: %s"));
596
  add(ER_NO_BINARY_LOGGING, N_("You are not using binary logging"));
597
  add(ER_RESERVED_SYNTAX, N_("The '%-.64s' syntax is reserved for purposes internal to the Drizzle server"));
598
  add(ER_WSAS_FAILED, N_("WSAStartup Failed"));
599
  add(ER_DIFF_GROUPS_PROC, N_("Can't handle procedures with different groups yet"));
600
  add(ER_NO_GROUP_FOR_PROC, N_("Select must have a group with this procedure"));
601
  add(ER_ORDER_WITH_PROC, N_("Can't use ORDER clause with this procedure"));
602
  add(ER_LOGGING_PROHIBIT_CHANGING_OF, N_("Binary logging and replication forbid changing the global server %s"));
603
  add(ER_NO_FILE_MAPPING, N_("Can't map file: %-.200s, errno: %d"));
604
  add(ER_WRONG_MAGIC, N_("Wrong magic in %-.64s"));
605
  add(ER_PS_MANY_PARAM, N_("Prepared statement contains too many placeholders"));
606
  add(ER_KEY_PART_0, N_("Key part '%-.192s' length cannot be 0"));
607
  add(ER_VIEW_CHECKSUM, N_("View text checksum failed"));
608
  add(ER_VIEW_MULTIUPDATE, N_("Can not modify more than one base table through a join view '%-.192s.%-.192s'"));
609
  add(ER_VIEW_NO_INSERT_FIELD_LIST, N_("Can not insert into join view '%-.192s.%-.192s' without fields list"));
610
  add(ER_VIEW_DELETE_MERGE_VIEW, N_("Can not delete from join view '%-.192s.%-.192s'"));
611
  add(ER_CANNOT_USER, N_("Operation %s failed for %.256s"));
612
  add(ER_XAER_NOTA, N_("XAER_NOTA: Unknown XID"));
613
  add(ER_XAER_INVAL, N_("XAER_INVAL: Invalid arguments (or unsupported command)"));
614
  add(ER_XAER_RMFAIL, N_("XAER_RMFAIL: The command cannot be executed when global transaction is in the  %.64s state"));
615
  add(ER_XAER_OUTSIDE, N_("XAER_OUTSIDE: Some work is done outside global transaction"));
616
  add(ER_XAER_RMERR, N_("XAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistency"));
617
  add(ER_XA_RBROLLBACK, N_("XA_RBROLLBACK: Transaction branch was rolled back"));
618
  add(ER_NONEXISTING_PROC_GRANT, N_("There is no such grant defined for user '%-.48s' on host '%-.64s' on routine '%-.192s'"));
619
  add(ER_PROC_AUTO_GRANT_FAIL, N_("Failed to grant EXECUTE and ALTER ROUTINE privileges"));
620
  add(ER_PROC_AUTO_REVOKE_FAIL, N_("Failed to revoke all privileges to dropped routine"));
621
  add(ER_DATA_TOO_LONG, N_("Data too long for column '%s' at row %ld"));
622
  add(ER_SP_BAD_SQLSTATE, N_("Bad SQLSTATE: '%s'"));
623
  add(ER_STARTUP, N_("%s: ready for connections.\nVersion: '%s' %s\n"));
624
  add(ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR, N_("Can't load value from file with fixed size rows to variable"));
625
  add(ER_CANT_CREATE_USER_WITH_GRANT, N_("You are not allowed to create a user with GRANT"));
626
  add(ER_WRONG_VALUE_FOR_TYPE, N_("Incorrect %-.32s value: '%-.128s' for function %-.32s"));
627
  add(ER_TABLE_DEF_CHANGED, N_("Table definition has changed, please retry transaction"));
628
  add(ER_SP_DUP_HANDLER, N_("Duplicate handler declared in the same block"));
629
  add(ER_SP_NOT_VAR_ARG, N_("OUT or INOUT argument %d for routine %s is not a variable or NEW pseudo-variable in BEFORE trigger"));
630
  add(ER_SP_NO_RETSET, N_("Not allowed to return a result set from a %s"));
631
  add(ER_CANT_CREATE_GEOMETRY_OBJECT, N_("Cannot get geometry object from data you send to the GEOMETRY field"));
632
  add(ER_FAILED_ROUTINE_BREAK_BINLOG, N_("A routine failed and has neither NO SQL nor READS SQL DATA in its declaration and binary logging is enabled; if non-transactional tables were updated, the binary log will miss their changes"));
633
  add(ER_BINLOG_UNSAFE_ROUTINE, N_("This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)"));
634
  add(ER_BINLOG_CREATE_ROUTINE_NEED_SUPER, N_("You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)"));
635
  add(ER_EXEC_STMT_WITH_OPEN_CURSOR, N_("You can't execute a prepared statement which has an open cursor associated with it. Reset the statement to re-execute it."));
636
  add(ER_STMT_HAS_NO_OPEN_CURSOR, N_("The statement (%lu) has no open cursor."));
637
  add(ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG, N_("Explicit or implicit commit is not allowed in stored function or trigger."));
638
  add(ER_NO_DEFAULT_FOR_VIEW_FIELD, N_("Field of view '%-.192s.%-.192s' underlying table doesn't have a default value"));
639
  add(ER_SP_NO_RECURSION, N_("Recursive stored functions and triggers are not allowed."));
640
  add(ER_TOO_BIG_SCALE, N_("Too big scale %d specified for column '%-.192s'. Maximum is %d."));
641
  add(ER_TOO_BIG_PRECISION, N_("Too big precision %d specified for column '%-.192s'. Maximum is %d."));
642
  add(ER_M_BIGGER_THAN_D, N_("For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '%-.192s')."));
643
  add(ER_WRONG_LOCK_OF_SYSTEM_TABLE, N_("You can't combine write-locking of system tables with other tables or lock types"));
644
  add(ER_CONNECT_TO_FOREIGN_DATA_SOURCE, N_("Unable to connect to foreign data source: %.64s"));
645
  add(ER_QUERY_ON_FOREIGN_DATA_SOURCE, N_("There was a problem processing the query on the foreign data source. Data source error: %-.64s"));
646
  add(ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST, N_("The foreign data source you are trying to reference does not exist. Data source error:  %-.64s"));
647
  add(ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE, N_("Can't create federated table. The data source connection string '%-.64s' is not in the correct format"));
648
  add(ER_FOREIGN_DATA_STRING_INVALID, N_("The data source connection string '%-.64s' is not in the correct format"));
649
  add(ER_CANT_CREATE_FEDERATED_TABLE, N_("Can't create federated table. Foreign data src error:  %-.64s"));
650
  add(ER_TRG_IN_WRONG_SCHEMA, N_("Trigger in wrong schema"));
651
  add(ER_STACK_OVERRUN_NEED_MORE, N_("Thread stack overrun:  %ld bytes used of a %ld byte stack, and %ld bytes needed.  Use 'drizzled -O thread_stack=#' to specify a bigger stack."));
652
  add(ER_TOO_LONG_BODY, N_("Routine body for '%-.100s' is too long"));
653
  add(ER_WARN_CANT_DROP_DEFAULT_KEYCACHE, N_("Cannot drop default keycache"));
654
  add(ER_TOO_BIG_DISPLAYWIDTH, N_("Display width out of range for column '%-.192s' (max = %d)"));
655
  add(ER_XAER_DUPID, N_("XAER_DUPID: The XID already exists"));
656
  add(ER_DATETIME_FUNCTION_OVERFLOW, N_("Datetime function: %-.32s field overflow"));
657
  add(ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG, N_("Can't update table '%-.192s' in stored function/trigger because it is already used by statement which invoked this stored function/trigger."));
658
  add(ER_VIEW_PREVENT_UPDATE, N_("The definition of table '%-.192s' prevents operation %.192s on table '%-.192s'."));
659
  add(ER_PS_NO_RECURSION, N_("The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner"));
660
  add(ER_SP_CANT_SET_AUTOCOMMIT, N_("Not allowed to set autocommit from a stored function or trigger"));
661
  add(ER_MALFORMED_DEFINER, N_("Definer is not fully qualified"));
662
  add(ER_VIEW_FRM_NO_USER, N_("View '%-.192s'.'%-.192s' has no definer information (old table format). Current user is used as definer. Please recreate the view!"));
663
  add(ER_VIEW_OTHER_USER, N_("You need the SUPER privilege for creation view with '%-.192s'@'%-.192s' definer"));
664
  add(ER_NO_SUCH_USER, N_("The user specified as a definer ('%-.64s'@'%-.64s') does not exist"));
665
  add(ER_FORBID_SCHEMA_CHANGE, N_("Changing schema from '%-.192s' to '%-.192s' is not allowed."));
666
  add(ER_ROW_IS_REFERENCED_2, N_("Cannot delete or update a parent row: a foreign key constraint fails (%.192s)"));
667
  add(ER_NO_REFERENCED_ROW_2, N_("Cannot add or update a child row: a foreign key constraint fails (%.192s)"));
668
  add(ER_SP_BAD_VAR_SHADOW, N_("Variable '%-.64s' must be quoted with `...`, or renamed"));
669
  add(ER_TRG_NO_DEFINER, N_("No definer attribute for trigger '%-.192s'.'%-.192s'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger."));
670
  add(ER_OLD_FILE_FORMAT, N_("'%-.192s' has an old format, you should re-create the '%s' object(s)"));
671
  add(ER_SP_RECURSION_LIMIT, N_("Recursive limit %d (as set by the max_sp_recursion_depth variable) was exceeded for routine %.192s"));
672
  add(ER_SP_PROC_TABLE_CORRUPT, N_("Failed to load routine %-.192s. The table drizzle.proc is missing, corrupt, or contains bad data (internal code %d)"));
673
  add(ER_SP_WRONG_NAME, N_("Incorrect routine name '%-.192s'"));
674
  add(ER_TABLE_NEEDS_UPGRADE, N_("Table upgrade required. Please do \"REPAIR TABLE `%-.32s`\" to fix it!"));
675
  add(ER_SP_NO_AGGREGATE, N_("AGGREGATE is not supported for stored functions"));
676
  add(ER_MAX_PREPARED_STMT_COUNT_REACHED, N_("Can't create more than max_prepared_stmt_count statements (current value: %lu)"));
677
  add(ER_VIEW_RECURSIVE, N_("`%-.192s`.`%-.192s` contains view recursion"));
678
  add(ER_NON_GROUPING_FIELD_USED, N_("non-grouping field '%-.192s' is used in %-.64s clause"));
679
  add(ER_TABLE_CANT_HANDLE_SPKEYS, N_("The used table type doesn't support SPATIAL indexes"));
680
  add(ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA, N_("Triggers can not be created on system tables"));
681
  add(ER_REMOVED_SPACES, N_("Leading spaces are removed from name '%s'"));
682
  add(ER_AUTOINC_READ_FAILED, N_("Failed to read auto-increment value from storage engine"));
683
  add(ER_USERNAME, N_("user name"));
684
  add(ER_HOSTNAME, N_("host name"));
685
  add(ER_WRONG_STRING_LENGTH, N_("String '%-.70s' is too long for %s (should be no longer than %d)"));
686
  add(ER_NON_INSERTABLE_TABLE, N_("The target table %-.100s of the %s is not insertable-into"));
687
  add(ER_ADMIN_WRONG_MRG_TABLE, N_("Table '%-.64s' is differently defined or of non-MyISAM type or doesn't exist"));
688
  add(ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT, N_("Too high level of nesting for select"));
689
  add(ER_NAME_BECOMES_EMPTY, N_("Name '%-.64s' has become ''"));
690
  add(ER_AMBIGUOUS_FIELD_TERM, N_("First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY"));
691
  add(ER_FOREIGN_SERVER_EXISTS, N_("The foreign server, %s, you are trying to create already exists."));
692
  add(ER_FOREIGN_SERVER_DOESNT_EXIST, N_("The foreign server name you are trying to reference does not exist. Data source error:  %-.64s"));
693
  add(ER_ILLEGAL_HA_CREATE_OPTION, N_("Table storage engine '%-.64s' does not support the create option '%.64s'"));
694
  add(ER_PARTITION_REQUIRES_VALUES_ERROR, N_("Syntax error: %-.64s PARTITIONING requires definition of VALUES %-.64s for each partition"));
695
  add(ER_PARTITION_WRONG_VALUES_ERROR, N_("Only %-.64s PARTITIONING can use VALUES %-.64s in partition definition"));
696
  add(ER_PARTITION_MAXVALUE_ERROR, N_("MAXVALUE can only be used in last partition definition"));
697
  add(ER_PARTITION_SUBPARTITION_ERROR, N_("Subpartitions can only be hash partitions and by key"));
698
  add(ER_PARTITION_SUBPART_MIX_ERROR, N_("Must define subpartitions on all partitions if on one partition"));
699
  add(ER_PARTITION_WRONG_NO_PART_ERROR, N_("Wrong number of partitions defined, mismatch with previous setting"));
700
  add(ER_PARTITION_WRONG_NO_SUBPART_ERROR, N_("Wrong number of subpartitions defined, mismatch with previous setting"));
701
  add(ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR, N_("Constant/Random expression in (sub)partitioning function is not allowed"));
702
  add(ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR, N_("Expression in RANGE/LIST VALUES must be constant"));
703
  add(ER_FIELD_NOT_FOUND_PART_ERROR, N_("Field in list of fields for partition function not found in table"));
704
  add(ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR, N_("List of fields is only allowed in KEY partitions"));
705
  add(ER_INCONSISTENT_PARTITION_INFO_ERROR, N_("The partition info in the frm file is not consistent with what can be written into the frm file"));
706
  add(ER_PARTITION_FUNC_NOT_ALLOWED_ERROR, N_("The %-.192s function returns the wrong type"));
707
  add(ER_PARTITIONS_MUST_BE_DEFINED_ERROR, N_("For %-.64s partitions each partition must be defined"));
708
  add(ER_RANGE_NOT_INCREASING_ERROR, N_("VALUES LESS THAN value must be strictly increasing for each partition"));
709
  add(ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR, N_("VALUES value must be of same type as partition function"));
710
  add(ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR, N_("Multiple definition of same constant in list partitioning"));
711
  add(ER_PARTITION_ENTRY_ERROR, N_("Partitioning can not be used stand-alone in query"));
712
  add(ER_MIX_HANDLER_ERROR, N_("The mix of handlers in the partitions is not allowed in this version of Drizzle"));
713
  add(ER_PARTITION_NOT_DEFINED_ERROR, N_("For the partitioned engine it is necessary to define all %-.64s"));
714
  add(ER_TOO_MANY_PARTITIONS_ERROR, N_("Too many partitions (including subpartitions) were defined"));
715
  add(ER_SUBPARTITION_ERROR, N_("It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning"));
716
  add(ER_CANT_CREATE_HANDLER_FILE, N_("Failed to create specific handler file"));
717
  add(ER_BLOB_FIELD_IN_PART_FUNC_ERROR, N_("A BLOB field is not allowed in partition function"));
718
  add(ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF, N_("A %-.192s must include all columns in the table's partitioning function"));
719
  add(ER_NO_PARTS_ERROR, N_("Number of %-.64s = 0 is not an allowed value"));
720
  add(ER_PARTITION_MGMT_ON_NONPARTITIONED, N_("Partition management on a not partitioned table is not possible"));
721
  add(ER_FOREIGN_KEY_ON_PARTITIONED, N_("Foreign key condition is not yet supported in conjunction with partitioning"));
722
  add(ER_DROP_PARTITION_NON_EXISTENT, N_("Error in list of partitions to %-.64s"));
723
  add(ER_DROP_LAST_PARTITION, N_("Cannot remove all partitions, use DROP TABLE instead"));
724
  add(ER_COALESCE_ONLY_ON_HASH_PARTITION, N_("COALESCE PARTITION can only be used on HASH/KEY partitions"));
725
  add(ER_REORG_HASH_ONLY_ON_SAME_NO, N_("REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers"));
726
  add(ER_REORG_NO_PARAM_ERROR, N_("REORGANIZE PARTITION without parameters can only be used on auto-partitioned tables using HASH PARTITIONs"));
727
  add(ER_ONLY_ON_RANGE_LIST_PARTITION, N_("%-.64s PARTITION can only be used on RANGE/LIST partitions"));
728
  add(ER_ADD_PARTITION_SUBPART_ERROR, N_("Trying to Add partition(s) with wrong number of subpartitions"));
729
  add(ER_ADD_PARTITION_NO_NEW_PARTITION, N_("At least one partition must be added"));
730
  add(ER_COALESCE_PARTITION_NO_PARTITION, N_("At least one partition must be coalesced"));
731
  add(ER_REORG_PARTITION_NOT_EXIST, N_("More partitions to reorganize than there are partitions"));
732
  add(ER_SAME_NAME_PARTITION, N_("Duplicate partition name %-.192s"));
733
  add(ER_NO_BINLOG_ERROR, N_("It is not allowed to shut off binlog on this command"));
734
  add(ER_CONSECUTIVE_REORG_PARTITIONS, N_("When reorganizing a set of partitions they must be in consecutive order"));
735
  add(ER_REORG_OUTSIDE_RANGE, N_("Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range"));
736
  add(ER_PARTITION_FUNCTION_FAILURE, N_("Partition function not supported in this version for this handler"));
737
  add(ER_PART_STATE_ERROR, N_("Partition state cannot be defined from CREATE/ALTER TABLE"));
738
  add(ER_LIMITED_PART_RANGE, N_("The %-.64s handler only supports 32 bit integers in VALUES"));
739
  add(ER_PLUGIN_IS_NOT_LOADED, N_("Plugin '%-.192s' is not loaded"));
740
  add(ER_WRONG_VALUE, N_("Incorrect %-.32s value: '%-.128s'"));
741
  add(ER_NO_PARTITION_FOR_GIVEN_VALUE, N_("Table has no partition for value %-.64s"));
742
  add(ER_FILEGROUP_OPTION_ONLY_ONCE, N_("It is not allowed to specify %s more than once"));
743
  add(ER_CREATE_FILEGROUP_FAILED, N_("Failed to create %s"));
744
  add(ER_DROP_FILEGROUP_FAILED, N_("Failed to drop %s"));
745
  add(ER_TABLESPACE_AUTO_EXTEND_ERROR, N_("The handler doesn't support autoextend of tablespaces"));
746
  add(ER_WRONG_SIZE_NUMBER, N_("A size parameter was incorrectly specified, either number or on the form 10M"));
747
  add(ER_SIZE_OVERFLOW_ERROR, N_("The size number was correct but we don't allow the digit part to be more than 2 billion"));
748
  add(ER_ALTER_FILEGROUP_FAILED, N_("Failed to alter: %s"));
749
  add(ER_BINLOG_ROW_LOGGING_FAILED, N_("Writing one row to the row-based binary log failed"));
750
  add(ER_BINLOG_ROW_WRONG_TABLE_DEF, N_("Table definition on master and slave does not match: %s"));
751
  add(ER_BINLOG_ROW_RBR_TO_SBR, N_("Slave running with --log-slave-updates must use row-based binary logging to be able to replicate row-based binary log events"));
752
  add(ER_EVENT_ALREADY_EXISTS, N_("Event '%-.192s' already exists"));
753
  add(ER_EVENT_STORE_FAILED, N_("Failed to store event %s. Error code %d from storage engine."));
754
  add(ER_EVENT_DOES_NOT_EXIST, N_("Unknown event '%-.192s'"));
755
  add(ER_EVENT_CANT_ALTER, N_("Failed to alter event '%-.192s'"));
756
  add(ER_EVENT_DROP_FAILED, N_("Failed to drop %s"));
757
  add(ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG, N_("INTERVAL is either not positive or too big"));
758
  add(ER_EVENT_ENDS_BEFORE_STARTS, N_("ENDS is either invalid or before STARTS"));
759
  add(ER_EVENT_EXEC_TIME_IN_THE_PAST, N_("Event execution time is in the past. Event has been disabled"));
760
  add(ER_EVENT_OPEN_TABLE_FAILED, N_("Failed to open drizzle.event"));
761
  add(ER_EVENT_NEITHER_M_EXPR_NOR_M_AT, N_("No datetime expression provided"));
762
  add(ER_COL_COUNT_DOESNT_MATCH_CORRUPTED, N_("Column count of drizzle.%s is wrong. Expected %d, found %d. The table is probably corrupted"));
763
  add(ER_CANNOT_LOAD_FROM_TABLE, N_("Cannot load from drizzle.%s. The table is probably corrupted"));
764
  add(ER_EVENT_CANNOT_DELETE, N_("Failed to delete the event from drizzle.event"));
765
  add(ER_EVENT_COMPILE_ERROR, N_("Error during compilation of event's body"));
766
  add(ER_EVENT_SAME_NAME, N_("Same old and new event name"));
767
  add(ER_EVENT_DATA_TOO_LONG, N_("Data for column '%s' too long"));
768
  add(ER_DROP_INDEX_FK, N_("Cannot drop index '%-.192s': needed in a foreign key constraint"));
769
  add(ER_WARN_DEPRECATED_SYNTAX_WITH_VER, N_("The syntax '%s' is deprecated and will be removed in Drizzle %s. Please use %s instead"));
770
  add(ER_CANT_WRITE_LOCK_LOG_TABLE, N_("You can't write-lock a log table. Only read access is possible"));
771
  add(ER_CANT_LOCK_LOG_TABLE, N_("You can't use locks with log tables."));
772
  add(ER_FOREIGN_DUPLICATE_KEY, N_("Upholding foreign key constraints for table '%.192s', entry '%-.192s', key %d would lead to a duplicate entry"));
773
  add(ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE, N_("Column count of drizzle.%s is wrong. Expected %d, found %d. Created with Drizzle %d, now running %d. Please use drizzle_upgrade to fix this error."));
774
  add(ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR, N_("Cannot switch out of the row-based binary log format when the session has open temporary tables"));
775
  add(ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT, N_("Cannot change the binary logging format inside a stored function or trigger"));
776
  add(ER_NDB_CANT_SWITCH_BINLOG_FORMAT, N_("The NDB cluster engine does not support changing the binlog format on the fly yet"));
777
  add(ER_PARTITION_NO_TEMPORARY, N_("Cannot create temporary table with partitions"));
778
  add(ER_PARTITION_CONST_DOMAIN_ERROR, N_("Partition constant is out of partition function domain"));
779
  add(ER_PARTITION_FUNCTION_IS_NOT_ALLOWED, N_("This partition function is not allowed"));
780
  add(ER_DDL_LOG_ERROR, N_("Error in DDL log"));
781
  add(ER_NULL_IN_VALUES_LESS_THAN, N_("Not allowed to use NULL value in VALUES LESS THAN"));
782
  add(ER_WRONG_PARTITION_NAME, N_("Incorrect partition name"));
783
  add(ER_CANT_CHANGE_TX_ISOLATION, N_("Transaction isolation level can't be changed while a transaction is in progress"));
784
  add(ER_DUP_ENTRY_AUTOINCREMENT_CASE, N_("ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '%-.192s' for key '%-.192s'"));
785
  add(ER_EVENT_MODIFY_QUEUE_ERROR, N_("Internal scheduler error %d"));
786
  add(ER_EVENT_SET_VAR_ERROR, N_("Error during starting/stopping of the scheduler. Error code %u"));
787
  add(ER_PARTITION_MERGE_ERROR, N_("Engine cannot be used in partitioned tables"));
788
  add(ER_CANT_ACTIVATE_LOG, N_("Cannot activate '%-.64s' log"));
789
  add(ER_RBR_NOT_AVAILABLE, N_("The server was not built with row-based replication"));
790
  add(ER_BASE64_DECODE_ERROR, N_("Decoding of base64 string failed"));
791
  add(ER_EVENT_RECURSION_FORBIDDEN, N_("Recursion of EVENT DDL statements is forbidden when body is present"));
792
  add(ER_EVENTS_DB_ERROR, N_("Cannot proceed because system tables used by Event Scheduler were found damaged at server start"));
793
  add(ER_ONLY_INTEGERS_ALLOWED, N_("Only integers allowed as number here"));
794
  add(ER_UNSUPORTED_LOG_ENGINE, N_("This storage engine cannot be used for log tables"));
795
  add(ER_BAD_LOG_STATEMENT, N_("You cannot '%s' a log table if logging is enabled"));
796
  add(ER_CANT_RENAME_LOG_TABLE, N_("Cannot rename '%s'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to '%s'"));
797
  add(ER_WRONG_PARAMCOUNT_TO_FUNCTION, N_("Incorrect parameter count in the call to native function '%-.192s'"));
798
  add(ER_WRONG_PARAMETERS_TO_NATIVE_FCT, N_("Incorrect parameters in the call to native function '%-.192s'"));
799
  add(ER_WRONG_PARAMETERS_TO_STORED_FCT, N_("Incorrect parameters in the call to stored function '%-.192s'"));
800
  add(ER_NATIVE_FCT_NAME_COLLISION, N_("This function '%-.192s' has the same name as a native function"));
801
  add(ER_DUP_ENTRY_WITH_KEY_NAME, N_("Duplicate entry '%-.64s' for key '%-.192s'"));
802
  add(ER_BINLOG_PURGE_EMFILE, N_("Too many files opened, please execute the command again"));
803
  add(ER_EVENT_CANNOT_CREATE_IN_THE_PAST, N_("Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation."));
804
  add(ER_EVENT_CANNOT_ALTER_IN_THE_PAST, N_("Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation."));
805
  add(ER_SLAVE_INCIDENT, N_("The incident %s occurred on the master. Message: %-.64s"));
806
  add(ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT, N_("Table has no partition for some existing values"));
807
  add(ER_BINLOG_UNSAFE_STATEMENT, N_("Statement is not safe to log in statement format."));
808
  add(ER_SLAVE_FATAL_ERROR, N_("Fatal error: %s"));
809
  add(ER_SLAVE_RELAY_LOG_READ_FAILURE, N_("Relay log read failure: %s"));
810
  add(ER_SLAVE_RELAY_LOG_WRITE_FAILURE, N_("Relay log write failure: %s"));
811
  add(ER_SLAVE_CREATE_EVENT_FAILURE, N_("Failed to create %s"));
812
  add(ER_SLAVE_MASTER_COM_FAILURE, N_("Master command %s failed: %s"));
813
  add(ER_BINLOG_LOGGING_IMPOSSIBLE, N_("Binary logging not possible. Message: %s"));
814
  add(ER_VIEW_NO_CREATION_CTX, N_("View `%-.64s`.`%-.64s` has no creation context"));
815
  add(ER_VIEW_INVALID_CREATION_CTX, N_("Creation context of view `%-.64s`.`%-.64s' is invalid"));
816
  add(ER_SR_INVALID_CREATION_CTX, N_("Creation context of stored routine `%-.64s`.`%-.64s` is invalid"));
817
  add(ER_TRG_CORRUPTED_FILE, N_("Corrupted TRG file for table `%-.64s`.`%-.64s`"));
818
  add(ER_TRG_NO_CREATION_CTX, N_("Triggers for table `%-.64s`.`%-.64s` have no creation context"));
819
  add(ER_TRG_INVALID_CREATION_CTX, N_("Trigger creation context of table `%-.64s`.`%-.64s` is invalid"));
820
  add(ER_EVENT_INVALID_CREATION_CTX, N_("Creation context of event `%-.64s`.`%-.64s` is invalid"));
821
  add(ER_TRG_CANT_OPEN_TABLE, N_("Cannot open table for trigger `%-.64s`.`%-.64s`"));
822
  add(ER_CANT_CREATE_SROUTINE, N_("Cannot create stored routine `%-.64s`. Check warnings"));
823
  add(ER_SLAVE_AMBIGOUS_EXEC_MODE, N_("Ambiguous slave modes combination. %s"));
824
  add(ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT, N_("The BINLOG statement of type `%s` was not preceded by a format description BINLOG statement."));
825
  add(ER_SLAVE_CORRUPT_EVENT, N_("Corrupted replication event was detected"));
826
  add(ER_LOAD_DATA_INVALID_COLUMN, N_("Invalid column reference (%-.64s) in LOAD DATA"));
827
  add(ER_LOG_PURGE_NO_FILE, N_("Being purged log %s was not found"));
828
  add(ER_WARN_AUTO_CONVERT_LOCK, N_("Converted to non-transactional lock on '%-.64s'"));
829
  add(ER_NO_AUTO_CONVERT_LOCK_STRICT, N_("Cannot convert to non-transactional lock in strict mode on '%-.64s'"));
830
  add(ER_NO_AUTO_CONVERT_LOCK_TRANSACTION, N_("Cannot convert to non-transactional lock in an active transaction on '%-.64s'"));
831
  add(ER_NO_STORAGE_ENGINE, N_("Can't access storage engine of table %-.64s"));
832
  add(ER_BACKUP_BACKUP_START, N_("Starting backup process"));
833
  add(ER_BACKUP_BACKUP_DONE, N_("Backup completed"));
834
  add(ER_BACKUP_RESTORE_START, N_("Starting restore process"));
835
  add(ER_BACKUP_RESTORE_DONE, N_("Restore completed"));
836
  add(ER_BACKUP_NOTHING_TO_BACKUP, N_("Nothing to backup"));
837
  add(ER_BACKUP_CANNOT_INCLUDE_DB, N_("Database '%-.64s' cannot be included in a backup"));
838
  add(ER_BACKUP_BACKUP, N_("Error during backup operation - server's error log contains more information about the error"));
839
  add(ER_BACKUP_RESTORE, N_("Error during restore operation - server's error log contains more information about the error"));
840
  add(ER_BACKUP_RUNNING, N_("Can't execute this command because another BACKUP/RESTORE operation is in progress"));
841
  add(ER_BACKUP_BACKUP_PREPARE, N_("Error when preparing for backup operation"));
842
  add(ER_BACKUP_RESTORE_PREPARE, N_("Error when preparing for restore operation"));
843
  add(ER_BACKUP_INVALID_LOC, N_("Invalid backup location '%-.64s'"));
844
  add(ER_BACKUP_READ_LOC, N_("Can't read backup location '%-.64s'"));
845
  add(ER_BACKUP_WRITE_LOC, N_("Can't write to backup location '%-.64s' (file already exists?)"));
846
  add(ER_BACKUP_LIST_DBS, N_("Can't enumerate server databases"));
847
  add(ER_BACKUP_LIST_TABLES, N_("Can't enumerate server tables"));
848
  add(ER_BACKUP_LIST_DB_TABLES, N_("Can't enumerate tables in database %-.64s"));
849
  add(ER_BACKUP_SKIP_VIEW, N_("Skipping view %-.64s in database %-.64s"));
850
  add(ER_BACKUP_NO_ENGINE, N_("Skipping table %-.64s since it has no valid storage engine"));
851
  add(ER_BACKUP_TABLE_OPEN, N_("Can't open table %-.64s"));
852
  add(ER_BACKUP_READ_HEADER, N_("Can't read backup archive preamble"));
853
  add(ER_BACKUP_WRITE_HEADER, N_("Can't write backup archive preamble"));
854
  add(ER_BACKUP_NO_BACKUP_DRIVER, N_("Can't find backup driver for table %-.64s"));
855
  add(ER_BACKUP_NOT_ACCEPTED, N_("%-.64s backup driver was selected for table %-.64s but it rejects to handle this table"));
856
  add(ER_BACKUP_CREATE_BACKUP_DRIVER, N_("Can't create %-.64s backup driver"));
857
  add(ER_BACKUP_CREATE_RESTORE_DRIVER, N_("Can't create %-.64s restore driver"));
858
  add(ER_BACKUP_TOO_MANY_IMAGES, N_("Found %d images in backup archive but maximum %d are supported"));
859
  add(ER_BACKUP_WRITE_META, N_("Error when saving meta-data of %-.64s"));
860
  add(ER_BACKUP_READ_META, N_("Error when reading meta-data list"));
861
  add(ER_BACKUP_CREATE_META, N_("Can't create %-.64s"));
862
  add(ER_BACKUP_GET_BUF, N_("Can't allocate buffer for image data transfer"));
863
  add(ER_BACKUP_WRITE_DATA, N_("Error when writing %-.64s backup image data (for table #%d)"));
864
  add(ER_BACKUP_READ_DATA, N_("Error when reading data from backup stream"));
865
  add(ER_BACKUP_NEXT_CHUNK, N_("Can't go to the next chunk in backup stream"));
866
  add(ER_BACKUP_INIT_BACKUP_DRIVER, N_("Can't initialize %-.64s backup driver"));
867
  add(ER_BACKUP_INIT_RESTORE_DRIVER, N_("Can't initialize %-.64s restore driver"));
868
  add(ER_BACKUP_STOP_BACKUP_DRIVER, N_("Can't shut down %-.64s backup driver"));
869
  add(ER_BACKUP_STOP_RESTORE_DRIVERS, N_("Can't shut down %-.64s backup driver(s)"));
870
  add(ER_BACKUP_PREPARE_DRIVER, N_("%-.64s backup driver can't prepare for synchronization"));
871
  add(ER_BACKUP_CREATE_VP, N_("%-.64s backup driver can't create its image validity point"));
872
  add(ER_BACKUP_UNLOCK_DRIVER, N_("Can't unlock %-.64s backup driver after creating the validity point"));
873
  add(ER_BACKUP_CANCEL_BACKUP, N_("%-.64s backup driver can't cancel its backup operation"));
874
  add(ER_BACKUP_CANCEL_RESTORE, N_("%-.64s restore driver can't cancel its restore operation"));
875
  add(ER_BACKUP_GET_DATA, N_("Error when polling %-.64s backup driver for its image data"));
876
  add(ER_BACKUP_SEND_DATA, N_("Error when sending image data (for table #%d) to %-.64s restore driver"));
877
  add(ER_BACKUP_SEND_DATA_RETRY, N_("After %d attempts %-.64s restore driver still can't accept next block of data"));
878
  add(ER_BACKUP_OPEN_TABLES, N_("Open and lock tables failed in %-.64s"));
879
  add(ER_BACKUP_THREAD_INIT, N_("Backup driver's table locking thread can not be initialized."));
880
  add(ER_BACKUP_PROGRESS_TABLES, N_("Can't open the online backup progress tables. Check 'drizzle.online_backup' and 'drizzle.online_backup_progress'."));
881
  add(ER_TABLESPACE_EXIST, N_("Tablespace '%-.192s' already exists"));
882
  add(ER_NO_SUCH_TABLESPACE, N_("Tablespace '%-.192s' doesn't exist"));
883
  add(ER_SLAVE_HEARTBEAT_FAILURE, N_("Unexpected master's heartbeat data: %s"));
884
  add(ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE, N_("The requested value for the heartbeat period %s %s"));
885
  add(ER_BACKUP_LOG_WRITE_ERROR, N_("Can't write to the online backup progress log %-.64s."));
886
  add(ER_TABLESPACE_NOT_EMPTY, N_("Tablespace '%-.192s' not empty"));
887
  add(ER_BACKUP_TS_CHANGE, N_("Tablespace `%-.64s` needed by tables being restored has changed on the server. The original definition of the required tablespace is '%-.256s' while the same tablespace is defined on the server as '%-.256s'"));
888
  add(ER_VCOL_BASED_ON_VCOL, N_("A virtual column cannot be based on a virtual column"));
889
  add(ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED, N_("Non-deterministic expression for virtual column '%s'."));
890
  add(ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN, N_("Generated value for virtual column '%s' cannot be converted to type '%s'."));
891
  add(ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN, N_("Primary key cannot be defined upon a virtual column."));
892
  add(ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN, N_("Key/Index cannot be defined on a non-stored virtual column."));
893
  add(ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN, N_("Cannot define foreign key with %s clause on a virtual column."));
894
  add(ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN, N_("The value specified for virtual column '%s' in table '%s' ignored."));
895
  add(ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN, N_("'%s' is not yet supported for virtual columns."));
896
  add(ER_CONST_EXPR_IN_VCOL, N_("Constant expression in virtual column function is not allowed."));
897
  add(ER_UNKNOWN_TEMPORAL_TYPE, N_("Encountered an unknown temporal type."));
898
  add(ER_INVALID_STRING_FORMAT_FOR_DATE, N_("Received an invalid string format '%s' for a date value."));
899
  add(ER_INVALID_STRING_FORMAT_FOR_TIME, N_("Received an invalid string format '%s' for a time value."));
900
  add(ER_INVALID_UNIX_TIMESTAMP_VALUE, N_("Received an invalid value '%s' for a UNIX timestamp."));
901
  add(ER_INVALID_DATETIME_VALUE, N_("Received an invalid datetime value '%s'."));
902
  add(ER_INVALID_NULL_ARGUMENT, N_("Received a NULL argument for function '%s'."));
903
  add(ER_INVALID_NEGATIVE_ARGUMENT, N_("Received an invalid negative argument '%s' for function '%s'."));
904
  add(ER_ARGUMENT_OUT_OF_RANGE, N_("Received an out-of-range argument '%s' for function '%s'."));
905
  add(ER_INVALID_TIME_VALUE, N_("Received an invalid time value '%s'."));
906
  add(ER_INVALID_ENUM_VALUE, N_("Received an invalid enum value '%s'."));
907
  add(ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE, N_("Tables which are replicated require a primary key."));
1271.7.20 by Tim Penhey
Change some of the declarations to follow the drizzle coding standard.
908
  add(ER_CORRUPT_TABLE_DEFINITION, N_("Corrupt or invalid table definition: %s"));
1567.1.1 by Brian Aker
This fixes bug 586009, increases the size of the log files so that the UNION
909
  add(ER_CORRUPT_SCHEMA_DEFINITION, N_("Corrupt or invalid schema definition for %s : %s"));
1271.7.21 by Monty Taylor
Merged trunk.
910
  add(ER_SCHEMA_DOES_NOT_EXIST, N_("Schema does not exist: %s"));
911
  add(ER_ALTER_SCHEMA, N_("Error altering schema: %s"));
912
  add(ER_DROP_SCHEMA, +N_("Error droppping Schema : %s"));
1487.1.1 by Brian Aker
There is room for improvement around this. We should be using rows as well
913
  add(ER_USE_SQL_BIG_RESULT, N_("Temporary table too large, rerun with SQL_BIG_RESULT."));
1502.1.30 by Brian Aker
First pass on cleanup of Stewart's patch, plus re-engineer to make it work a
914
  add(ER_UNKNOWN_ENGINE_OPTION, N_("Unknown table engine option key/pair %s = %s."));
915
  add(ER_UNKNOWN_SCHEMA_OPTION, N_("Unknown schema engine option key/pair %s = %s."));
1271.7.4 by Tim Penhey
Another incremental commit.
916
917
  add(EE_CANTUNLOCK, N_("Can't unlock file (Errcode: %d)"));
918
  add(EE_CANT_CHSIZE, N_("Can't change size of file (Errcode: %d)"));
919
  add(EE_CANT_OPEN_STREAM, N_("Can't open stream from handle (Errcode: %d)"));
920
  add(EE_LINK_WARNING, N_("Warning: '%s' had %d links"));
921
  add(EE_OPEN_WARNING, N_("Warning: %d files and %d streams is left open\n"));
922
  add(EE_CANT_MKDIR, N_("Can't create directory '%s' (Errcode: %d)"));
923
  add(EE_UNKNOWN_CHARSET, N_("Character set '%s' is not a compiled character set and is not specified in the %s file"));
924
  add(EE_OUT_OF_FILERESOURCES, N_("Out of resources when opening file '%s' (Errcode: %d)"));
925
  add(EE_CANT_READLINK, N_("Can't read value for symlink '%s' (Error %d)"));
926
  add(EE_CANT_SYMLINK, N_("Can't create symlink '%s' pointing at '%s' (Error %d)"));
927
  add(EE_REALPATH, N_("Error on realpath() on '%s' (Error %d)"));
928
  add(EE_SYNC, N_("Can't sync file '%s' to disk (Errcode: %d)"));
929
  add(EE_UNKNOWN_COLLATION, N_("Collation '%s' is not a compiled collation and is not specified in the %s file"));
930
  add(EE_FILE_NOT_CLOSED, N_("File '%s' (fileno: %d) was not closed"));
931
932
  // Some old error values use the same strings as some new error values.
933
  add(EE_FILENOTFOUND, find(ER_FILE_NOT_FOUND));
934
  add(EE_CANTCREATEFILE, find(ER_CANT_CREATE_FILE));
935
  add(EE_READ, find(ER_ERROR_ON_READ));
936
  add(EE_WRITE, find(ER_ERROR_ON_WRITE));
937
  add(EE_BADCLOSE, find(ER_ERROR_ON_CLOSE));
938
  add(EE_OUTOFMEMORY, find(ER_OUTOFMEMORY));
939
  add(EE_DELETE, find(ER_CANT_DELETE_FILE));
940
  add(EE_LINK, find(ER_ERROR_ON_RENAME));
941
  add(EE_EOFERR, find(ER_UNEXPECTED_EOF));
942
  add(EE_CANTLOCK, find(ER_CANT_LOCK));
943
  add(EE_DIR, find(ER_CANT_READ_DIR));
944
  add(EE_STAT, find(ER_CANT_GET_STAT));
945
  add(EE_GETWD, find(ER_CANT_GET_WD));
946
  add(EE_SETWD, find(ER_CANT_SET_WD));
947
  add(EE_DISK_FULL, find(ER_DISK_FULL));
948
949
}
950
1271.5.1 by Tim Penhey
Move the bits from my_error.h and my_error.cc into error.h and error.cc.
951
}
1271.5.7 by Monty Taylor
Merged up with trunk.
952
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
953
} /* namespace drizzled */