~vlad-lesin/percona-server/mysql-5.0.33-original

« back to all changes in this revision

Viewing changes to sql/mini_client_errors.c

  • Committer: Vlad Lesin
  • Date: 2012-07-31 09:21:34 UTC
  • Revision ID: vladislav.lesin@percona.com-20120731092134-zfodx022b7992wsi
Virgin 5.0.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2000-2004 MySQL AB
 
2
 
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation.
 
6
 
 
7
   There are special exceptions to the terms and conditions of the GPL as it
 
8
   is applied to this software. View the full text of the exception in file
 
9
   EXCEPTIONS-CLIENT in the directory of this software distribution.
 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
19
 
 
20
/* Error messages for MySQL clients */
 
21
/* (Error messages for the daemon are in share/language/errmsg.sys) */
 
22
 
 
23
#include <my_global.h>
 
24
#include <my_sys.h>
 
25
#include "errmsg.h"
 
26
 
 
27
#ifdef GERMAN
 
28
const char *client_errors[]=
 
29
{
 
30
  "Unbekannter MySQL Fehler",
 
31
  "Kann UNIX-Socket nicht anlegen (%d)",
 
32
  "Keine Verbindung zu lokalem MySQL Server, socket: '%-.100s' (%d)",
 
33
  "Keine Verbindung zu MySQL Server auf %-.100s (%d)",
 
34
  "Kann TCP/IP-Socket nicht anlegen (%d)",
 
35
  "Unbekannter MySQL Server Host (%-.100s) (%d)",
 
36
  "MySQL Server nicht vorhanden",
 
37
  "Protokolle ungleich; Server Version = %d, Client Version = %d",
 
38
  "MySQL client ran out of memory",
 
39
  "Wrong host info",
 
40
  "Localhost via UNIX socket",
 
41
  "%-.100s via TCP/IP",
 
42
  "Error in server handshake",
 
43
  "Lost connection to MySQL server during query",
 
44
  "Commands out of sync; you can't run this command now",
 
45
  "Verbindung ueber Named Pipe: %-.32s",
 
46
  "Kann nicht auf Named Pipe warten. Host: %-.64s  pipe: %-.32s (%lu)",
 
47
  "Kann Named Pipe nicht oeffnen. Host: %-.64s  pipe: %-.32s (%lu)",
 
48
  "Kann den Status der Named Pipe nicht setzen.  Host: %-.64s  pipe: %-.32s (%lu)",
 
49
  "Can't initialize character set %-.32s (path: %-.100s)",
 
50
  "Got packet bigger than 'max_allowed_packet' bytes",
 
51
  "Embedded server",
 
52
  "Error on SHOW SLAVE STATUS:",
 
53
  "Error on SHOW SLAVE HOSTS:",
 
54
  "Error connecting to slave:",
 
55
  "Error connecting to master:",
 
56
  "SSL connection error",
 
57
  "Malformed packet",
 
58
  "This client library is licensed only for use with MySQL servers having '%s' license",
 
59
  "Invalid use of null pointer",
 
60
  "Statement not prepared",
 
61
  "No data supplied for parameters in prepared statement",
 
62
  "Data truncated",
 
63
  "No parameters exist in the statement",
 
64
  "Invalid parameter number",
 
65
  "Can't send long data for non-string/non-binary data types (parameter: %d)",
 
66
  "Using unsupported buffer type: %d  (parameter: %d)",
 
67
  "Shared memory: %-.100s",
 
68
  "Can't open shared memory; client could not create request event (%lu)",
 
69
  "Can't open shared memory; no answer event received from server (%lu)",
 
70
  "Can't open shared memory; server could not allocate file mapping (%lu)",
 
71
  "Can't open shared memory; server could not get pointer to file mapping (%lu)",
 
72
  "Can't open shared memory; client could not allocate file mapping (%lu)",
 
73
  "Can't open shared memory; client could not get pointer to file mapping (%lu)",
 
74
  "Can't open shared memory; client could not create %s event (%lu)",
 
75
  "Can't open shared memory; no answer from server (%lu)",
 
76
  "Can't open shared memory; cannot send request event to server (%lu)",
 
77
  "Wrong or unknown protocol",
 
78
  "Invalid connection handle",
 
79
  "Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)",
 
80
  "Row retrieval was canceled by mysql_stmt_close() call",
 
81
  "Attempt to read column without prior row fetch",
 
82
  "Prepared statement contains no metadata",
 
83
  "Attempt to read a row while there is no result set associated with the statement",
 
84
  "This feature is not implemented yet",
 
85
  "Lost connection to MySQL server at '%s', system error: %d",
 
86
  ""
 
87
};
 
88
 
 
89
/* Start of code added by Roberto M. Serqueira - martinsc@uol.com.br - 05.24.2001 */
 
90
 
 
91
#elif defined PORTUGUESE
 
92
const char *client_errors[]=
 
93
{
 
94
  "Erro desconhecido do MySQL",
 
95
  "N�o pode criar 'UNIX socket' (%d)",
 
96
  "N�o pode se conectar ao servidor MySQL local atrav�s do 'socket' '%-.100s' (%d)", 
 
97
  "N�o pode se conectar ao servidor MySQL em '%-.100s' (%d)",
 
98
  "N�o pode criar 'socket TCP/IP' (%d)",
 
99
  "'Host' servidor MySQL '%-.100s' (%d) desconhecido",
 
100
  "Servidor MySQL desapareceu",
 
101
  "Incompatibilidade de protocolos; vers�o do servidor = %d, vers�o do cliente = %d",
 
102
  "Cliente do MySQL com falta de mem�ria",
 
103
  "Informa��o inv�lida de 'host'",
 
104
  "Localhost via 'UNIX socket'",
 
105
  "%-.100s via 'TCP/IP'",
 
106
  "Erro na negocia��o de acesso ao servidor",
 
107
  "Conex�o perdida com servidor MySQL durante 'query'",
 
108
  "Comandos fora de sincronismo; voc� n�o pode executar este comando agora",
 
109
  "Named pipe: %-.32s",
 
110
  "N�o pode esperar pelo 'named pipe' para o 'host' %-.64s - 'pipe' %-.32s (%lu)",
 
111
  "N�o pode abrir 'named pipe' para o 'host' %-.64s - 'pipe' %-.32s (%lu)",
 
112
  "N�o pode estabelecer o estado do 'named pipe' para o 'host' %-.64s - 'pipe' %-.32s (%lu)",
 
113
  "N�o pode inicializar conjunto de caracteres %-.32s (caminho %-.100s)",
 
114
  "Obteve pacote maior do que 'max_allowed_packet' bytes",
 
115
  "Embedded server"
 
116
  "Error on SHOW SLAVE STATUS:",
 
117
  "Error on SHOW SLAVE HOSTS:",
 
118
  "Error connecting to slave:",
 
119
  "Error connecting to master:",
 
120
  "SSL connection error",
 
121
  "Malformed packet",
 
122
  "This client library is licensed only for use with MySQL servers having '%s' license",
 
123
  "Invalid use of null pointer",
 
124
  "Statement not prepared",
 
125
  "No data supplied for parameters in prepared statement",
 
126
  "Data truncated",
 
127
  "No parameters exist in the statement",
 
128
  "Invalid parameter number",
 
129
  "Can't send long data for non-string/non-binary data types (parameter: %d)",
 
130
  "Using unsupported buffer type: %d  (parameter: %d)",
 
131
  "Shared memory: %-.100s",
 
132
  "Can't open shared memory; client could not create request event (%lu)",
 
133
  "Can't open shared memory; no answer event received from server (%lu)",
 
134
  "Can't open shared memory; server could not allocate file mapping (%lu)",
 
135
  "Can't open shared memory; server could not get pointer to file mapping (%lu)",
 
136
  "Can't open shared memory; client could not allocate file mapping (%lu)",
 
137
  "Can't open shared memory; client could not get pointer to file mapping (%lu)",
 
138
  "Can't open shared memory; client could not create %s event (%lu)",
 
139
  "Can't open shared memory; no answer from server (%lu)",
 
140
  "Can't open shared memory; cannot send request event to server (%lu)",
 
141
  "Wrong or unknown protocol",
 
142
  "Invalid connection handle",
 
143
  "Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)",
 
144
  "Row retrieval was canceled by mysql_stmt_close() call",
 
145
  "Attempt to read column without prior row fetch",
 
146
  "Prepared statement contains no metadata",
 
147
  "Attempt to read a row while there is no result set associated with the statement",
 
148
  "This feature is not implemented yet",
 
149
  "Lost connection to MySQL server at '%s', system error: %d",
 
150
  ""
 
151
};
 
152
 
 
153
#else /* ENGLISH */
 
154
const char *client_errors[]=
 
155
{
 
156
  "Unknown MySQL error",
 
157
  "Can't create UNIX socket (%d)",
 
158
  "Can't connect to local MySQL server through socket '%-.100s' (%d)",
 
159
  "Can't connect to MySQL server on '%-.100s' (%d)",
 
160
  "Can't create TCP/IP socket (%d)",
 
161
  "Unknown MySQL server host '%-.100s' (%d)",
 
162
  "MySQL server has gone away",
 
163
  "Protocol mismatch; server version = %d, client version = %d",
 
164
  "MySQL client ran out of memory",
 
165
  "Wrong host info",
 
166
  "Localhost via UNIX socket",
 
167
  "%-.100s via TCP/IP",
 
168
  "Error in server handshake",
 
169
  "Lost connection to MySQL server during query",
 
170
  "Commands out of sync; you can't run this command now",
 
171
  "Named pipe: %-.32s",
 
172
  "Can't wait for named pipe to host: %-.64s  pipe: %-.32s (%lu)",
 
173
  "Can't open named pipe to host: %-.64s  pipe: %-.32s (%lu)",
 
174
  "Can't set state of named pipe to host: %-.64s  pipe: %-.32s (%lu)",
 
175
  "Can't initialize character set %-.32s (path: %-.100s)",
 
176
  "Got packet bigger than 'max_allowed_packet' bytes",
 
177
  "Embedded server",
 
178
  "Error on SHOW SLAVE STATUS:",
 
179
  "Error on SHOW SLAVE HOSTS:",
 
180
  "Error connecting to slave:",
 
181
  "Error connecting to master:",
 
182
  "SSL connection error",
 
183
  "Malformed packet",
 
184
  "This client library is licensed only for use with MySQL servers having '%s' license",
 
185
  "Invalid use of null pointer",
 
186
  "Statement not prepared",
 
187
  "No data supplied for parameters in prepared statement",
 
188
  "Data truncated",
 
189
  "No parameters exist in the statement",
 
190
  "Invalid parameter number",
 
191
  "Can't send long data for non-string/non-binary data types (parameter: %d)",
 
192
  "Using unsupported buffer type: %d  (parameter: %d)",
 
193
  "Shared memory: %-.100s",
 
194
  "Can't open shared memory; client could not create request event (%lu)",
 
195
  "Can't open shared memory; no answer event received from server (%lu)",
 
196
  "Can't open shared memory; server could not allocate file mapping (%lu)",
 
197
  "Can't open shared memory; server could not get pointer to file mapping (%lu)",
 
198
  "Can't open shared memory; client could not allocate file mapping (%lu)",
 
199
  "Can't open shared memory; client could not get pointer to file mapping (%lu)",
 
200
  "Can't open shared memory; client could not create %s event (%lu)",
 
201
  "Can't open shared memory; no answer from server (%lu)",
 
202
  "Can't open shared memory; cannot send request event to server (%lu)",
 
203
  "Wrong or unknown protocol",
 
204
  "Invalid connection handle",
 
205
  "Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)",
 
206
  "Row retrieval was canceled by mysql_stmt_close() call",
 
207
  "Attempt to read column without prior row fetch",
 
208
  "Prepared statement contains no metadata",
 
209
  "Attempt to read a row while there is no result set associated with the statement",
 
210
  "This feature is not implemented yet",
 
211
  "Lost connection to MySQL server at '%s', system error: %d",
 
212
  ""
 
213
};
 
214
#endif
 
215
 
 
216
 
 
217
/*
 
218
  Register client error messages for use with my_error().
 
219
 
 
220
  SYNOPSIS
 
221
    init_client_errs()
 
222
 
 
223
  RETURN
 
224
    void
 
225
*/
 
226
 
 
227
void init_client_errs(void)
 
228
{
 
229
  (void) my_error_register(client_errors, CR_ERROR_FIRST, CR_ERROR_LAST);
 
230
}
 
231
 
 
232
 
 
233
/*
 
234
  Unregister client error messages.
 
235
 
 
236
  SYNOPSIS
 
237
    finish_client_errs()
 
238
 
 
239
  RETURN
 
240
    void
 
241
*/
 
242
 
 
243
void finish_client_errs(void)
 
244
{
 
245
  (void) my_error_unregister(CR_ERROR_FIRST, CR_ERROR_LAST);
 
246
}