1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems, Inc.
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.
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.
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
20
#ifndef PLUGIN_MYSQL_PROTOCOL_ERRMSG_H
21
#define PLUGIN_MYSQL_PROTOCOL_ERRMSG_H
23
/* Error messages for MySQL clients */
24
enum CR_CLIENT_ERRORS {
25
CR_ERROR_FIRST =2000, /*Copy first error nr.*/
26
CR_UNKNOWN_ERROR =2000,
27
CR_SOCKET_CREATE_ERROR =2001,
28
CR_CONNECTION_ERROR =2002,
29
CR_CONN_HOST_ERROR =2003,
30
CR_IPSOCK_ERROR =2004,
31
CR_UNKNOWN_HOST =2005,
32
CR_SERVER_GONE_ERROR =2006,
33
CR_VERSION_ERROR =2007,
34
CR_OUT_OF_MEMORY =2008,
35
CR_WRONG_HOST_INFO =2009,
36
CR_LOCALHOST_CONNECTION =2010,
37
CR_TCP_CONNECTION =2011,
38
CR_SERVER_HANDSHAKE_ERR =2012,
40
CR_COMMANDS_OUT_OF_SYNC =2014,
41
CR_NAMEDPIPE_CONNECTION =2015,
42
CR_NAMEDPIPEWAIT_ERROR =2016,
43
CR_NAMEDPIPEOPEN_ERROR =2017,
44
CR_NAMEDPIPESETSTATE_ERROR =2018,
45
CR_CANT_READ_CHARSET =2019,
46
CR_NET_PACKET_TOO_LARGE =2020,
47
CR_EMBEDDED_CONNECTION =2021,
48
CR_PROBE_SLAVE_STATUS =2022,
49
CR_PROBE_SLAVE_HOSTS =2023,
50
CR_PROBE_SLAVE_CONNECT =2024,
51
CR_PROBE_MASTER_CONNECT =2025,
52
CR_SSL_CONNECTION_ERROR =2026,
53
CR_MALFORMED_PACKET =2027,
55
CR_NULL_POINTER =2029,
56
CR_NO_PREPARE_STMT =2030,
57
CR_PARAMS_NOT_BOUND =2031,
58
CR_DATA_TRUNCATED =2032,
59
CR_NO_PARAMETERS_EXISTS =2033,
60
CR_INVALID_PARAMETER_NO =2034,
61
CR_INVALID_BUFFER_USE =2035,
62
CR_UNSUPPORTED_PARAM_TYPE =2036,
64
CR_CONN_UNKNOW_PROTOCOL =2047,
65
CR_INVALID_CONN_HANDLE =2048,
67
CR_FETCH_CANCELED =2050,
69
CR_NO_STMT_METADATA =2052,
70
CR_NO_RESULT_SET =2053,
71
CR_NOT_IMPLEMENTED =2054,
72
CR_SERVER_LOST_INITIAL_COMM_WAIT =2055,
73
CR_SERVER_LOST_INITIAL_COMM_READ =2056,
74
CR_SERVER_LOST_SEND_AUTH =2057,
75
CR_SERVER_LOST_READ_AUTH =2058,
76
CR_SERVER_LOST_SETTING_DB =2059,
80
CR_NET_UNCOMPRESS_ERROR= 2061,
81
CR_NET_READ_ERROR= 2062,
82
CR_NET_READ_INTERRUPTED= 2063,
83
CR_NET_ERROR_ON_WRITE= 2064,
84
CR_NET_WRITE_INTERRUPTED= 2065,
86
/* Add error numbers before CR_ERROR_LAST and change it accordingly. */
87
CR_ERROR_LAST =2065 /*Copy last error nr:*/
90
#endif /* PLUGIN_MYSQL_PROTOCOL_ERRMSG_H */