390.1.4
by Monty Taylor
More copyright header file fixes. |
1 |
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3 |
*
|
|
4 |
* Copyright (C) 2008 Sun Microsystems, Inc.
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; version 2 of the License.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 |
*/
|
|
1
by brian
clean slate |
19 |
|
20 |
/* Error messages for MySQL clients */
|
|
21 |
||
908.1.16
by Monty Taylor
Hardcoding /opt/csw/include in was doing some bad things with gettext. |
22 |
#include "config.h" |
538
by Monty Taylor
Moved gettext.h into drizzled in anticipation of the new client lib. |
23 |
#include <drizzled/gettext.h> |
1
by brian
clean slate |
24 |
#include "errmsg.h" |
25 |
||
26 |
const char *client_errors[]= |
|
27 |
{
|
|
337
by Monty Taylor
Cleaned up libdrizzle error messages a little more. |
28 |
N_("Unknown Drizzle error"), |
29 |
N_("Can't create UNIX socket (%d)"), |
|
30 |
N_("Can't connect to local Drizzle server through socket '%-.100s' (%d)"), |
|
31 |
N_("Can't connect to Drizzle server on '%-.100s' (%d)"), |
|
32 |
N_("Can't create TCP/IP socket (%d)"), |
|
33 |
N_("Unknown Drizzle server host '%-.100s' (%d)"), |
|
34 |
N_("Drizzle server has gone away"), |
|
35 |
N_("Protocol mismatch; server version = %d, client version = %d"), |
|
36 |
N_("Drizzle client ran out of memory"), |
|
37 |
N_("Wrong host info"), |
|
38 |
N_("Localhost via UNIX socket"), |
|
39 |
N_("%-.100s via TCP/IP"), |
|
40 |
N_("Error in server handshake"), |
|
41 |
N_("Lost connection to Drizzle server during query"), |
|
42 |
N_("Commands out of sync; you can't run this command now"), |
|
43 |
N_("Named pipe: %-.32s"), |
|
44 |
N_("Can't wait for named pipe to host: %-.64s pipe: %-.32s (%lu)"), |
|
45 |
N_("Can't open named pipe to host: %-.64s pipe: %-.32s (%lu)"), |
|
46 |
N_("Can't set state of named pipe to host: %-.64s pipe: %-.32s (%lu)"), |
|
47 |
N_("Can't initialize character set %-.32s (path: %-.100s)"), |
|
48 |
N_("Got packet bigger than 'max_allowed_packet' bytes"), |
|
49 |
N_("Embedded server"), |
|
50 |
N_("Error on SHOW SLAVE STATUS:"), |
|
51 |
N_("Error on SHOW SLAVE HOSTS:"), |
|
52 |
N_("Error connecting to slave:"), |
|
53 |
N_("Error connecting to master:"), |
|
54 |
N_("SSL connection error"), |
|
55 |
N_("Malformed packet"), |
|
56 |
N_("(unused error message)"), |
|
57 |
N_("Invalid use of null pointer"), |
|
58 |
N_("Statement not prepared"), |
|
59 |
N_("No data supplied for parameters in prepared statement"), |
|
60 |
N_("Data truncated"), |
|
61 |
N_("No parameters exist in the statement"), |
|
62 |
N_("Invalid parameter number"), |
|
63 |
N_("Can't send long data for non-string/non-binary data types " |
|
64 |
"(parameter: %d)"), |
|
65 |
N_("Using unsupported buffer type: %d (parameter: %d)"), |
|
66 |
N_("Shared memory: %-.100s"), |
|
67 |
N_("(unused error message)"), |
|
68 |
N_("(unused error message)"), |
|
69 |
N_("(unused error message)"), |
|
70 |
N_("(unused error message)"), |
|
71 |
N_("(unused error message)"), |
|
72 |
N_("(unused error message)"), |
|
73 |
N_("(unused error message)"), |
|
74 |
N_("(unused error message)"), |
|
75 |
N_("(unused error message)"), |
|
76 |
N_("Wrong or unknown protocol"), |
|
77 |
N_("Invalid connection handle"), |
|
78 |
N_("Connection using old (pre-4.1.1) authentication protocol refused " |
|
79 |
"(client option 'secure_auth' enabled)"), |
|
80 |
N_("Row retrieval was canceled by drizzle_stmt_close() call"), |
|
81 |
N_("Attempt to read column without prior row fetch"), |
|
82 |
N_("Prepared statement contains no metadata"), |
|
83 |
N_("Attempt to read a row while there is no result set associated with " |
|
84 |
"the statement"), |
|
85 |
N_("This feature is not implemented yet"), |
|
86 |
N_("Lost connection to Drizzle server while waiting for initial " |
|
87 |
"communication packet, system error: %d"), |
|
88 |
N_("Lost connection to Drizzle server while reading initial communication " |
|
89 |
"packet, system error: %d"), |
|
90 |
N_("Lost connection to Drizzle server while sending authentication " |
|
91 |
"information, system error: %d"), |
|
92 |
N_("Lost connection to Drizzle server while reading authorization " |
|
93 |
"information, system error: %d"), |
|
94 |
N_("Lost connection to Drizzle server while setting initial database, " |
|
95 |
"system error: %d"), |
|
672.1.3
by Andrew Hutchings
Minor string fixes (mainly US English spelling and typos) |
96 |
N_("Statement closed indirectly because of a preceding %s() call"), |
383.1.37
by Monty Taylor
Removed some mysys from net_serv.c. |
97 |
/* CR_NET_UNCOMPRESS_ERROR 08S01 */
|
98 |
N_("Couldn't uncompress communication packet"), |
|
99 |
/* CR_NET_READ_ERROR 08S01 */
|
|
100 |
N_("Got an error reading communication packets"), |
|
101 |
/* CR_NET_READ_INTERRUPTED 08S01 */
|
|
102 |
N_("Got timeout reading communication packets"), |
|
103 |
/* CR_NET_ERROR_ON_WRITE 08S01 */
|
|
104 |
N_("Got an error writing communication packets"), |
|
105 |
/* CR_NET_WRITE_INTERRUPTED 08S01 */
|
|
106 |
N_("Got timeout writing communication packets"), |
|
1
by brian
clean slate |
107 |
""
|
108 |
};
|
|
329
by Monty Taylor
Changed client_errors to be exposed through a function. |
109 |
|
110 |
||
111 |
const char * |
|
840.1.20
by Monty Taylor
Renamed non-prefixed things from libdrizzleclient to drizzleclient. |
112 |
drizzleclient_get_client_error(unsigned int err_index) |
329
by Monty Taylor
Changed client_errors to be exposed through a function. |
113 |
{
|
337
by Monty Taylor
Cleaned up libdrizzle error messages a little more. |
114 |
return _(client_errors[err_index]); |
1
by brian
clean slate |
115 |
}
|