~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/error.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2000 MySQL AB
 
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
/*
 
22
 * Errors a drizzled can give you
 
23
 */
 
24
 
 
25
#include "config.h"
 
26
#include "drizzled/internal/my_sys.h"
 
27
#include "drizzled/definitions.h"
 
28
#include "drizzled/error.h"
 
29
#include "drizzled/gettext.h"
 
30
 
 
31
namespace drizzled
 
32
{
 
33
 
 
34
static const char *drizzled_error_messages[]=
 
35
{
 
36
/* Unused: was ER_HASHCHK which hasn't been used since before MySQL 3.20.32a  */
 
37
N_("UNUSED"),
 
38
/* Unused: was ER_NISAMCHK which hasn't been used since mysql-3.20.32a  */
 
39
N_("UNUSED"),
 
40
/* ER_NO   */
 
41
N_("NO"),
 
42
/* ER_YES   */
 
43
N_("YES"),
 
44
/* ER_CANT_CREATE_FILE   */
 
45
N_("Can't create file '%-.200s' (errno: %d)"),
 
46
/* ER_CANT_CREATE_TABLE   */
 
47
N_("Can't create table '%-.200s' (errno: %d)"),
 
48
/* ER_CANT_CREATE_DB   */
 
49
N_("Can't create database '%-.192s' (errno: %d)"),
 
50
/* ER_DB_CREATE_EXISTS   */
 
51
N_("Can't create database '%-.192s'; database exists"),
 
52
/* ER_DB_DROP_EXISTS   */
 
53
N_("Can't drop database '%-.192s'; database doesn't exist"),
 
54
/* ER_DB_DROP_DELETE   */
 
55
N_("Error dropping database (can't delete '%-.192s', errno: %d)"),
 
56
/* ER_DB_DROP_RMDIR   */
 
57
N_("Error dropping database (can't rmdir '%-.192s', errno: %d)"),
 
58
/* ER_CANT_DELETE_FILE   */
 
59
N_("Error on delete of '%-.192s' (errno: %d)"),
 
60
/* ER_CANT_FIND_SYSTEM_REC   */
 
61
N_("Can't read record in system table"),
 
62
/* ER_CANT_GET_STAT   */
 
63
N_("Can't get status of '%-.200s' (errno: %d)"),
 
64
/* ER_CANT_GET_WD   */
 
65
N_("Can't get working directory (errno: %d)"),
 
66
/* ER_CANT_LOCK   */
 
67
N_("Can't lock file (errno: %d)"),
 
68
/* ER_CANT_OPEN_FILE   */
 
69
N_("Can't open file: '%-.200s' (errno: %d)"),
 
70
/* ER_FILE_NOT_FOUND   */
 
71
N_("Can't find file: '%-.200s' (errno: %d)"),
 
72
/* ER_CANT_READ_DIR   */
 
73
N_("Can't read dir of '%-.192s' (errno: %d)"),
 
74
/* ER_CANT_SET_WD   */
 
75
N_("Can't change dir to '%-.192s' (errno: %d)"),
 
76
/* ER_CHECKREAD   */
 
77
N_("Record has changed since last read in table '%-.192s'"),
 
78
/* ER_DISK_FULL   */
 
79
N_("Disk full (%s); waiting for someone to free some space..."),
 
80
/* ER_DUP_KEY 23000  */
 
81
N_("Can't write; duplicate key in table '%-.192s'"),
 
82
/* ER_ERROR_ON_CLOSE   */
 
83
N_("Error on close of '%-.192s' (errno: %d)"),
 
84
/* ER_ERROR_ON_READ   */
 
85
N_("Error reading file '%-.200s' (errno: %d)"),
 
86
/* ER_ERROR_ON_RENAME   */
 
87
N_("Error on rename of '%-.150s' to '%-.150s' (errno: %d)"),
 
88
/* ER_ERROR_ON_WRITE   */
 
89
N_("Error writing file '%-.200s' (errno: %d)"),
 
90
/* ER_FILE_USED   */
 
91
N_("'%-.192s' is locked against change"),
 
92
/* ER_FILSORT_ABORT   */
 
93
N_("Sort aborted"),
 
94
/* ER_FORM_NOT_FOUND   */
 
95
N_("View '%-.192s' doesn't exist for '%-.192s'"),
 
96
/* ER_GET_ERRNO   */
 
97
N_("Got error %d from storage engine"),
 
98
/* ER_ILLEGAL_HA   */
 
99
N_("Table storage engine for '%-.192s' doesn't have this option"),
 
100
/* ER_KEY_NOT_FOUND   */
 
101
N_("Can't find record in '%-.192s'"),
 
102
/* ER_NOT_FORM_FILE   */
 
103
N_("Incorrect information in file: '%-.200s'"),
 
104
/* ER_NOT_KEYFILE   */
 
105
N_("Incorrect key file for table '%-.200s'; try to repair it"),
 
106
/* ER_OLD_KEYFILE   */
 
107
N_("Old key file for table '%-.192s'; repair it!"),
 
108
/* ER_OPEN_AS_READONLY   */
 
109
N_("Table '%-.192s' is read only"),
 
110
/* ER_OUTOFMEMORY HY001 S1001 */
 
111
N_("Out of memory; restart server and try again (needed %lu bytes)"),
 
112
/* ER_OUT_OF_SORTMEMORY HY001 S1001 */
 
113
N_("Out of sort memory; increase server sort buffer size"),
 
114
/* ER_UNEXPECTED_EOF   */
 
115
N_("Unexpected EOF found when reading file '%-.192s' (errno: %d)"),
 
116
/* ER_CON_COUNT_ERROR 08004  */
 
117
N_("Too many connections"),
 
118
/* ER_OUT_OF_RESOURCES   */
 
119
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"),
 
120
/* ER_BAD_HOST_ERROR 08S01  */
 
121
N_("Can't get hostname for your address"),
 
122
/* ER_HANDSHAKE_ERROR 08S01  */
 
123
N_("Bad handshake"),
 
124
/* ER_DBACCESS_DENIED_ERROR 42000  */
 
125
N_("Access denied for user '%-.48s'@'%-.64s' to database '%-.192s'"),
 
126
/* ER_ACCESS_DENIED_ERROR 28000  */
 
127
N_("Access denied for user '%-.48s'@'%-.64s' (using password: %s)"),
 
128
/* ER_NO_DB_ERROR 3D000  */
 
129
N_("No database selected"),
 
130
/* ER_UNKNOWN_COM_ERROR 08S01  */
 
131
N_("Unknown command"),
 
132
/* ER_BAD_NULL_ERROR 23000  */
 
133
N_("Column '%-.192s' cannot be null"),
 
134
/* ER_BAD_DB_ERROR 42000  */
 
135
N_("Unknown database '%-.192s'"),
 
136
/* ER_TABLE_EXISTS_ERROR 42S01  */
 
137
N_("Table '%-.192s' already exists"),
 
138
/* ER_BAD_TABLE_ERROR 42S02  */
 
139
N_("Unknown table '%-.100s'"),
 
140
/* ER_NON_UNIQ_ERROR 23000  */
 
141
N_("Column '%-.192s' in %-.192s is ambiguous"),
 
142
/* ER_SERVER_SHUTDOWN 08S01  */
 
143
N_("Server shutdown in progress"),
 
144
/* ER_BAD_FIELD_ERROR 42S22 S0022 */
 
145
N_("Unknown column '%-.192s' in '%-.192s'"),
 
146
/* ER_WRONG_FIELD_WITH_GROUP 42000 S1009 */
 
147
N_("'%-.192s' isn't in GROUP BY"),
 
148
/* ER_WRONG_GROUP_FIELD 42000 S1009 */
 
149
N_("Can't group on '%-.192s'"),
 
150
/* ER_WRONG_SUM_SELECT 42000 S1009 */
 
151
N_("Statement has sum functions and columns in same statement"),
 
152
/* ER_WRONG_VALUE_COUNT 21S01  */
 
153
N_("Column count doesn't match value count"),
 
154
/* ER_TOO_LONG_IDENT 42000 S1009 */
 
155
N_("Identifier name '%-.100s' is too long"),
 
156
/* ER_DUP_FIELDNAME 42S21 S1009 */
 
157
N_("Duplicate column name '%-.192s'"),
 
158
/* ER_DUP_KEYNAME 42000 S1009 */
 
159
N_("Duplicate key name '%-.192s'"),
 
160
/* ER_DUP_ENTRY 23000 S1009 */
 
161
N_("Duplicate entry '%-.192s' for key %d"),
 
162
/* ER_WRONG_FIELD_SPEC 42000 S1009 */
 
163
N_("Incorrect column specifier for column '%-.192s'"),
 
164
/* ER_PARSE_ERROR 42000 s1009 */
 
165
N_("%s near '%-.80s' at line %d"),
 
166
/* ER_EMPTY_QUERY 42000   */
 
167
N_("Query was empty"),
 
168
/* ER_NONUNIQ_TABLE 42000 S1009 */
 
169
N_("Not unique table/alias: '%-.192s'"),
 
170
/* ER_INVALID_DEFAULT 42000 S1009 */
 
171
N_("Invalid default value for '%-.192s'"),
 
172
/* ER_MULTIPLE_PRI_KEY 42000 S1009 */
 
173
N_("Multiple primary key defined"),
 
174
/* ER_TOO_MANY_KEYS 42000 S1009 */
 
175
N_("Too many keys specified; max %d keys allowed"),
 
176
/* ER_TOO_MANY_KEY_PARTS 42000 S1009 */
 
177
N_("Too many key parts specified; max %d parts allowed"),
 
178
/* ER_TOO_LONG_KEY 42000 S1009 */
 
179
N_("Specified key was too long; max key length is %d bytes"),
 
180
/* ER_KEY_COLUMN_DOES_NOT_EXITS 42000 S1009 */
 
181
N_("Key column '%-.192s' doesn't exist in table"),
 
182
/* ER_BLOB_USED_AS_KEY 42000 S1009 */
 
183
N_("BLOB column '%-.192s' can't be used in key specification with the used table type"),
 
184
/* ER_TOO_BIG_FIELDLENGTH 42000 S1009 */
 
185
N_("Column length too big for column '%-.192s' (max = %d); use BLOB or TEXT instead"),
 
186
/* ER_WRONG_AUTO_KEY 42000 S1009 */
 
187
N_("Incorrect table definition; there can be only one auto column and it must be defined as a key"),
 
188
/* ER_READY   */
 
189
N_("%s: ready for connections.\nVersion: '%s'  socket: '%s'  port: %u\n"),
 
190
/* ER_NORMAL_SHUTDOWN   */
 
191
N_("%s: Normal shutdown\n"),
 
192
/* ER_GOT_SIGNAL   */
 
193
N_("%s: Got signal %d. Aborting!\n"),
 
194
/* ER_SHUTDOWN_COMPLETE   */
 
195
N_("%s: Shutdown complete\n"),
 
196
/* ER_FORCING_CLOSE 08S01  */
 
197
N_("%s: Forcing close of thread %" PRIu64 " user: '%-.48s'\n"),
 
198
/* ER_IPSOCK_ERROR 08S01  */
 
199
N_("Can't create IP socket"),
 
200
/* ER_NO_SUCH_INDEX 42S12 S1009 */
 
201
N_("Table '%-.192s' has no index like the one used in CREATE INDEX; recreate the table"),
 
202
/* ER_WRONG_FIELD_TERMINATORS 42000 S1009 */
 
203
N_("Field separator argument '%-.32s' with length '%d' is not what is expected; check the manual"),
 
204
/* ER_BLOBS_AND_NO_TERMINATED 42000 S1009 */
 
205
N_("You can't use fixed rowlength with BLOBs; please use 'fields terminated by'"),
 
206
/* ER_TEXTFILE_NOT_READABLE   */
 
207
N_("The file '%-.128s' must be in the database directory or be readable by all"),
 
208
/* ER_FILE_EXISTS_ERROR   */
 
209
N_("File '%-.200s' already exists"),
 
210
/* ER_LOAD_INFO   */
 
211
N_("Records: %ld  Deleted: %ld  Skipped: %ld  Warnings: %ld"),
 
212
/* ER_ALTER_INFO   */
 
213
N_("Records: %ld  Duplicates: %ld"),
 
214
/* ER_WRONG_SUB_KEY   */
 
215
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"),
 
216
/* ER_CANT_REMOVE_ALL_FIELDS 42000  */
 
217
N_("You can't delete all columns with ALTER TABLE; use DROP TABLE instead"),
 
218
/* ER_CANT_DROP_FIELD_OR_KEY 42000  */
 
219
N_("Can't DROP '%-.192s'; check that column/key exists"),
 
220
/* ER_INSERT_INFO   */
 
221
N_("Records: %ld  Duplicates: %ld  Warnings: %ld"),
 
222
/* ER_UPDATE_TABLE_USED   */
 
223
N_("You can't specify target table '%-.192s' for update in FROM clause"),
 
224
/* ER_NO_SUCH_THREAD   */
 
225
N_("Unknown thread id: %lu"),
 
226
/* ER_KILL_DENIED_ERROR   */
 
227
N_("You are not owner of thread %lu"),
 
228
/* ER_NO_TABLES_USED   */
 
229
N_("No tables used"),
 
230
/* ER_TOO_BIG_SET   */
 
231
N_("Too many strings for column %-.192s and SET"),
 
232
/* ER_NO_UNIQUE_LOGFILE   */
 
233
N_("Can't generate a unique log-filename %-.200s.(1-999)\n"),
 
234
/* ER_TABLE_NOT_LOCKED_FOR_WRITE   */
 
235
N_("Table '%-.192s' was locked with a READ lock and can't be updated"),
 
236
/* ER_TABLE_NOT_LOCKED   */
 
237
N_("Table '%-.192s' was not locked with LOCK TABLES"),
 
238
/* ER_BLOB_CANT_HAVE_DEFAULT 42000  */
 
239
N_("BLOB/TEXT column '%-.192s' can't have a default value"),
 
240
/* ER_WRONG_DB_NAME 42000  */
 
241
N_("Incorrect database name '%-.100s'"),
 
242
/* ER_WRONG_TABLE_NAME 42000  */
 
243
N_("Incorrect table name '%-.100s'"),
 
244
/* ER_TOO_BIG_SELECT 42000  */
 
245
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"),
 
246
/* ER_UNKNOWN_ERROR   */
 
247
N_("Unknown error"),
 
248
/* ER_UNKNOWN_PROCEDURE 42000  */
 
249
N_("Unknown procedure '%-.192s'"),
 
250
/* ER_WRONG_PARAMCOUNT_TO_PROCEDURE 42000  */
 
251
N_("Incorrect parameter count to procedure '%-.192s'"),
 
252
/* ER_WRONG_PARAMETERS_TO_PROCEDURE   */
 
253
N_("Incorrect parameters to procedure '%-.192s'"),
 
254
/* ER_UNKNOWN_TABLE 42S02  */
 
255
N_("Unknown table '%-.192s' in %-.32s"),
 
256
/* ER_FIELD_SPECIFIED_TWICE 42000  */
 
257
N_("Column '%-.192s' specified twice"),
 
258
/* ER_INVALID_GROUP_FUNC_USE   */
 
259
N_("Invalid use of group function"),
 
260
/* ER_UNSUPPORTED_EXTENSION 42000  */
 
261
N_("Table '%-.192s' uses an extension that doesn't exist in this Drizzle version"),
 
262
/* ER_TABLE_MUST_HAVE_COLUMNS 42000  */
 
263
N_("A table must have at least 1 column"),
 
264
/* ER_RECORD_FILE_FULL   */
 
265
N_("The table '%-.192s' is full"),
 
266
/* ER_UNKNOWN_CHARACTER_SET 42000  */
 
267
N_("Unknown character set: '%-.64s'"),
 
268
/* ER_TOO_MANY_TABLES   */
 
269
N_("Too many tables; Drizzle can only use %d tables in a join"),
 
270
/* ER_TOO_MANY_FIELDS   */
 
271
N_("Too many columns"),
 
272
/* ER_TOO_BIG_ROWSIZE 42000  */
 
273
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"),
 
274
/* ER_STACK_OVERRUN   */
 
275
N_("Thread stack overrun:  Used: %ld of a %ld stack.  Use 'drizzled -O thread_stack=#' to specify a bigger stack if needed"),
 
276
/* ER_WRONG_OUTER_JOIN 42000  */
 
277
N_("Cross dependency found in OUTER JOIN; examine your ON conditions"),
 
278
/* ER_NULL_COLUMN_IN_INDEX 42000  */
 
279
N_("Table handler doesn't support NULL in given index. Please change column '%-.192s' to be NOT NULL or use another handler"),
 
280
/* ER_CANT_FIND_UDF   */
 
281
N_("Can't load function '%-.192s'"),
 
282
/* ER_CANT_INITIALIZE_UDF   */
 
283
N_("Can't initialize function '%-.192s'; %-.80s"),
 
284
/* ER_PLUGIN_NO_PATHS   */
 
285
N_("No paths allowed for plugin library"),
 
286
/* ER_UDF_EXISTS   */
 
287
N_("Plugin '%-.192s' already exists"),
 
288
/* ER_CANT_OPEN_LIBRARY   */
 
289
N_("Can't open shared library '%-.192s' (errno: %d %-.128s)"),
 
290
/* ER_CANT_FIND_DL_ENTRY */
 
291
N_("Can't find symbol '%-.128s' in library '%-.128s'"),
 
292
/* ER_FUNCTION_NOT_DEFINED   */
 
293
N_("Function '%-.192s' is not defined"),
 
294
/* ER_HOST_IS_BLOCKED   */
 
295
N_("Host '%-.64s' is blocked because of many connection errors; unblock with 'drizzleadmin flush-hosts'"),
 
296
/* ER_HOST_NOT_PRIVILEGED   */
 
297
N_("Host '%-.64s' is not allowed to connect to this Drizzle server"),
 
298
/* ER_PASSWORD_ANONYMOUS_USER 42000  */
 
299
N_("You are using Drizzle as an anonymous user and anonymous users are not allowed to change passwords"),
 
300
/* ER_PASSWORD_NOT_ALLOWED 42000  */
 
301
N_("You must have privileges to update tables in the drizzle database to be able to change passwords for others"),
 
302
/* ER_PASSWORD_NO_MATCH 42000  */
 
303
N_("Can't find any matching row in the user table"),
 
304
/* ER_UPDATE_INFO   */
 
305
N_("Rows matched: %ld  Changed: %ld  Warnings: %ld"),
 
306
/* ER_CANT_CREATE_THREAD   */
 
307
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"),
 
308
/* ER_WRONG_VALUE_COUNT_ON_ROW 21S01  */
 
309
N_("Column count doesn't match value count at row %ld"),
 
310
/* ER_CANT_REOPEN_TABLE   */
 
311
N_("Can't reopen table: '%-.192s'"),
 
312
/* ER_INVALID_USE_OF_NULL 22004  */
 
313
N_("Invalid use of NULL value"),
 
314
/* ER_REGEXP_ERROR 42000  */
 
315
N_("Got error '%-.64s' from regexp"),
 
316
/* ER_MIX_OF_GROUP_FUNC_AND_FIELDS 42000  */
 
317
N_("Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause"),
 
318
/* ER_NONEXISTING_GRANT 42000  */
 
319
N_("There is no such grant defined for user '%-.48s' on host '%-.64s'"),
 
320
/* ER_TABLEACCESS_DENIED_ERROR 42000  */
 
321
N_("%-.16s command denied to user '%-.48s'@'%-.64s' for table '%-.192s'"),
 
322
/* ER_COLUMNACCESS_DENIED_ERROR 42000  */
 
323
N_("%-.16s command denied to user '%-.48s'@'%-.64s' for column '%-.192s' in table '%-.192s'"),
 
324
/* ER_ILLEGAL_GRANT_FOR_TABLE 42000  */
 
325
N_("Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used"),
 
326
/* ER_GRANT_WRONG_HOST_OR_USER 42000  */
 
327
N_("The host or user argument to GRANT is too long"),
 
328
/* ER_NO_SUCH_TABLE 42S02  */
 
329
N_("Table '%-.192s.%-.192s' doesn't exist"),
 
330
/* ER_NONEXISTING_TABLE_GRANT 42000  */
 
331
N_("There is no such grant defined for user '%-.48s' on host '%-.64s' on table '%-.192s'"),
 
332
/* ER_NOT_ALLOWED_COMMAND 42000  */
 
333
N_("The used command is not allowed with this Drizzle version"),
 
334
/* ER_SYNTAX_ERROR 42000  */
 
335
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"),
 
336
/* ER_DELAYED_CANT_CHANGE_LOCK   */
 
337
N_("Delayed insert thread couldn't get requested lock for table %-.192s"),
 
338
/* ER_TOO_MANY_DELAYED_THREADS   */
 
339
N_("Too many delayed threads in use"),
 
340
/* ER_ABORTING_CONNECTION 08S01  */
 
341
N_("Aborted connection %ld to db: '%-.192s' user: '%-.48s' (%-.64s)"),
 
342
/* ER_NET_PACKET_TOO_LARGE 08S01  */
 
343
N_("Got a packet bigger than 'max_allowed_packet' bytes"),
 
344
/* ER_NET_READ_ERROR_FROM_PIPE 08S01  */
 
345
N_("Got a read error from the connection pipe"),
 
346
/* ER_NET_FCNTL_ERROR 08S01  */
 
347
N_("Got an error from fcntl()"),
 
348
/* ER_NET_PACKETS_OUT_OF_ORDER 08S01  */
 
349
N_("Got packets out of order"),
 
350
/* ER_NET_UNCOMPRESS_ERROR 08S01  */
 
351
N_("Couldn't uncompress communication packet"),
 
352
/* ER_NET_READ_ERROR 08S01  */
 
353
N_("Got an error reading communication packets"),
 
354
/* ER_NET_READ_INTERRUPTED 08S01  */
 
355
N_("Got timeout reading communication packets"),
 
356
/* ER_NET_ERROR_ON_WRITE 08S01  */
 
357
N_("Got an error writing communication packets"),
 
358
/* ER_NET_WRITE_INTERRUPTED 08S01  */
 
359
N_("Got timeout writing communication packets"),
 
360
/* ER_TOO_LONG_STRING 42000  */
 
361
N_("Result string is longer than 'max_allowed_packet' bytes"),
 
362
/* ER_TABLE_CANT_HANDLE_BLOB 42000  */
 
363
N_("The used table type doesn't support BLOB/TEXT columns"),
 
364
/* ER_TABLE_CANT_HANDLE_AUTO_INCREMENT 42000  */
 
365
N_("The used table type doesn't support AUTO_INCREMENT columns"),
 
366
/* ER_DELAYED_INSERT_TABLE_LOCKED   */
 
367
N_("INSERT DELAYED can't be used with table '%-.192s' because it is locked with LOCK TABLES"),
 
368
/* ER_WRONG_COLUMN_NAME 42000  */
 
369
N_("Incorrect column name '%-.100s'"),
 
370
/* ER_WRONG_KEY_COLUMN 42000  */
 
371
N_("The used storage engine can't index column '%-.192s'"),
 
372
/* ER_WRONG_MRG_TABLE   */
 
373
N_("Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist"),
 
374
/* ER_DUP_UNIQUE 23000  */
 
375
N_("Can't write, because of unique constraint, to table '%-.192s'"),
 
376
/* ER_BLOB_KEY_WITHOUT_LENGTH 42000  */
 
377
N_("BLOB/TEXT column '%-.192s' used in key specification without a key length"),
 
378
/* ER_PRIMARY_CANT_HAVE_NULL 42000  */
 
379
N_("All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead"),
 
380
/* ER_TOO_MANY_ROWS 42000  */
 
381
N_("Result consisted of more than one row"),
 
382
/* ER_REQUIRES_PRIMARY_KEY 42000  */
 
383
N_("This table type requires a primary key"),
 
384
/* ER_NO_RAID_COMPILED   */
 
385
N_("This version of Drizzle is not compiled with RAID support"),
 
386
/* ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE   */
 
387
N_("You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column"),
 
388
/* ER_KEY_DOES_NOT_EXITS 42000 S1009 */
 
389
N_("Key '%-.192s' doesn't exist in table '%-.192s'"),
 
390
/* ER_CHECK_NO_SUCH_TABLE 42000  */
 
391
N_("Can't open table"),
 
392
/* ER_CHECK_NOT_IMPLEMENTED 42000  */
 
393
N_("The storage engine for the table doesn't support %s"),
 
394
/* ER_CANT_DO_THIS_DURING_AN_TRANSACTION 25000  */
 
395
N_("You are not allowed to execute this command in a transaction"),
 
396
/* ER_ERROR_DURING_COMMIT   */
 
397
N_("Got error %d during COMMIT"),
 
398
/* ER_ERROR_DURING_ROLLBACK   */
 
399
N_("Got error %d during ROLLBACK"),
 
400
/* ER_ERROR_DURING_FLUSH_LOGS   */
 
401
N_("Got error %d during FLUSH_LOGS"),
 
402
/* ER_ERROR_DURING_CHECKPOINT   */
 
403
N_("Got error %d during CHECKPOINT"),
 
404
/* ER_NEW_ABORTING_CONNECTION 08S01  */
 
405
N_("Aborted connection %"PRIi64" to db: '%-.192s' user: '%-.48s' host: '%-.64s' (%-.64s)"),
 
406
/* ER_DUMP_NOT_IMPLEMENTED   */
 
407
N_("The storage engine for the table does not support binary table dump"),
 
408
/* ER_FLUSH_MASTER_BINLOG_CLOSED   */
 
409
N_("Binlog closed, cannot RESET MASTER"),
 
410
/* ER_INDEX_REBUILD   */
 
411
N_("Failed rebuilding the index of  dumped table '%-.192s'"),
 
412
/* ER_MASTER   */
 
413
N_("Error from master: '%-.64s'"),
 
414
/* ER_MASTER_NET_READ 08S01  */
 
415
N_("Net error reading from master"),
 
416
/* ER_MASTER_NET_WRITE 08S01  */
 
417
N_("Net error writing to master"),
 
418
/* ER_FT_MATCHING_KEY_NOT_FOUND   */
 
419
N_("Can't find FULLTEXT index matching the column list"),
 
420
/* ER_LOCK_OR_ACTIVE_TRANSACTION   */
 
421
N_("Can't execute the given command because you have active locked tables or an active transaction"),
 
422
/* ER_UNKNOWN_SYSTEM_VARIABLE   */
 
423
N_("Unknown system variable '%-.64s'"),
 
424
/* ER_CRASHED_ON_USAGE   */
 
425
N_("Table '%-.192s' is marked as crashed and should be repaired"),
 
426
/* ER_CRASHED_ON_REPAIR   */
 
427
N_("Table '%-.192s' is marked as crashed and last (automatic?) repair failed"),
 
428
/* ER_WARNING_NOT_COMPLETE_ROLLBACK   */
 
429
N_("Some non-transactional changed tables couldn't be rolled back"),
 
430
/* ER_TRANS_CACHE_FULL   */
 
431
N_("Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this drizzled variable and try again"),
 
432
/* ER_SLAVE_MUST_STOP   */
 
433
N_("This operation cannot be performed with a running slave; run STOP SLAVE first"),
 
434
/* ER_SLAVE_NOT_RUNNING   */
 
435
N_("This operation requires a running slave; configure slave and do START SLAVE"),
 
436
/* ER_BAD_SLAVE   */
 
437
N_("The server is not configured as slave; fix with CHANGE MASTER TO"),
 
438
/* ER_MASTER_INFO   */
 
439
N_("Could not initialize master info structure; more error messages can be found in the Drizzle error log"),
 
440
/* ER_SLAVE_THREAD   */
 
441
N_("Could not create slave thread; check system resources"),
 
442
/* ER_TOO_MANY_USER_CONNECTIONS 42000  */
 
443
N_("User %-.64s already has more than 'max_user_connections' active connections"),
 
444
/* ER_SET_CONSTANTS_ONLY   */
 
445
N_("You may only use constant expressions with SET"),
 
446
/* ER_LOCK_WAIT_TIMEOUT   */
 
447
N_("Lock wait timeout exceeded; try restarting transaction"),
 
448
/* ER_LOCK_TABLE_FULL   */
 
449
N_("The total number of locks exceeds the lock table size"),
 
450
/* ER_READ_ONLY_TRANSACTION 25000  */
 
451
N_("Update locks cannot be acquired during a READ UNCOMMITTED transaction"),
 
452
/* ER_DROP_DB_WITH_READ_LOCK   */
 
453
N_("DROP DATABASE not allowed while thread is holding global read lock"),
 
454
/* ER_CREATE_DB_WITH_READ_LOCK   */
 
455
N_("CREATE DATABASE not allowed while thread is holding global read lock"),
 
456
/* ER_WRONG_ARGUMENTS   */
 
457
N_("Incorrect arguments to %s"),
 
458
/* ER_NO_PERMISSION_TO_CREATE_USER 42000  */
 
459
N_("'%-.48s'@'%-.64s' is not allowed to create new users"),
 
460
/* ER_UNION_TABLES_IN_DIFFERENT_DIR   */
 
461
N_("Incorrect table definition; all MERGE tables must be in the same database"),
 
462
/* ER_LOCK_DEADLOCK 40001  */
 
463
N_("Deadlock found when trying to get lock; try restarting transaction"),
 
464
/* ER_TABLE_CANT_HANDLE_FT   */
 
465
N_("The used table type doesn't support FULLTEXT indexes"),
 
466
/* ER_CANNOT_ADD_FOREIGN   */
 
467
N_("Cannot add foreign key constraint"),
 
468
/* ER_NO_REFERENCED_ROW 23000  */
 
469
N_("Cannot add or update a child row: a foreign key constraint fails"),
 
470
/* ER_ROW_IS_REFERENCED 23000  */
 
471
N_("Cannot delete or update a parent row: a foreign key constraint fails"),
 
472
/* ER_CONNECT_TO_MASTER 08S01  */
 
473
N_("Error connecting to master: %-.128s"),
 
474
/* ER_QUERY_ON_MASTER   */
 
475
N_("Error running query on master: %-.128s"),
 
476
/* ER_ERROR_WHEN_EXECUTING_COMMAND   */
 
477
N_("Error when executing command %s: %-.128s"),
 
478
/* ER_WRONG_USAGE   */
 
479
N_("Incorrect usage of %s and %s"),
 
480
/* ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 21000  */
 
481
N_("The used SELECT statements have a different number of columns"),
 
482
/* ER_CANT_UPDATE_WITH_READLOCK   */
 
483
N_("Can't execute the query because you have a conflicting read lock"),
 
484
/* ER_MIXING_NOT_ALLOWED   */
 
485
N_("Mixing of transactional and non-transactional tables is disabled"),
 
486
/* ER_DUP_ARGUMENT   */
 
487
N_("Option '%s' used twice in statement"),
 
488
/* ER_USER_LIMIT_REACHED 42000  */
 
489
N_("User '%-.64s' has exceeded the '%s' resource (current value: %ld)"),
 
490
/* ER_SPECIFIC_ACCESS_DENIED_ERROR 42000  */
 
491
N_("Access denied; you need the %-.128s privilege for this operation"),
 
492
/* ER_LOCAL_VARIABLE   */
 
493
N_("Variable '%-.64s' is a SESSION variable and can't be used with SET GLOBAL"),
 
494
/* ER_GLOBAL_VARIABLE   */
 
495
N_("Variable '%-.64s' is a GLOBAL variable and should be set with SET GLOBAL"),
 
496
/* ER_NO_DEFAULT 42000  */
 
497
N_("Variable '%-.64s' doesn't have a default value"),
 
498
/* ER_WRONG_VALUE_FOR_VAR 42000  */
 
499
N_("Variable '%-.64s' can't be set to the value of '%-.200s'"),
 
500
/* ER_WRONG_TYPE_FOR_VAR 42000  */
 
501
N_("Incorrect argument type to variable '%-.64s'"),
 
502
/* ER_VAR_CANT_BE_READ   */
 
503
N_("Variable '%-.64s' can only be set, not read"),
 
504
/* ER_CANT_USE_OPTION_HERE 42000  */
 
505
N_("Incorrect usage/placement of '%s'"),
 
506
/* ER_NOT_SUPPORTED_YET 42000  */
 
507
N_("This version of Drizzle doesn't yet support '%s'"),
 
508
/* ER_MASTER_FATAL_ERROR_READING_BINLOG   */
 
509
N_("Got fatal error %d: '%-.128s' from master when reading data from binary log"),
 
510
/* ER_SLAVE_IGNORED_TABLE   */
 
511
N_("Slave SQL thread ignored the query because of replicate-*-table rules"),
 
512
/* ER_INCORRECT_GLOBAL_LOCAL_VAR   */
 
513
N_("Variable '%-.192s' is a %s variable"),
 
514
/* ER_WRONG_FK_DEF 42000  */
 
515
N_("Incorrect foreign key definition for '%-.192s': %s"),
 
516
/* ER_KEY_REF_DO_NOT_MATCH_TABLE_REF   */
 
517
N_("Key reference and table reference don't match"),
 
518
/* ER_OPERAND_COLUMNS 21000  */
 
519
N_("Operand should contain %d column(s)"),
 
520
/* ER_SUBQUERY_NO_1_ROW 21000  */
 
521
N_("Subquery returns more than 1 row"),
 
522
/* ER_UNKNOWN_STMT_HANDLER   */
 
523
N_("Unknown prepared statement handler (%.*s) given to %s"),
 
524
/* ER_CORRUPT_HELP_DB   */
 
525
N_("Help database is corrupt or does not exist"),
 
526
/* ER_CYCLIC_REFERENCE   */
 
527
N_("Cyclic reference on subqueries"),
 
528
/* ER_AUTO_CONVERT   */
 
529
N_("Converting column '%s' from %s to %s"),
 
530
/* ER_ILLEGAL_REFERENCE 42S22  */
 
531
N_("Reference '%-.64s' not supported (%s)"),
 
532
/* ER_DERIVED_MUST_HAVE_ALIAS 42000  */
 
533
N_("Every derived table must have its own alias"),
 
534
/* ER_SELECT_REDUCED 01000  */
 
535
N_("Select %u was reduced during optimization"),
 
536
/* ER_TABLENAME_NOT_ALLOWED_HERE 42000  */
 
537
N_("Table '%-.192s' from one of the SELECTs cannot be used in %-.32s"),
 
538
/* ER_NOT_SUPPORTED_AUTH_MODE 08004  */
 
539
N_("Client does not support authentication protocol requested by server; consider upgrading Drizzle client"),
 
540
/* ER_SPATIAL_CANT_HAVE_NULL 42000  */
 
541
N_("All parts of a SPATIAL index must be NOT NULL"),
 
542
/* ER_COLLATION_CHARSET_MISMATCH 42000  */
 
543
N_("COLLATION '%s' is not valid for CHARACTER SET '%s'"),
 
544
/* ER_SLAVE_WAS_RUNNING   */
 
545
N_("Slave is already running"),
 
546
/* ER_SLAVE_WAS_NOT_RUNNING   */
 
547
N_("Slave already has been stopped"),
 
548
/* ER_TOO_BIG_FOR_UNCOMPRESS   */
 
549
N_("Uncompressed data size too large; the maximum size is %d (probably, length of uncompressed data was corrupted)"),
 
550
/* ER_ZLIB_Z_MEM_ERROR   */
 
551
N_("ZLIB: Not enough memory"),
 
552
/* ER_ZLIB_Z_BUF_ERROR   */
 
553
N_("ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)"),
 
554
/* ER_ZLIB_Z_DATA_ERROR   */
 
555
N_("ZLIB: Input data corrupted"),
 
556
/* ER_CUT_VALUE_GROUP_CONCAT   */
 
557
N_("%d line(s) were cut by GROUP_CONCAT()"),
 
558
/* ER_WARN_TOO_FEW_RECORDS 01000  */
 
559
N_("Row %ld doesn't contain data for all columns"),
 
560
/* ER_WARN_TOO_MANY_RECORDS 01000  */
 
561
N_("Row %ld was truncated; it contained more data than there were input columns"),
 
562
/* ER_WARN_NULL_TO_NOTNULL 22004  */
 
563
N_("Column set to default value; NULL supplied to NOT NULL column '%s' at row %ld"),
 
564
/* ER_WARN_DATA_OUT_OF_RANGE 22003  */
 
565
N_("Out of range value for column '%s' at row %ld"),
 
566
/* WARN_DATA_TRUNCATED 01000  */
 
567
N_("Data truncated for column '%s' at row %ld"),
 
568
/* ER_WARN_USING_OTHER_HANDLER   */
 
569
N_("Using storage engine %s for table '%s'"),
 
570
/* ER_CANT_AGGREGATE_2COLLATIONS   */
 
571
N_("Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'"),
 
572
/* ER_DROP_USER   */
 
573
N_("Cannot drop one or more of the requested users"),
 
574
/* ER_REVOKE_GRANTS   */
 
575
N_("Can't revoke all privileges for one or more of the requested users"),
 
576
/* ER_CANT_AGGREGATE_3COLLATIONS   */
 
577
N_("Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation '%s'"),
 
578
/* ER_CANT_AGGREGATE_NCOLLATIONS   */
 
579
N_("Illegal mix of collations for operation '%s'"),
 
580
/* ER_VARIABLE_IS_NOT_STRUCT   */
 
581
N_("Variable '%-.64s' is not a variable component (can't be used as XXXX.variable_name)"),
 
582
/* ER_UNKNOWN_COLLATION   */
 
583
N_("Unknown collation: '%-.64s'"),
 
584
/* ER_SLAVE_IGNORED_SSL_PARAMS   */
 
585
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"),
 
586
/* ER_SERVER_IS_IN_SECURE_AUTH_MODE   */
 
587
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"),
 
588
/* ER_WARN_FIELD_RESOLVED   */
 
589
N_("Field or reference '%-.192s%s%-.192s%s%-.192s' of SELECT #%d was resolved in SELECT #%d"),
 
590
/* ER_BAD_SLAVE_UNTIL_COND   */
 
591
N_("Incorrect parameter or combination of parameters for START SLAVE UNTIL"),
 
592
/* ER_MISSING_SKIP_SLAVE   */
 
593
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"),
 
594
/* ER_UNTIL_COND_IGNORED   */
 
595
N_("SQL thread is not to be started so UNTIL options are ignored"),
 
596
/* ER_WRONG_NAME_FOR_INDEX 42000  */
 
597
N_("Incorrect index name '%-.100s'"),
 
598
/* ER_WRONG_NAME_FOR_CATALOG 42000  */
 
599
N_("Incorrect catalog name '%-.100s'"),
 
600
/* ER_WARN_QC_RESIZE   */
 
601
N_("Query cache failed to set size %lu; new query cache size is %lu"),
 
602
/* ER_BAD_FT_COLUMN   */
 
603
N_("Column '%-.192s' cannot be part of FULLTEXT index"),
 
604
/* ER_UNKNOWN_KEY_CACHE   */
 
605
N_("Unknown key cache '%-.100s'"),
 
606
/* ER_WARN_HOSTNAME_WONT_WORK   */
 
607
N_("Drizzle is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work"),
 
608
/* ER_UNKNOWN_STORAGE_ENGINE 42000  */
 
609
N_("Unknown table engine '%s'"),
 
610
/* ER_WARN_DEPRECATED_SYNTAX   */
 
611
N_("'%s' is deprecated; use '%s' instead"),
 
612
/* ER_NON_UPDATABLE_TABLE   */
 
613
N_("The target table %-.100s of the %s is not updatable"),
 
614
/* ER_FEATURE_DISABLED   */
 
615
N_("The '%s' feature is disabled; you need Drizzle built with '%s' to have it working"),
 
616
/* ER_OPTION_PREVENTS_STATEMENT   */
 
617
N_("The Drizzle server is running with the %s option so it cannot execute this statement"),
 
618
/* ER_DUPLICATED_VALUE_IN_TYPE   */
 
619
N_("Column '%-.100s' has duplicated value '%-.64s' in %s"),
 
620
/* ER_TRUNCATED_WRONG_VALUE 22007  */
 
621
N_("Truncated incorrect %-.32s value: '%-.128s'"),
 
622
/* ER_TOO_MUCH_AUTO_TIMESTAMP_COLS   */
 
623
N_("Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause"),
 
624
/* ER_INVALID_ON_UPDATE   */
 
625
N_("Invalid ON UPDATE clause for '%-.192s' column"),
 
626
/* ER_UNSUPPORTED_PS   */
 
627
N_("This command is not supported in the prepared statement protocol yet"),
 
628
/* ER_GET_ERRMSG   */
 
629
N_("Got error %d '%-.100s' from %s"),
 
630
/* ER_GET_TEMPORARY_ERRMSG   */
 
631
N_("Got temporary error %d '%-.100s' from %s"),
 
632
/* ER_UNKNOWN_TIME_ZONE   */
 
633
N_("Unknown or incorrect time zone: '%-.64s'"),
 
634
/* ER_WARN_INVALID_TIMESTAMP   */
 
635
N_("Invalid TIMESTAMP value in column '%s' at row %ld"),
 
636
/* ER_INVALID_CHARACTER_STRING   */
 
637
N_("Invalid %s character string: '%.64s'"),
 
638
/* ER_WARN_ALLOWED_PACKET_OVERFLOWED   */
 
639
N_("Result of %s() was larger than max_allowed_packet (%ld) - truncated"),
 
640
/* ER_CONFLICTING_DECLARATIONS   */
 
641
N_("Conflicting declarations: '%s%s' and '%s%s'"),
 
642
/* ER_SP_NO_RECURSIVE_CREATE 2F003  */
 
643
N_("Can't create a %s from within another stored routine"),
 
644
/* ER_SP_ALREADY_EXISTS 42000  */
 
645
N_("%s %s already exists"),
 
646
/* ER_SP_DOES_NOT_EXIST 42000  */
 
647
N_("%s %s does not exist"),
 
648
/* ER_SP_DROP_FAILED   */
 
649
N_("Failed to DROP %s %s"),
 
650
/* ER_SP_STORE_FAILED   */
 
651
N_("Failed to CREATE %s %s"),
 
652
/* ER_SP_LILABEL_MISMATCH 42000  */
 
653
N_("%s with no matching label: %s"),
 
654
/* ER_SP_LABEL_REDEFINE 42000  */
 
655
N_("Redefining label %s"),
 
656
/* ER_SP_LABEL_MISMATCH 42000  */
 
657
N_("End-label %s without match"),
 
658
/* ER_SP_UNINIT_VAR 01000  */
 
659
N_("Referring to uninitialized variable %s"),
 
660
/* ER_SP_BADSELECT 0A000  */
 
661
N_("PROCEDURE %s can't return a result set in the given context"),
 
662
/* ER_SP_BADRETURN 42000  */
 
663
N_("RETURN is only allowed in a FUNCTION"),
 
664
/* ER_SP_BADSTATEMENT 0A000  */
 
665
N_("%s is not allowed in stored procedures"),
 
666
/* ER_UPDATE_LOG_DEPRECATED_IGNORED 42000  */
 
667
N_("The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored"),
 
668
/* ER_UPDATE_LOG_DEPRECATED_TRANSLATED 42000  */
 
669
N_("The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN"),
 
670
/* ER_QUERY_INTERRUPTED 70100  */
 
671
N_("Query execution was interrupted"),
 
672
/* ER_SP_WRONG_NO_OF_ARGS 42000  */
 
673
N_("Incorrect number of arguments for %s %s; expected %u, got %u"),
 
674
/* ER_SP_COND_MISMATCH 42000  */
 
675
N_("Undefined CONDITION: %s"),
 
676
/* ER_SP_NORETURN 42000  */
 
677
N_("No RETURN found in FUNCTION %s"),
 
678
/* ER_SP_NORETURNEND 2F005  */
 
679
N_("FUNCTION %s ended without RETURN"),
 
680
/* ER_SP_BAD_CURSOR_QUERY 42000  */
 
681
N_("Cursor statement must be a SELECT"),
 
682
/* ER_SP_BAD_CURSOR_SELECT 42000  */
 
683
N_("Cursor SELECT must not have INTO"),
 
684
/* ER_SP_CURSOR_MISMATCH 42000  */
 
685
N_("Undefined CURSOR: %s"),
 
686
/* ER_SP_CURSOR_ALREADY_OPEN 24000  */
 
687
N_("Cursor is already open"),
 
688
/* ER_SP_CURSOR_NOT_OPEN 24000  */
 
689
N_("Cursor is not open"),
 
690
/* ER_SP_UNDECLARED_VAR 42000  */
 
691
N_("Undeclared variable: %s"),
 
692
/* ER_SP_WRONG_NO_OF_FETCH_ARGS   */
 
693
N_("Incorrect number of FETCH variables"),
 
694
/* ER_SP_FETCH_NO_DATA 02000  */
 
695
N_("No data - zero rows fetched, selected, or processed"),
 
696
/* ER_SP_DUP_PARAM 42000  */
 
697
N_("Duplicate parameter: %s"),
 
698
/* ER_SP_DUP_VAR 42000  */
 
699
N_("Duplicate variable: %s"),
 
700
/* ER_SP_DUP_COND 42000  */
 
701
N_("Duplicate condition: %s"),
 
702
/* ER_SP_DUP_CURS 42000  */
 
703
N_("Duplicate cursor: %s"),
 
704
/* ER_SP_CANT_ALTER   */
 
705
N_("Failed to ALTER %s %s"),
 
706
/* ER_SP_SUBSELECT_NYI 0A000  */
 
707
N_("Subquery value not supported"),
 
708
/* ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG 0A000 */
 
709
N_("%s is not allowed in stored function or trigger"),
 
710
/* ER_SP_VARCOND_AFTER_CURSHNDLR 42000  */
 
711
N_("Variable or condition declaration after cursor or handler declaration"),
 
712
/* ER_SP_CURSOR_AFTER_HANDLER 42000  */
 
713
N_("Cursor declaration after handler declaration"),
 
714
/* ER_SP_CASE_NOT_FOUND 20000  */
 
715
N_("Case not found for CASE statement"),
 
716
/* ER_FPARSER_TOO_BIG_FILE   */
 
717
N_("Configuration file '%-.192s' is too big"),
 
718
/* ER_FPARSER_BAD_HEADER   */
 
719
N_("Malformed file type header in file '%-.192s'"),
 
720
/* ER_FPARSER_EOF_IN_COMMENT   */
 
721
N_("Unexpected end of file while parsing comment '%-.200s'"),
 
722
/* ER_FPARSER_ERROR_IN_PARAMETER   */
 
723
N_("Error while parsing parameter '%-.192s' (line: '%-.192s')"),
 
724
/* ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER   */
 
725
N_("Unexpected end of file while skipping unknown parameter '%-.192s'"),
 
726
/* ER_VIEW_NO_EXPLAIN   */
 
727
N_("EXPLAIN/SHOW can not be issued; lacking privileges for underlying table"),
 
728
/* ER_UNUSED1346   */
 
729
N_("UNUSED"),
 
730
/* ER_WRONG_OBJECT   */
 
731
N_("'%-.192s.%-.192s' is not %s"),
 
732
/* ER_NONUPDATEABLE_COLUMN   */
 
733
N_("Column '%-.192s' is not updatable"),
 
734
/* ER_VIEW_SELECT_DERIVED   */
 
735
N_("View's SELECT contains a subquery in the FROM clause"),
 
736
/* ER_VIEW_SELECT_CLAUSE   */
 
737
N_("View's SELECT contains a '%s' clause"),
 
738
/* ER_VIEW_SELECT_VARIABLE   */
 
739
N_("View's SELECT contains a variable or parameter"),
 
740
/* ER_VIEW_SELECT_TMPTABLE   */
 
741
N_("View's SELECT refers to a temporary table '%-.192s'"),
 
742
/* ER_VIEW_WRONG_LIST   */
 
743
N_("View's SELECT and view's field list have different column counts"),
 
744
/* ER_WARN_VIEW_MERGE   */
 
745
N_("View merge algorithm can't be used here for now (assumed undefined algorithm)"),
 
746
/* ER_WARN_VIEW_WITHOUT_KEY   */
 
747
N_("View being updated does not have complete key of underlying table in it"),
 
748
/* ER_VIEW_INVALID   */
 
749
N_("View '%-.192s.%-.192s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them"),
 
750
/* ER_SP_NO_DROP_SP   */
 
751
N_("Can't drop or alter a %s from within another stored routine"),
 
752
/* ER_SP_GOTO_IN_HNDLR   */
 
753
N_("GOTO is not allowed in a stored procedure handler"),
 
754
/* ER_TRG_ALREADY_EXISTS   */
 
755
N_("Trigger already exists"),
 
756
/* ER_TRG_DOES_NOT_EXIST   */
 
757
N_("Trigger does not exist"),
 
758
/* ER_TRG_ON_VIEW_OR_TEMP_TABLE   */
 
759
N_("Trigger's '%-.192s' is view or temporary table"),
 
760
/* ER_TRG_CANT_CHANGE_ROW   */
 
761
N_("Updating of %s row is not allowed in %strigger"),
 
762
/* ER_TRG_NO_SUCH_ROW_IN_TRG   */
 
763
N_("There is no %s row in %s trigger"),
 
764
/* ER_NO_DEFAULT_FOR_FIELD   */
 
765
N_("Field '%-.192s' doesn't have a default value"),
 
766
/* ER_DIVISION_BY_ZERO 22012  */
 
767
N_("Division by 0"),
 
768
/* ER_TRUNCATED_WRONG_VALUE_FOR_FIELD   */
 
769
N_("Incorrect %-.32s value: '%-.128s' for column '%.192s' at row %u"),
 
770
/* ER_ILLEGAL_VALUE_FOR_TYPE 22007  */
 
771
N_("Illegal %s '%-.192s' value found during parsing"),
 
772
/* ER_VIEW_NONUPD_CHECK   */
 
773
N_("CHECK OPTION on non-updatable view '%-.192s.%-.192s'"),
 
774
/* ER_VIEW_CHECK_FAILED   */
 
775
N_("CHECK OPTION failed '%-.192s.%-.192s'"),
 
776
/* ER_PROCACCESS_DENIED_ERROR 42000  */
 
777
N_("%-.16s command denied to user '%-.48s'@'%-.64s' for routine '%-.192s'"),
 
778
/* ER_RELAY_LOG_FAIL   */
 
779
N_("Failed purging old relay logs: %s"),
 
780
/* ER_PASSWD_LENGTH   */
 
781
N_("Password hash should be a %d-digit hexadecimal number"),
 
782
/* ER_UNKNOWN_TARGET_BINLOG   */
 
783
N_("Target log not found in binlog index"),
 
784
/* ER_IO_ERR_LOG_INDEX_READ   */
 
785
N_("I/O error reading log index file"),
 
786
/* ER_BINLOG_PURGE_PROHIBITED   */
 
787
N_("Server configuration does not permit binlog purge"),
 
788
/* ER_FSEEK_FAIL   */
 
789
N_("Failed on fseek()"),
 
790
/* ER_BINLOG_PURGE_FATAL_ERR   */
 
791
N_("Fatal error during log purge"),
 
792
/* ER_LOG_IN_USE   */
 
793
N_("A purgeable log is in use, will not purge"),
 
794
/* ER_LOG_PURGE_UNKNOWN_ERR   */
 
795
N_("Unknown error during log purge"),
 
796
/* ER_RELAY_LOG_INIT   */
 
797
N_("Failed initializing relay log position: %s"),
 
798
/* ER_NO_BINARY_LOGGING   */
 
799
N_("You are not using binary logging"),
 
800
/* ER_RESERVED_SYNTAX   */
 
801
N_("The '%-.64s' syntax is reserved for purposes internal to the Drizzle server"),
 
802
/* ER_WSAS_FAILED   */
 
803
N_("WSAStartup Failed"),
 
804
/* ER_DIFF_GROUPS_PROC   */
 
805
N_("Can't handle procedures with different groups yet"),
 
806
/* ER_NO_GROUP_FOR_PROC   */
 
807
N_("Select must have a group with this procedure"),
 
808
/* ER_ORDER_WITH_PROC   */
 
809
N_("Can't use ORDER clause with this procedure"),
 
810
/* ER_LOGGING_PROHIBIT_CHANGING_OF   */
 
811
N_("Binary logging and replication forbid changing the global server %s"),
 
812
/* ER_NO_FILE_MAPPING   */
 
813
N_("Can't map file: %-.200s, errno: %d"),
 
814
/* ER_WRONG_MAGIC   */
 
815
N_("Wrong magic in %-.64s"),
 
816
/* ER_PS_MANY_PARAM   */
 
817
N_("Prepared statement contains too many placeholders"),
 
818
/* ER_KEY_PART_0   */
 
819
N_("Key part '%-.192s' length cannot be 0"),
 
820
/* ER_VIEW_CHECKSUM   */
 
821
N_("View text checksum failed"),
 
822
/* ER_VIEW_MULTIUPDATE   */
 
823
N_("Can not modify more than one base table through a join view '%-.192s.%-.192s'"),
 
824
/* ER_VIEW_NO_INSERT_FIELD_LIST   */
 
825
N_("Can not insert into join view '%-.192s.%-.192s' without fields list"),
 
826
/* ER_VIEW_DELETE_MERGE_VIEW   */
 
827
N_("Can not delete from join view '%-.192s.%-.192s'"),
 
828
/* ER_CANNOT_USER   */
 
829
N_("Operation %s failed for %.256s"),
 
830
/* ER_XAER_NOTA XAE04 */
 
831
N_("XAER_NOTA: Unknown XID"),
 
832
/* ER_XAER_INVAL XAE05 */
 
833
N_("XAER_INVAL: Invalid arguments (or unsupported command)"),
 
834
/* ER_XAER_RMFAIL XAE07 */
 
835
N_("XAER_RMFAIL: The command cannot be executed when global transaction is in the  %.64s state"),
 
836
/* ER_XAER_OUTSIDE XAE09 */
 
837
N_("XAER_OUTSIDE: Some work is done outside global transaction"),
 
838
/* ER_XAER_RMERR XAE03 */
 
839
N_("XAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistency"),
 
840
/* ER_XA_RBROLLBACK XA100 */
 
841
N_("XA_RBROLLBACK: Transaction branch was rolled back"),
 
842
/* ER_NONEXISTING_PROC_GRANT 42000  */
 
843
N_("There is no such grant defined for user '%-.48s' on host '%-.64s' on routine '%-.192s'"),
 
844
/* ER_PROC_AUTO_GRANT_FAIL */
 
845
N_("Failed to grant EXECUTE and ALTER ROUTINE privileges"),
 
846
/* ER_PROC_AUTO_REVOKE_FAIL */
 
847
N_("Failed to revoke all privileges to dropped routine"),
 
848
/* ER_DATA_TOO_LONG 22001 */
 
849
N_("Data too long for column '%s' at row %ld"),
 
850
/* ER_SP_BAD_SQLSTATE 42000 */
 
851
N_("Bad SQLSTATE: '%s'"),
 
852
/* ER_STARTUP */
 
853
N_("%s: ready for connections.\nVersion: '%s' %s\n"),
 
854
/* ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR */
 
855
N_("Can't load value from file with fixed size rows to variable"),
 
856
/* ER_CANT_CREATE_USER_WITH_GRANT 42000 */
 
857
N_("You are not allowed to create a user with GRANT"),
 
858
/* ER_WRONG_VALUE_FOR_TYPE   */
 
859
N_("Incorrect %-.32s value: '%-.128s' for function %-.32s"),
 
860
/* ER_TABLE_DEF_CHANGED */
 
861
N_("Table definition has changed, please retry transaction"),
 
862
/* ER_SP_DUP_HANDLER 42000 */
 
863
N_("Duplicate handler declared in the same block"),
 
864
/* ER_SP_NOT_VAR_ARG 42000 */
 
865
N_("OUT or INOUT argument %d for routine %s is not a variable or NEW pseudo-variable in BEFORE trigger"),
 
866
/* ER_SP_NO_RETSET 0A000 */
 
867
N_("Not allowed to return a result set from a %s"),
 
868
/* ER_CANT_CREATE_GEOMETRY_OBJECT 22003  */
 
869
N_("Cannot get geometry object from data you send to the GEOMETRY field"),
 
870
/* ER_FAILED_ROUTINE_BREAK_BINLOG */
 
871
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"),
 
872
/* ER_BINLOG_UNSAFE_ROUTINE */
 
873
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)"),
 
874
/* ER_BINLOG_CREATE_ROUTINE_NEED_SUPER */
 
875
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)"),
 
876
/* ER_EXEC_STMT_WITH_OPEN_CURSOR */
 
877
N_("You can't execute a prepared statement which has an open cursor associated with it. Reset the statement to re-execute it."),
 
878
/* ER_STMT_HAS_NO_OPEN_CURSOR */
 
879
N_("The statement (%lu) has no open cursor."),
 
880
/* ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG */
 
881
N_("Explicit or implicit commit is not allowed in stored function or trigger."),
 
882
/* ER_NO_DEFAULT_FOR_VIEW_FIELD */
 
883
N_("Field of view '%-.192s.%-.192s' underlying table doesn't have a default value"),
 
884
/* ER_SP_NO_RECURSION */
 
885
N_("Recursive stored functions and triggers are not allowed."),
 
886
/* ER_TOO_BIG_SCALE 42000 S1009 */
 
887
N_("Too big scale %d specified for column '%-.192s'. Maximum is %d."),
 
888
/* ER_TOO_BIG_PRECISION 42000 S1009 */
 
889
N_("Too big precision %d specified for column '%-.192s'. Maximum is %d."),
 
890
/* ER_M_BIGGER_THAN_D 42000 S1009 */
 
891
N_("For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '%-.192s')."),
 
892
/* ER_WRONG_LOCK_OF_SYSTEM_TABLE */
 
893
N_("You can't combine write-locking of system tables with other tables or lock types"),
 
894
/* ER_CONNECT_TO_FOREIGN_DATA_SOURCE */
 
895
N_("Unable to connect to foreign data source: %.64s"),
 
896
/* ER_QUERY_ON_FOREIGN_DATA_SOURCE */
 
897
N_("There was a problem processing the query on the foreign data source. Data source error: %-.64s"),
 
898
/* ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST */
 
899
N_("The foreign data source you are trying to reference does not exist. Data source error:  %-.64s"),
 
900
/* ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE */
 
901
N_("Can't create federated table. The data source connection string '%-.64s' is not in the correct format"),
 
902
/* ER_FOREIGN_DATA_STRING_INVALID */
 
903
N_("The data source connection string '%-.64s' is not in the correct format"),
 
904
/* ER_CANT_CREATE_FEDERATED_TABLE   */
 
905
N_("Can't create federated table. Foreign data src error:  %-.64s"),
 
906
/* ER_TRG_IN_WRONG_SCHEMA   */
 
907
N_("Trigger in wrong schema"),
 
908
/* ER_STACK_OVERRUN_NEED_MORE */
 
909
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."),
 
910
/* ER_TOO_LONG_BODY 42000 S1009 */
 
911
N_("Routine body for '%-.100s' is too long"),
 
912
/* ER_WARN_CANT_DROP_DEFAULT_KEYCACHE */
 
913
N_("Cannot drop default keycache"),
 
914
/* ER_TOO_BIG_DISPLAYWIDTH 42000 S1009 */
 
915
N_("Display width out of range for column '%-.192s' (max = %d)"),
 
916
/* ER_XAER_DUPID XAE08 */
 
917
N_("XAER_DUPID: The XID already exists"),
 
918
/* ER_DATETIME_FUNCTION_OVERFLOW 22008 */
 
919
N_("Datetime function: %-.32s field overflow"),
 
920
/* ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG */
 
921
N_("Can't update table '%-.192s' in stored function/trigger because it is already used by statement which invoked this stored function/trigger."),
 
922
/* ER_VIEW_PREVENT_UPDATE */
 
923
N_("The definition of table '%-.192s' prevents operation %.192s on table '%-.192s'."),
 
924
/* ER_PS_NO_RECURSION */
 
925
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"),
 
926
/* ER_SP_CANT_SET_AUTOCOMMIT */
 
927
N_("Not allowed to set autocommit from a stored function or trigger"),
 
928
/* ER_MALFORMED_DEFINER */
 
929
N_("Definer is not fully qualified"),
 
930
/* ER_VIEW_FRM_NO_USER */
 
931
N_("View '%-.192s'.'%-.192s' has no definer information (old table format). Current user is used as definer. Please recreate the view!"),
 
932
/* ER_VIEW_OTHER_USER */
 
933
N_("You need the SUPER privilege for creation view with '%-.192s'@'%-.192s' definer"),
 
934
/* ER_NO_SUCH_USER */
 
935
N_("The user specified as a definer ('%-.64s'@'%-.64s') does not exist"),
 
936
/* ER_FORBID_SCHEMA_CHANGE */
 
937
N_("Changing schema from '%-.192s' to '%-.192s' is not allowed."),
 
938
/* ER_ROW_IS_REFERENCED_2 23000 */
 
939
N_("Cannot delete or update a parent row: a foreign key constraint fails (%.192s)"),
 
940
/* ER_NO_REFERENCED_ROW_2 23000 */
 
941
N_("Cannot add or update a child row: a foreign key constraint fails (%.192s)"),
 
942
/* ER_SP_BAD_VAR_SHADOW 42000 */
 
943
N_("Variable '%-.64s' must be quoted with `...`, or renamed"),
 
944
/* ER_TRG_NO_DEFINER */
 
945
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."),
 
946
/* ER_OLD_FILE_FORMAT */
 
947
N_("'%-.192s' has an old format, you should re-create the '%s' object(s)"),
 
948
/* ER_SP_RECURSION_LIMIT */
 
949
N_("Recursive limit %d (as set by the max_sp_recursion_depth variable) was exceeded for routine %.192s"),
 
950
/* ER_SP_PROC_TABLE_CORRUPT */
 
951
N_("Failed to load routine %-.192s. The table drizzle.proc is missing, corrupt, or contains bad data (internal code %d)"),
 
952
/* ER_SP_WRONG_NAME 42000 */
 
953
N_("Incorrect routine name '%-.192s'"),
 
954
/* ER_TABLE_NEEDS_UPGRADE */
 
955
N_("Table upgrade required. Please do \"REPAIR TABLE `%-.32s`\" to fix it!"),
 
956
/* ER_SP_NO_AGGREGATE 42000 */
 
957
N_("AGGREGATE is not supported for stored functions"),
 
958
/* ER_MAX_PREPARED_STMT_COUNT_REACHED 42000 */
 
959
N_("Can't create more than max_prepared_stmt_count statements (current value: %lu)"),
 
960
/* ER_VIEW_RECURSIVE */
 
961
N_("`%-.192s`.`%-.192s` contains view recursion"),
 
962
/* ER_NON_GROUPING_FIELD_USED 42000 */
 
963
N_("non-grouping field '%-.192s' is used in %-.64s clause"),
 
964
/* ER_TABLE_CANT_HANDLE_SPKEYS */
 
965
N_("The used table type doesn't support SPATIAL indexes"),
 
966
/* ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA */
 
967
N_("Triggers can not be created on system tables"),
 
968
/* ER_REMOVED_SPACES */
 
969
N_("Leading spaces are removed from name '%s'"),
 
970
/* ER_AUTOINC_READ_FAILED */
 
971
N_("Failed to read auto-increment value from storage engine"),
 
972
/* ER_USERNAME */
 
973
N_("user name"),
 
974
/* ER_HOSTNAME */
 
975
N_("host name"),
 
976
/* ER_WRONG_STRING_LENGTH */
 
977
N_("String '%-.70s' is too long for %s (should be no longer than %d)"),
 
978
/* ER_NON_INSERTABLE_TABLE   */
 
979
N_("The target table %-.100s of the %s is not insertable-into"),
 
980
/* ER_ADMIN_WRONG_MRG_TABLE */
 
981
N_("Table '%-.64s' is differently defined or of non-MyISAM type or doesn't exist"),
 
982
/* ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT */
 
983
N_("Too high level of nesting for select"),
 
984
/* ER_NAME_BECOMES_EMPTY */
 
985
N_("Name '%-.64s' has become ''"),
 
986
/* ER_AMBIGUOUS_FIELD_TERM */
 
987
N_("First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY"),
 
988
/* ER_FOREIGN_SERVER_EXISTS */
 
989
N_("The foreign server, %s, you are trying to create already exists."),
 
990
/* ER_FOREIGN_SERVER_DOESNT_EXIST */
 
991
N_("The foreign server name you are trying to reference does not exist. Data source error:  %-.64s"),
 
992
/* ER_ILLEGAL_HA_CREATE_OPTION */
 
993
N_("Table storage engine '%-.64s' does not support the create option '%.64s'"),
 
994
/* ER_PARTITION_REQUIRES_VALUES_ERROR */
 
995
N_("Syntax error: %-.64s PARTITIONING requires definition of VALUES %-.64s for each partition"),
 
996
/* ER_PARTITION_WRONG_VALUES_ERROR */
 
997
N_("Only %-.64s PARTITIONING can use VALUES %-.64s in partition definition"),
 
998
/* ER_PARTITION_MAXVALUE_ERROR */
 
999
N_("MAXVALUE can only be used in last partition definition"),
 
1000
/* ER_PARTITION_SUBPARTITION_ERROR */
 
1001
N_("Subpartitions can only be hash partitions and by key"),
 
1002
/* ER_PARTITION_SUBPART_MIX_ERROR */
 
1003
N_("Must define subpartitions on all partitions if on one partition"),
 
1004
/* ER_PARTITION_WRONG_NO_PART_ERROR */
 
1005
N_("Wrong number of partitions defined, mismatch with previous setting"),
 
1006
/* ER_PARTITION_WRONG_NO_SUBPART_ERROR */
 
1007
N_("Wrong number of subpartitions defined, mismatch with previous setting"),
 
1008
/* ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR */
 
1009
N_("Constant/Random expression in (sub)partitioning function is not allowed"),
 
1010
/* ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR */
 
1011
N_("Expression in RANGE/LIST VALUES must be constant"),
 
1012
/* ER_FIELD_NOT_FOUND_PART_ERROR */
 
1013
N_("Field in list of fields for partition function not found in table"),
 
1014
/* ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR */
 
1015
N_("List of fields is only allowed in KEY partitions"),
 
1016
/* ER_INCONSISTENT_PARTITION_INFO_ERROR */
 
1017
N_("The partition info in the frm file is not consistent with what can be written into the frm file"),
 
1018
/* ER_PARTITION_FUNC_NOT_ALLOWED_ERROR */
 
1019
N_("The %-.192s function returns the wrong type"),
 
1020
/* ER_PARTITIONS_MUST_BE_DEFINED_ERROR */
 
1021
N_("For %-.64s partitions each partition must be defined"),
 
1022
/* ER_RANGE_NOT_INCREASING_ERROR */
 
1023
N_("VALUES LESS THAN value must be strictly increasing for each partition"),
 
1024
/* ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR */
 
1025
N_("VALUES value must be of same type as partition function"),
 
1026
/* ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR */
 
1027
N_("Multiple definition of same constant in list partitioning"),
 
1028
/* ER_PARTITION_ENTRY_ERROR */
 
1029
N_("Partitioning can not be used stand-alone in query"),
 
1030
/* ER_MIX_HANDLER_ERROR */
 
1031
N_("The mix of handlers in the partitions is not allowed in this version of Drizzle"),
 
1032
/* ER_PARTITION_NOT_DEFINED_ERROR */
 
1033
N_("For the partitioned engine it is necessary to define all %-.64s"),
 
1034
/* ER_TOO_MANY_PARTITIONS_ERROR */
 
1035
N_("Too many partitions (including subpartitions) were defined"),
 
1036
/* ER_SUBPARTITION_ERROR */
 
1037
N_("It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning"),
 
1038
/* ER_CANT_CREATE_HANDLER_FILE */
 
1039
N_("Failed to create specific handler file"),
 
1040
/* ER_BLOB_FIELD_IN_PART_FUNC_ERROR */
 
1041
N_("A BLOB field is not allowed in partition function"),
 
1042
/* ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF */
 
1043
N_("A %-.192s must include all columns in the table's partitioning function"),
 
1044
/* ER_NO_PARTS_ERROR */
 
1045
N_("Number of %-.64s = 0 is not an allowed value"),
 
1046
/* ER_PARTITION_MGMT_ON_NONPARTITIONED */
 
1047
N_("Partition management on a not partitioned table is not possible"),
 
1048
/* ER_FOREIGN_KEY_ON_PARTITIONED */
 
1049
N_("Foreign key condition is not yet supported in conjunction with partitioning"),
 
1050
/* ER_DROP_PARTITION_NON_EXISTENT */
 
1051
N_("Error in list of partitions to %-.64s"),
 
1052
/* ER_DROP_LAST_PARTITION */
 
1053
N_("Cannot remove all partitions, use DROP TABLE instead"),
 
1054
/* ER_COALESCE_ONLY_ON_HASH_PARTITION */
 
1055
N_("COALESCE PARTITION can only be used on HASH/KEY partitions"),
 
1056
/* ER_REORG_HASH_ONLY_ON_SAME_NO */
 
1057
N_("REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers"),
 
1058
/* ER_REORG_NO_PARAM_ERROR */
 
1059
N_("REORGANIZE PARTITION without parameters can only be used on auto-partitioned tables using HASH PARTITIONs"),
 
1060
/* ER_ONLY_ON_RANGE_LIST_PARTITION */
 
1061
N_("%-.64s PARTITION can only be used on RANGE/LIST partitions"),
 
1062
/* ER_ADD_PARTITION_SUBPART_ERROR */
 
1063
N_("Trying to Add partition(s) with wrong number of subpartitions"),
 
1064
/* ER_ADD_PARTITION_NO_NEW_PARTITION */
 
1065
N_("At least one partition must be added"),
 
1066
/* ER_COALESCE_PARTITION_NO_PARTITION */
 
1067
N_("At least one partition must be coalesced"),
 
1068
/* ER_REORG_PARTITION_NOT_EXIST */
 
1069
N_("More partitions to reorganize than there are partitions"),
 
1070
/* ER_SAME_NAME_PARTITION */
 
1071
N_("Duplicate partition name %-.192s"),
 
1072
/* ER_NO_BINLOG_ERROR */
 
1073
N_("It is not allowed to shut off binlog on this command"),
 
1074
/* ER_CONSECUTIVE_REORG_PARTITIONS */
 
1075
N_("When reorganizing a set of partitions they must be in consecutive order"),
 
1076
/* ER_REORG_OUTSIDE_RANGE */
 
1077
N_("Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range"),
 
1078
/* ER_PARTITION_FUNCTION_FAILURE */
 
1079
N_("Partition function not supported in this version for this handler"),
 
1080
/* ER_PART_STATE_ERROR */
 
1081
N_("Partition state cannot be defined from CREATE/ALTER TABLE"),
 
1082
/* ER_LIMITED_PART_RANGE */
 
1083
N_("The %-.64s handler only supports 32 bit integers in VALUES"),
 
1084
/* ER_PLUGIN_IS_NOT_LOADED */
 
1085
N_("Plugin '%-.192s' is not loaded"),
 
1086
/* ER_WRONG_VALUE */
 
1087
N_("Incorrect %-.32s value: '%-.128s'"),
 
1088
/* ER_NO_PARTITION_FOR_GIVEN_VALUE */
 
1089
N_("Table has no partition for value %-.64s"),
 
1090
/* ER_FILEGROUP_OPTION_ONLY_ONCE */
 
1091
N_("It is not allowed to specify %s more than once"),
 
1092
/* ER_CREATE_FILEGROUP_FAILED */
 
1093
N_("Failed to create %s"),
 
1094
/* ER_DROP_FILEGROUP_FAILED */
 
1095
N_("Failed to drop %s"),
 
1096
/* ER_TABLESPACE_AUTO_EXTEND_ERROR */
 
1097
N_("The handler doesn't support autoextend of tablespaces"),
 
1098
/* ER_WRONG_SIZE_NUMBER */
 
1099
N_("A size parameter was incorrectly specified, either number or on the form 10M"),
 
1100
/* ER_SIZE_OVERFLOW_ERROR */
 
1101
N_("The size number was correct but we don't allow the digit part to be more than 2 billion"),
 
1102
/* ER_ALTER_FILEGROUP_FAILED */
 
1103
N_("Failed to alter: %s"),
 
1104
/* ER_BINLOG_ROW_LOGGING_FAILED */
 
1105
N_("Writing one row to the row-based binary log failed"),
 
1106
/* ER_BINLOG_ROW_WRONG_TABLE_DEF */
 
1107
N_("Table definition on master and slave does not match: %s"),
 
1108
/* ER_BINLOG_ROW_RBR_TO_SBR */
 
1109
N_("Slave running with --log-slave-updates must use row-based binary logging to be able to replicate row-based binary log events"),
 
1110
/* ER_EVENT_ALREADY_EXISTS */
 
1111
N_("Event '%-.192s' already exists"),
 
1112
/* ER_EVENT_STORE_FAILED */
 
1113
N_("Failed to store event %s. Error code %d from storage engine."),
 
1114
/* ER_EVENT_DOES_NOT_EXIST */
 
1115
N_("Unknown event '%-.192s'"),
 
1116
/* ER_EVENT_CANT_ALTER */
 
1117
N_("Failed to alter event '%-.192s'"),
 
1118
/* ER_EVENT_DROP_FAILED */
 
1119
N_("Failed to drop %s"),
 
1120
/* ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG */
 
1121
N_("INTERVAL is either not positive or too big"),
 
1122
/* ER_EVENT_ENDS_BEFORE_STARTS */
 
1123
N_("ENDS is either invalid or before STARTS"),
 
1124
/* ER_EVENT_EXEC_TIME_IN_THE_PAST */
 
1125
N_("Event execution time is in the past. Event has been disabled"),
 
1126
/* ER_EVENT_OPEN_TABLE_FAILED */
 
1127
N_("Failed to open drizzle.event"),
 
1128
/* ER_EVENT_NEITHER_M_EXPR_NOR_M_AT */
 
1129
N_("No datetime expression provided"),
 
1130
/* ER_COL_COUNT_DOESNT_MATCH_CORRUPTED */
 
1131
N_("Column count of drizzle.%s is wrong. Expected %d, found %d. The table is probably corrupted"),
 
1132
/* ER_CANNOT_LOAD_FROM_TABLE */
 
1133
N_("Cannot load from drizzle.%s. The table is probably corrupted"),
 
1134
/* ER_EVENT_CANNOT_DELETE */
 
1135
N_("Failed to delete the event from drizzle.event"),
 
1136
/* ER_EVENT_COMPILE_ERROR */
 
1137
N_("Error during compilation of event's body"),
 
1138
/* ER_EVENT_SAME_NAME */
 
1139
N_("Same old and new event name"),
 
1140
/* ER_EVENT_DATA_TOO_LONG */
 
1141
N_("Data for column '%s' too long"),
 
1142
/* ER_DROP_INDEX_FK */
 
1143
N_("Cannot drop index '%-.192s': needed in a foreign key constraint"),
 
1144
/* ER_WARN_DEPRECATED_SYNTAX_WITH_VER   */
 
1145
N_("The syntax '%s' is deprecated and will be removed in Drizzle %s. Please use %s instead"),
 
1146
/* ER_CANT_WRITE_LOCK_LOG_TABLE */
 
1147
N_("You can't write-lock a log table. Only read access is possible"),
 
1148
/* ER_CANT_LOCK_LOG_TABLE */
 
1149
N_("You can't use locks with log tables."),
 
1150
/* ER_FOREIGN_DUPLICATE_KEY 23000 S1009 */
 
1151
N_("Upholding foreign key constraints for table '%.192s', entry '%-.192s', key %d would lead to a duplicate entry"),
 
1152
/* ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE */
 
1153
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."),
 
1154
/* ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR */
 
1155
N_("Cannot switch out of the row-based binary log format when the session has open temporary tables"),
 
1156
/* ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT */
 
1157
N_("Cannot change the binary logging format inside a stored function or trigger"),
 
1158
/* ER_NDB_CANT_SWITCH_BINLOG_FORMAT */
 
1159
N_("The NDB cluster engine does not support changing the binlog format on the fly yet"),
 
1160
/* ER_PARTITION_NO_TEMPORARY */
 
1161
N_("Cannot create temporary table with partitions"),
 
1162
/* ER_PARTITION_CONST_DOMAIN_ERROR */
 
1163
N_("Partition constant is out of partition function domain"),
 
1164
/* ER_PARTITION_FUNCTION_IS_NOT_ALLOWED */
 
1165
N_("This partition function is not allowed"),
 
1166
/* ER_DDL_LOG_ERROR */
 
1167
N_("Error in DDL log"),
 
1168
/* ER_NULL_IN_VALUES_LESS_THAN */
 
1169
N_("Not allowed to use NULL value in VALUES LESS THAN"),
 
1170
/* ER_WRONG_PARTITION_NAME */
 
1171
N_("Incorrect partition name"),
 
1172
/* ER_CANT_CHANGE_TX_ISOLATION 25001 */
 
1173
N_("Transaction isolation level can't be changed while a transaction is in progress"),
 
1174
/* ER_DUP_ENTRY_AUTOINCREMENT_CASE */
 
1175
N_("ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '%-.192s' for key '%-.192s'"),
 
1176
/* ER_EVENT_MODIFY_QUEUE_ERROR */
 
1177
N_("Internal scheduler error %d"),
 
1178
/* ER_EVENT_SET_VAR_ERROR */
 
1179
N_("Error during starting/stopping of the scheduler. Error code %u"),
 
1180
/* ER_PARTITION_MERGE_ERROR */
 
1181
N_("Engine cannot be used in partitioned tables"),
 
1182
/* ER_CANT_ACTIVATE_LOG */
 
1183
N_("Cannot activate '%-.64s' log"),
 
1184
/* ER_RBR_NOT_AVAILABLE */
 
1185
N_("The server was not built with row-based replication"),
 
1186
/* ER_BASE64_DECODE_ERROR */
 
1187
N_("Decoding of base64 string failed"),
 
1188
/* ER_EVENT_RECURSION_FORBIDDEN */
 
1189
N_("Recursion of EVENT DDL statements is forbidden when body is present"),
 
1190
/* ER_EVENTS_DB_ERROR */
 
1191
N_("Cannot proceed because system tables used by Event Scheduler were found damaged at server start"),
 
1192
/* ER_ONLY_INTEGERS_ALLOWED */
 
1193
N_("Only integers allowed as number here"),
 
1194
/* ER_UNSUPORTED_LOG_ENGINE */
 
1195
N_("This storage engine cannot be used for log tables"),
 
1196
/* ER_BAD_LOG_STATEMENT */
 
1197
N_("You cannot '%s' a log table if logging is enabled"),
 
1198
/* ER_CANT_RENAME_LOG_TABLE */
 
1199
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'"),
 
1200
/* ER_WRONG_PARAMCOUNT_TO_FUNCTION 42000 */
 
1201
N_("Incorrect parameter count in the call to native function '%-.192s'"),
 
1202
/* ER_WRONG_PARAMETERS_TO_NATIVE_FCT 42000 */
 
1203
N_("Incorrect parameters in the call to native function '%-.192s'"),
 
1204
/* ER_WRONG_PARAMETERS_TO_STORED_FCT 42000   */
 
1205
N_("Incorrect parameters in the call to stored function '%-.192s'"),
 
1206
/* ER_NATIVE_FCT_NAME_COLLISION */
 
1207
N_("This function '%-.192s' has the same name as a native function"),
 
1208
/* ER_DUP_ENTRY_WITH_KEY_NAME 23000 S1009 */
 
1209
N_("Duplicate entry '%-.64s' for key '%-.192s'"),
 
1210
/* ER_BINLOG_PURGE_EMFILE */
 
1211
N_("Too many files opened, please execute the command again"),
 
1212
/* ER_EVENT_CANNOT_CREATE_IN_THE_PAST */
 
1213
N_("Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation."),
 
1214
/* ER_EVENT_CANNOT_ALTER_IN_THE_PAST */
 
1215
N_("Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation."),
 
1216
/* ER_SLAVE_INCIDENT */
 
1217
N_("The incident %s occurred on the master. Message: %-.64s"),
 
1218
/* ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT */
 
1219
N_("Table has no partition for some existing values"),
 
1220
/* ER_BINLOG_UNSAFE_STATEMENT */
 
1221
N_("Statement is not safe to log in statement format."),
 
1222
/* ER_SLAVE_FATAL_ERROR */
 
1223
N_("Fatal error: %s"),
 
1224
/* ER_SLAVE_RELAY_LOG_READ_FAILURE */
 
1225
N_("Relay log read failure: %s"),
 
1226
/* ER_SLAVE_RELAY_LOG_WRITE_FAILURE */
 
1227
N_("Relay log write failure: %s"),
 
1228
/* ER_SLAVE_CREATE_EVENT_FAILURE */
 
1229
N_("Failed to create %s"),
 
1230
/* ER_SLAVE_MASTER_COM_FAILURE */
 
1231
N_("Master command %s failed: %s"),
 
1232
/* ER_BINLOG_LOGGING_IMPOSSIBLE */
 
1233
N_("Binary logging not possible. Message: %s"),
 
1234
/* ER_VIEW_NO_CREATION_CTX */
 
1235
N_("View `%-.64s`.`%-.64s` has no creation context"),
 
1236
/* ER_VIEW_INVALID_CREATION_CTX */
 
1237
N_("Creation context of view `%-.64s`.`%-.64s' is invalid"),
 
1238
/* ER_SR_INVALID_CREATION_CTX */
 
1239
N_("Creation context of stored routine `%-.64s`.`%-.64s` is invalid"),
 
1240
/* ER_TRG_CORRUPTED_FILE */
 
1241
N_("Corrupted TRG file for table `%-.64s`.`%-.64s`"),
 
1242
/* ER_TRG_NO_CREATION_CTX */
 
1243
N_("Triggers for table `%-.64s`.`%-.64s` have no creation context"),
 
1244
/* ER_TRG_INVALID_CREATION_CTX */
 
1245
N_("Trigger creation context of table `%-.64s`.`%-.64s` is invalid"),
 
1246
/* ER_EVENT_INVALID_CREATION_CTX */
 
1247
N_("Creation context of event `%-.64s`.`%-.64s` is invalid"),
 
1248
/* ER_TRG_CANT_OPEN_TABLE */
 
1249
N_("Cannot open table for trigger `%-.64s`.`%-.64s`"),
 
1250
/* ER_CANT_CREATE_SROUTINE */
 
1251
N_("Cannot create stored routine `%-.64s`. Check warnings"),
 
1252
/* ER_SLAVE_AMBIGOUS_EXEC_MODE */
 
1253
N_("Ambiguous slave modes combination. %s"),
 
1254
/* ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT */
 
1255
N_("The BINLOG statement of type `%s` was not preceded by a format description BINLOG statement."),
 
1256
/* ER_SLAVE_CORRUPT_EVENT */
 
1257
N_("Corrupted replication event was detected"),
 
1258
/* ER_LOAD_DATA_INVALID_COLUMN */
 
1259
N_("Invalid column reference (%-.64s) in LOAD DATA"),
 
1260
/* ER_LOG_PURGE_NO_FILE   */
 
1261
N_("Being purged log %s was not found"),
 
1262
/* ER_WARN_AUTO_CONVERT_LOCK */
 
1263
N_("Converted to non-transactional lock on '%-.64s'"),
 
1264
/* ER_NO_AUTO_CONVERT_LOCK_STRICT */
 
1265
N_("Cannot convert to non-transactional lock in strict mode on '%-.64s'"),
 
1266
/* ER_NO_AUTO_CONVERT_LOCK_TRANSACTION */
 
1267
N_("Cannot convert to non-transactional lock in an active transaction on '%-.64s'"),
 
1268
/* ER_NO_STORAGE_ENGINE */
 
1269
N_("Can't access storage engine of table %-.64s"),
 
1270
/* ER_BACKUP_BACKUP_START */
 
1271
N_("Starting backup process"),
 
1272
/* ER_BACKUP_BACKUP_DONE */
 
1273
N_("Backup completed"),
 
1274
/* ER_BACKUP_RESTORE_START */
 
1275
N_("Starting restore process"),
 
1276
/* ER_BACKUP_RESTORE_DONE */
 
1277
N_("Restore completed"),
 
1278
/* ER_BACKUP_NOTHING_TO_BACKUP */
 
1279
N_("Nothing to backup"),
 
1280
/* ER_BACKUP_CANNOT_INCLUDE_DB */
 
1281
N_("Database '%-.64s' cannot be included in a backup"),
 
1282
/* ER_BACKUP_BACKUP */
 
1283
N_("Error during backup operation - server's error log contains more information about the error"),
 
1284
/* ER_BACKUP_RESTORE */
 
1285
N_("Error during restore operation - server's error log contains more information about the error"),
 
1286
/* ER_BACKUP_RUNNING */
 
1287
N_("Can't execute this command because another BACKUP/RESTORE operation is in progress"),
 
1288
/* ER_BACKUP_BACKUP_PREPARE */
 
1289
N_("Error when preparing for backup operation"),
 
1290
/* ER_BACKUP_RESTORE_PREPARE */
 
1291
N_("Error when preparing for restore operation"),
 
1292
/* ER_BACKUP_INVALID_LOC */
 
1293
N_("Invalid backup location '%-.64s'"),
 
1294
/* ER_BACKUP_READ_LOC */
 
1295
N_("Can't read backup location '%-.64s'"),
 
1296
/* ER_BACKUP_WRITE_LOC */
 
1297
N_("Can't write to backup location '%-.64s' (file already exists?)"),
 
1298
/* ER_BACKUP_LIST_DBS */
 
1299
N_("Can't enumerate server databases"),
 
1300
/* ER_BACKUP_LIST_TABLES */
 
1301
N_("Can't enumerate server tables"),
 
1302
/* ER_BACKUP_LIST_DB_TABLES */
 
1303
N_("Can't enumerate tables in database %-.64s"),
 
1304
/* ER_BACKUP_SKIP_VIEW */
 
1305
N_("Skipping view %-.64s in database %-.64s"),
 
1306
/* ER_BACKUP_NO_ENGINE */
 
1307
N_("Skipping table %-.64s since it has no valid storage engine"),
 
1308
/* ER_BACKUP_TABLE_OPEN */
 
1309
N_("Can't open table %-.64s"),
 
1310
/* ER_BACKUP_READ_HEADER */
 
1311
N_("Can't read backup archive preamble"),
 
1312
/* ER_BACKUP_WRITE_HEADER */
 
1313
N_("Can't write backup archive preamble"),
 
1314
/* ER_BACKUP_NO_BACKUP_DRIVER */
 
1315
N_("Can't find backup driver for table %-.64s"),
 
1316
/* ER_BACKUP_NOT_ACCEPTED */
 
1317
N_("%-.64s backup driver was selected for table %-.64s but it rejects to handle this table"),
 
1318
/* ER_BACKUP_CREATE_BACKUP_DRIVER */
 
1319
N_("Can't create %-.64s backup driver"),
 
1320
/* ER_BACKUP_CREATE_RESTORE_DRIVER */
 
1321
N_("Can't create %-.64s restore driver"),
 
1322
/* ER_BACKUP_TOO_MANY_IMAGES */
 
1323
N_("Found %d images in backup archive but maximum %d are supported"),
 
1324
/* ER_BACKUP_WRITE_META */
 
1325
N_("Error when saving meta-data of %-.64s"),
 
1326
/* ER_BACKUP_READ_META */
 
1327
N_("Error when reading meta-data list"),
 
1328
/* ER_BACKUP_CREATE_META */
 
1329
N_("Can't create %-.64s"),
 
1330
/* ER_BACKUP_GET_BUF */
 
1331
N_("Can't allocate buffer for image data transfer"),
 
1332
/* ER_BACKUP_WRITE_DATA */
 
1333
N_("Error when writing %-.64s backup image data (for table #%d)"),
 
1334
/* ER_BACKUP_READ_DATA */
 
1335
N_("Error when reading data from backup stream"),
 
1336
/* ER_BACKUP_NEXT_CHUNK */
 
1337
N_("Can't go to the next chunk in backup stream"),
 
1338
/* ER_BACKUP_INIT_BACKUP_DRIVER */
 
1339
N_("Can't initialize %-.64s backup driver"),
 
1340
/* ER_BACKUP_INIT_RESTORE_DRIVER */
 
1341
N_("Can't initialize %-.64s restore driver"),
 
1342
/* ER_BACKUP_STOP_BACKUP_DRIVER */
 
1343
N_("Can't shut down %-.64s backup driver"),
 
1344
/* ER_BACKUP_STOP_RESTORE_DRIVERS */
 
1345
N_("Can't shut down %-.64s backup driver(s)"),
 
1346
/* ER_BACKUP_PREPARE_DRIVER */
 
1347
N_("%-.64s backup driver can't prepare for synchronization"),
 
1348
/* ER_BACKUP_CREATE_VP */
 
1349
N_("%-.64s backup driver can't create its image validity point"),
 
1350
/* ER_BACKUP_UNLOCK_DRIVER */
 
1351
N_("Can't unlock %-.64s backup driver after creating the validity point"),
 
1352
/* ER_BACKUP_CANCEL_BACKUP */
 
1353
N_("%-.64s backup driver can't cancel its backup operation"),
 
1354
/* ER_BACKUP_CANCEL_RESTORE */
 
1355
N_("%-.64s restore driver can't cancel its restore operation"),
 
1356
/* ER_BACKUP_GET_DATA */
 
1357
N_("Error when polling %-.64s backup driver for its image data"),
 
1358
/* ER_BACKUP_SEND_DATA */
 
1359
N_("Error when sending image data (for table #%d) to %-.64s restore driver"),
 
1360
/* ER_BACKUP_SEND_DATA_RETRY */
 
1361
N_("After %d attempts %-.64s restore driver still can't accept next block of data"),
 
1362
/* ER_BACKUP_OPEN_TABLES */
 
1363
N_("Open and lock tables failed in %-.64s"),
 
1364
/* ER_BACKUP_THREAD_INIT */
 
1365
N_("Backup driver's table locking thread can not be initialized."),
 
1366
/* ER_BACKUP_PROGRESS_TABLES */
 
1367
N_("Can't open the online backup progress tables. Check 'drizzle.online_backup' and 'drizzle.online_backup_progress'."),
 
1368
/* ER_TABLESPACE_EXIST */
 
1369
N_("Tablespace '%-.192s' already exists"),
 
1370
/* ER_NO_SUCH_TABLESPACE */
 
1371
N_("Tablespace '%-.192s' doesn't exist"),
 
1372
/* ER_SLAVE_HEARTBEAT_FAILURE */
 
1373
N_("Unexpected master's heartbeat data: %s"),
 
1374
/* ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE */
 
1375
N_("The requested value for the heartbeat period %s %s"),
 
1376
/* ER_BACKUP_LOG_WRITE_ERROR */
 
1377
N_("Can't write to the online backup progress log %-.64s."),
 
1378
/* ER_TABLESPACE_NOT_EMPTY */
 
1379
N_("Tablespace '%-.192s' not empty"),
 
1380
/* ER_BACKUP_TS_CHANGE */
 
1381
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'"),
 
1382
/* ER_VCOL_BASED_ON_VCOL */
 
1383
N_("A virtual column cannot be based on a virtual column"),
 
1384
/* ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED */
 
1385
N_("Non-deterministic expression for virtual column '%s'."),
 
1386
/* ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN */
 
1387
N_("Generated value for virtual column '%s' cannot be converted to type '%s'."),
 
1388
/* ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN */
 
1389
N_("Primary key cannot be defined upon a virtual column."),
 
1390
/* ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN */
 
1391
N_("Key/Index cannot be defined on a non-stored virtual column."),
 
1392
/* ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN */
 
1393
N_("Cannot define foreign key with %s clause on a virtual column."),
 
1394
/* ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN */
 
1395
N_("The value specified for virtual column '%s' in table '%s' ignored."),
 
1396
/* ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN */
 
1397
N_("'%s' is not yet supported for virtual columns."),
 
1398
/* ER_CONST_EXPR_IN_VCOL */
 
1399
N_("Constant expression in virtual column function is not allowed."),
 
1400
/* ER_UNKNOWN_TEMPORAL_TYPE */
 
1401
N_("Encountered an unknown temporal type."),
 
1402
/* ER_INVALID_STRING_FORMAT_FOR_DATE */
 
1403
N_("Received an invalid string format '%s' for a date value."),
 
1404
/* ER_INVALID_STRING_FORMAT_FOR_TIME */
 
1405
N_("Received an invalid string format '%s' for a time value."),
 
1406
/* ER_INVALID_UNIX_TIMESTAMP_VALUE */
 
1407
N_("Received an invalid value '%s' for a UNIX timestamp."),
 
1408
/* ER_INVALID_DATETIME_VALUE */
 
1409
N_("Received an invalid datetime value '%s'."),
 
1410
/* ER_INVALID_NULL_ARGUMENT */
 
1411
N_("Received a NULL argument for function '%s'."),
 
1412
/* ER_INVALID_NEGATIVE_ARGUMENT */
 
1413
N_("Received an invalid negative argument '%s' for function '%s'."),
 
1414
/* ER_ARGUMENT_OUT_OF_RANGE */
 
1415
N_("Received an out-of-range argument '%s' for function '%s'."),
 
1416
/* ER_INVALID_TIME_VALUE */
 
1417
N_("Received an invalid time value '%s'."),
 
1418
/* ER_INVALID_ENUM_VALUE */
 
1419
N_("Received an invalid enum value '%s'."),
 
1420
/* ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE */
 
1421
N_("Tables which are replicated require a primary key."),
 
1422
/* ER_CORRUPT_TABLE_DEFINITION */
 
1423
N_("Corrupt or invalid table definition: %s"),
 
1424
/* ER_SCHEMA_DOES_NOT_EXIST */
 
1425
N_("Schema does not exist: %s"),
 
1426
/* ER_ALTER_SCHEMA */
 
1427
N_("Error altering schema: %s"),
 
1428
/* ER_DROP_SCHEMA*/
 
1429
N_("Error droppping Schema : %s")
 
1430
};
 
1431
 
 
1432
const char * error_message(unsigned int code)
 
1433
{
 
1434
  /**
 
1435
   if the connection is killed, code is 2
 
1436
   See lp bug# 435619
 
1437
   */
 
1438
  if ((code > ER_ERROR_FIRST) )
 
1439
   {
 
1440
     return drizzled_error_messages[code-ER_ERROR_FIRST];
 
1441
   }
 
1442
  else
 
1443
    return drizzled_error_messages[ER_UNKNOWN_ERROR - ER_ERROR_FIRST];
 
1444
}
 
1445
 
 
1446
 
 
1447
 
 
1448
/**
 
1449
  Read messages from errorfile.
 
1450
 
 
1451
  This function can be called multiple times to reload the messages.
 
1452
  If it fails to load the messages, it will fail softly by initializing
 
1453
  the errmesg pointer to an array of empty strings or by keeping the
 
1454
  old array if it exists.
 
1455
 
 
1456
  @retval
 
1457
    FALSE       OK
 
1458
  @retval
 
1459
    TRUE        Error
 
1460
*/
 
1461
 
 
1462
 
 
1463
static void init_myfunc_errs()
 
1464
{
 
1465
  init_glob_errs();                     /* Initiate english errors */
 
1466
 
 
1467
  {
 
1468
    EE(EE_FILENOTFOUND)   = ER(ER_FILE_NOT_FOUND);
 
1469
    EE(EE_CANTCREATEFILE) = ER(ER_CANT_CREATE_FILE);
 
1470
    EE(EE_READ)           = ER(ER_ERROR_ON_READ);
 
1471
    EE(EE_WRITE)          = ER(ER_ERROR_ON_WRITE);
 
1472
    EE(EE_BADCLOSE)       = ER(ER_ERROR_ON_CLOSE);
 
1473
    EE(EE_OUTOFMEMORY)    = ER(ER_OUTOFMEMORY);
 
1474
    EE(EE_DELETE)         = ER(ER_CANT_DELETE_FILE);
 
1475
    EE(EE_LINK)           = ER(ER_ERROR_ON_RENAME);
 
1476
    EE(EE_EOFERR)         = ER(ER_UNEXPECTED_EOF);
 
1477
    EE(EE_CANTLOCK)       = ER(ER_CANT_LOCK);
 
1478
    EE(EE_DIR)            = ER(ER_CANT_READ_DIR);
 
1479
    EE(EE_STAT)           = ER(ER_CANT_GET_STAT);
 
1480
    EE(EE_GETWD)          = ER(ER_CANT_GET_WD);
 
1481
    EE(EE_SETWD)          = ER(ER_CANT_SET_WD);
 
1482
    EE(EE_DISK_FULL)      = ER(ER_DISK_FULL);
 
1483
  }
 
1484
}
 
1485
 
 
1486
bool init_errmessage(void)
 
1487
{
 
1488
 
 
1489
  /* Register messages for use with my_error(). */
 
1490
  if (my_error_register(drizzled_error_messages,
 
1491
                        ER_ERROR_FIRST, ER_ERROR_LAST))
 
1492
  {
 
1493
    return(true);
 
1494
  }
 
1495
 
 
1496
  init_myfunc_errs();                   /* Init myfunc messages */
 
1497
  return(false);
 
1498
}
 
1499
 
 
1500
// -- From here has just been moved from my_error.cc
 
1501
 
 
1502
/* Error message numbers in global map */
 
1503
const char * globerrs[GLOBERRS];
 
1504
 
 
1505
error_handler_func error_handler_hook= NULL;
 
1506
 
 
1507
 
 
1508
void init_glob_errs()
 
1509
{
 
1510
  EE(EE_CANTCREATEFILE) = N_("Can't create/write to file '%s' (Errcode: %d)");
 
1511
  EE(EE_READ)           = N_("Error reading file '%s' (Errcode: %d)");
 
1512
  EE(EE_WRITE)          = N_("Error writing file '%s' (Errcode: %d)");
 
1513
  EE(EE_BADCLOSE)       = N_("Error on close of '%s' (Errcode: %d)");
 
1514
  EE(EE_OUTOFMEMORY)    = N_("Out of memory (Needed %u bytes)");
 
1515
  EE(EE_DELETE)         = N_("Error on delete of '%s' (Errcode: %d)");
 
1516
  EE(EE_LINK)           = N_("Error on rename of '%s' to '%s' (Errcode: %d)");
 
1517
  EE(EE_EOFERR)         = N_("Unexpected eof found when reading file '%s' (Errcode: %d)");
 
1518
  EE(EE_CANTLOCK)       = N_("Can't lock file (Errcode: %d)");
 
1519
  EE(EE_CANTUNLOCK)     = N_("Can't unlock file (Errcode: %d)");
 
1520
  EE(EE_DIR)            = N_("Can't read dir of '%s' (Errcode: %d)");
 
1521
  EE(EE_STAT)           = N_("Can't get stat of '%s' (Errcode: %d)");
 
1522
  EE(EE_CANT_CHSIZE)    = N_("Can't change size of file (Errcode: %d)");
 
1523
  EE(EE_CANT_OPEN_STREAM)= N_("Can't open stream from handle (Errcode: %d)");
 
1524
  EE(EE_GETWD)          = N_("Can't get working dirctory (Errcode: %d)");
 
1525
  EE(EE_SETWD)          = N_("Can't change dir to '%s' (Errcode: %d)");
 
1526
  EE(EE_LINK_WARNING)   = N_("Warning: '%s' had %d links");
 
1527
  EE(EE_OPEN_WARNING)   = N_("Warning: %d files and %d streams is left open\n");
 
1528
  EE(EE_DISK_FULL)      = N_("Disk is full writing '%s'. Waiting for someone to free space...");
 
1529
  EE(EE_CANT_MKDIR)     = N_("Can't create directory '%s' (Errcode: %d)");
 
1530
  EE(EE_UNKNOWN_CHARSET)= N_("Character set '%s' is not a compiled character set and is not specified in the %s file");
 
1531
  EE(EE_OUT_OF_FILERESOURCES)= N_("Out of resources when opening file '%s' (Errcode: %d)");
 
1532
  EE(EE_CANT_READLINK)= N_("Can't read value for symlink '%s' (Error %d)");
 
1533
  EE(EE_CANT_SYMLINK)= N_("Can't create symlink '%s' pointing at '%s' (Error %d)");
 
1534
  EE(EE_REALPATH)= N_("Error on realpath() on '%s' (Error %d)");
 
1535
  EE(EE_SYNC)=   N_("Can't sync file '%s' to disk (Errcode: %d)");
 
1536
  EE(EE_UNKNOWN_COLLATION)= N_("Collation '%s' is not a compiled collation and is not specified in the %s file");
 
1537
  EE(EE_FILENOTFOUND)   = N_("File '%s' not found (Errcode: %d)");
 
1538
  EE(EE_FILE_NOT_CLOSED) = N_("File '%s' (fileno: %d) was not closed");
 
1539
}
 
1540
 
 
1541
/*
 
1542
  WARNING!
 
1543
  my_error family functions have to be used according following rules:
 
1544
  - if message have not parameters use my_message(ER_CODE, ER(ER_CODE), MYF(N))
 
1545
  - if message registered use my_error(ER_CODE, MYF(N), ...).
 
1546
  - With some special text of errror message use:
 
1547
  my_printf_error(ER_CODE, format, MYF(N), ...)
 
1548
*/
 
1549
 
 
1550
/*
 
1551
  Message texts are registered into a linked list of 'my_err_head' structs.
 
1552
  Each struct contains (1.) an array of pointers to C character strings with
 
1553
  '\0' termination, (2.) the error number for the first message in the array
 
1554
  (array index 0) and (3.) the error number for the last message in the array
 
1555
  (array index (last - first)).
 
1556
  The array may contain gaps with NULL pointers and pointers to empty strings.
 
1557
  Both kinds of gaps will be translated to "Unknown error %d.", if my_error()
 
1558
  is called with a respective error number.
 
1559
  The list of header structs is sorted in increasing order of error numbers.
 
1560
  Negative error numbers are allowed. Overlap of error numbers is not allowed.
 
1561
  Not registered error numbers will be translated to "Unknown error %d.".
 
1562
*/
 
1563
static struct my_err_head
 
1564
{
 
1565
  struct my_err_head    *meh_next;      /* chain link */
 
1566
  const char            **meh_errmsgs;  /* error messages array */
 
1567
  int                   meh_first;      /* error number matching array slot 0 */
 
1568
  int                   meh_last;       /* error number matching last slot */
 
1569
  bool                  is_globerrs;
 
1570
} my_errmsgs_globerrs = {NULL, globerrs, EE_ERROR_FIRST, EE_ERROR_LAST, true};
 
1571
 
 
1572
static struct my_err_head *my_errmsgs_list= &my_errmsgs_globerrs;
 
1573
 
 
1574
 
 
1575
/*
 
1576
   Error message to user
 
1577
 
 
1578
   SYNOPSIS
 
1579
     my_error()
 
1580
       nr       Errno
 
1581
       MyFlags  Flags
 
1582
       ...      variable list
 
1583
*/
 
1584
 
 
1585
void my_error(int nr, myf MyFlags, ...)
 
1586
{
 
1587
  const char *format;
 
1588
  struct my_err_head *meh_p;
 
1589
  va_list args;
 
1590
  char ebuff[ERRMSGSIZE + 20];
 
1591
 
 
1592
  /* Search for the error messages array, which could contain the message. */
 
1593
  for (meh_p= my_errmsgs_list; meh_p; meh_p= meh_p->meh_next)
 
1594
    if (nr <= meh_p->meh_last)
 
1595
      break;
 
1596
 
 
1597
  /* get the error message string. Default, if NULL or empty string (""). */
 
1598
  if (! (format= (meh_p && (nr >= meh_p->meh_first)) ?
 
1599
         _(meh_p->meh_errmsgs[nr - meh_p->meh_first]) : NULL) || ! *format)
 
1600
    (void) snprintf (ebuff, sizeof(ebuff), _("Unknown error %d"), nr);
 
1601
  else
 
1602
  {
 
1603
    va_start(args,MyFlags);
 
1604
    (void) vsnprintf (ebuff, sizeof(ebuff), format, args);
 
1605
    va_end(args);
 
1606
  }
 
1607
  (*error_handler_hook)(nr, ebuff, MyFlags);
 
1608
  return;
 
1609
}
 
1610
 
 
1611
 
 
1612
/*
 
1613
  Error as printf
 
1614
 
 
1615
         SYNOPSIS
 
1616
    my_printf_error()
 
1617
      error     Errno
 
1618
      format    Format string
 
1619
      MyFlags   Flags
 
1620
      ...       variable list
 
1621
*/
 
1622
 
 
1623
void my_printf_error(uint32_t error, const char *format, myf MyFlags, ...)
 
1624
{
 
1625
  va_list args;
 
1626
  char ebuff[ERRMSGSIZE+20];
 
1627
 
 
1628
  va_start(args,MyFlags);
 
1629
  (void) vsnprintf (ebuff, sizeof(ebuff), format, args);
 
1630
  va_end(args);
 
1631
  (*error_handler_hook)(error, ebuff, MyFlags);
 
1632
  return;
 
1633
}
 
1634
 
 
1635
/*
 
1636
  Give message using error_handler_hook
 
1637
 
 
1638
  SYNOPSIS
 
1639
    my_message()
 
1640
      error     Errno
 
1641
      str       Error message
 
1642
      MyFlags   Flags
 
1643
*/
 
1644
 
 
1645
void my_message(uint32_t error, const char *str, register myf MyFlags)
 
1646
{
 
1647
  (*error_handler_hook)(error, str, MyFlags);
 
1648
}
 
1649
 
 
1650
 
 
1651
/*
 
1652
  Register error messages for use with my_error().
 
1653
 
 
1654
  SYNOPSIS
 
1655
    my_error_register()
 
1656
    errmsgs                     array of pointers to error messages
 
1657
    first                       error number of first message in the array
 
1658
    last                        error number of last message in the array
 
1659
 
 
1660
  DESCRIPTION
 
1661
    The pointer array is expected to contain addresses to NUL-terminated
 
1662
    C character strings. The array contains (last - first + 1) pointers.
 
1663
    NULL pointers and empty strings ("") are allowed. These will be mapped to
 
1664
    "Unknown error" when my_error() is called with a matching error number.
 
1665
    This function registers the error numbers 'first' to 'last'.
 
1666
    No overlapping with previously registered error numbers is allowed.
 
1667
 
 
1668
  RETURN
 
1669
    0           OK
 
1670
    != 0        Error
 
1671
*/
 
1672
 
 
1673
int my_error_register(const char **errmsgs, int first, int last)
 
1674
{
 
1675
  struct my_err_head *meh_p;
 
1676
  struct my_err_head **search_meh_pp;
 
1677
 
 
1678
  /* Allocate a new header structure. */
 
1679
  if (! (meh_p= (struct my_err_head*) malloc(sizeof(struct my_err_head))))
 
1680
    return 1;
 
1681
  meh_p->meh_errmsgs= errmsgs;
 
1682
  meh_p->meh_first= first;
 
1683
  meh_p->meh_last= last;
 
1684
  meh_p->is_globerrs= false;
 
1685
 
 
1686
  /* Search for the right position in the list. */
 
1687
  for (search_meh_pp= &my_errmsgs_list;
 
1688
       *search_meh_pp;
 
1689
       search_meh_pp= &(*search_meh_pp)->meh_next)
 
1690
  {
 
1691
    if ((*search_meh_pp)->meh_last > first)
 
1692
      break;
 
1693
  }
 
1694
 
 
1695
  /* Error numbers must be unique. No overlapping is allowed. */
 
1696
  if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last))
 
1697
  {
 
1698
    free((unsigned char*)meh_p);
 
1699
    return 1;
 
1700
  }
 
1701
 
 
1702
  /* Insert header into the chain. */
 
1703
  meh_p->meh_next= *search_meh_pp;
 
1704
  *search_meh_pp= meh_p;
 
1705
  return 0;
 
1706
}
 
1707
 
 
1708
 
 
1709
/*
 
1710
  Unregister formerly registered error messages.
 
1711
 
 
1712
  SYNOPSIS
 
1713
    my_error_unregister()
 
1714
    first                       error number of first message
 
1715
    last                        error number of last message
 
1716
 
 
1717
  DESCRIPTION
 
1718
    This function unregisters the error numbers 'first' to 'last'.
 
1719
    These must have been previously registered by my_error_register().
 
1720
    'first' and 'last' must exactly match the registration.
 
1721
    If a matching registration is present, the header is removed from the
 
1722
    list and the pointer to the error messages pointers array is returned.
 
1723
    Otherwise, NULL is returned.
 
1724
 
 
1725
  RETURN
 
1726
    non-NULL    OK, returns address of error messages pointers array.
 
1727
    NULL        Error, no such number range registered.
 
1728
*/
 
1729
 
 
1730
const char **my_error_unregister(int first, int last)
 
1731
{
 
1732
  struct my_err_head    *meh_p;
 
1733
  struct my_err_head    **search_meh_pp;
 
1734
  const char            **errmsgs;
 
1735
 
 
1736
  /* Search for the registration in the list. */
 
1737
  for (search_meh_pp= &my_errmsgs_list;
 
1738
       *search_meh_pp;
 
1739
       search_meh_pp= &(*search_meh_pp)->meh_next)
 
1740
  {
 
1741
    if (((*search_meh_pp)->meh_first == first) &&
 
1742
        ((*search_meh_pp)->meh_last == last))
 
1743
      break;
 
1744
  }
 
1745
  if (! *search_meh_pp)
 
1746
    return NULL;
 
1747
 
 
1748
  /* Remove header from the chain. */
 
1749
  meh_p= *search_meh_pp;
 
1750
  *search_meh_pp= meh_p->meh_next;
 
1751
 
 
1752
  /* Save the return value and free the header. */
 
1753
  errmsgs= meh_p->meh_errmsgs;
 
1754
  bool is_globerrs= meh_p->is_globerrs;
 
1755
 
 
1756
  free((unsigned char*) meh_p);
 
1757
 
 
1758
  if (is_globerrs)
 
1759
    return NULL;
 
1760
 
 
1761
  return errmsgs;
 
1762
}
 
1763
 
 
1764
 
 
1765
void my_error_unregister_all(void)
 
1766
{
 
1767
  struct my_err_head    *list, *next;
 
1768
  for (list= my_errmsgs_globerrs.meh_next; list; list= next)
 
1769
  {
 
1770
    next= list->meh_next;
 
1771
    free((unsigned char*) list);
 
1772
  }
 
1773
  my_errmsgs_list= &my_errmsgs_globerrs;
 
1774
}
 
1775
 
 
1776
} /* namespace drizzled */