~drizzle-trunk/drizzle/development

971.7.10 by Eric Day
Duplicated oldlibdrizzle module, one for Drizzle protocol and one for MySQL, per Brian's request from merge proposal. Port options are now --drizzle-protocol-port and --mysql-protocol-port.
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
 */
19
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
20
#pragma once
971.7.10 by Eric Day
Duplicated oldlibdrizzle module, one for Drizzle protocol and one for MySQL, per Brian's request from merge proposal. Port options are now --drizzle-protocol-port and --mysql-protocol-port.
21
1964.2.9 by Monty Taylor
All protocol stuff except for the buffer_length. WTF?
22
namespace drizzle_plugin
23
{
24
971.7.10 by Eric Day
Duplicated oldlibdrizzle module, one for Drizzle protocol and one for MySQL, per Brian's request from merge proposal. Port options are now --drizzle-protocol-port and --mysql-protocol-port.
25
/* Error messages for MySQL clients */
26
enum CR_CLIENT_ERRORS {
27
  CR_ERROR_FIRST    =2000, /*Copy first error nr.*/
28
  CR_UNKNOWN_ERROR  =2000,
29
  CR_SOCKET_CREATE_ERROR  =2001,
30
  CR_CONNECTION_ERROR  =2002,
31
  CR_CONN_HOST_ERROR  =2003,
32
  CR_IPSOCK_ERROR    =2004,
33
  CR_UNKNOWN_HOST    =2005,
34
  CR_SERVER_GONE_ERROR  =2006,
35
  CR_VERSION_ERROR  =2007,
36
  CR_OUT_OF_MEMORY  =2008,
37
  CR_WRONG_HOST_INFO  =2009,
38
  CR_LOCALHOST_CONNECTION =2010,
39
  CR_TCP_CONNECTION  =2011,
40
  CR_SERVER_HANDSHAKE_ERR =2012,
41
  CR_SERVER_LOST    =2013,
42
  CR_COMMANDS_OUT_OF_SYNC =2014,
43
  CR_NAMEDPIPE_CONNECTION =2015,
44
  CR_NAMEDPIPEWAIT_ERROR  =2016,
45
  CR_NAMEDPIPEOPEN_ERROR  =2017,
46
  CR_NAMEDPIPESETSTATE_ERROR =2018,
47
  CR_CANT_READ_CHARSET  =2019,
48
  CR_NET_PACKET_TOO_LARGE =2020,
49
  CR_EMBEDDED_CONNECTION  =2021,
50
  CR_PROBE_SLAVE_STATUS   =2022,
51
  CR_PROBE_SLAVE_HOSTS    =2023,
52
  CR_PROBE_SLAVE_CONNECT  =2024,
53
  CR_PROBE_MASTER_CONNECT =2025,
54
  CR_SSL_CONNECTION_ERROR =2026,
55
  CR_MALFORMED_PACKET     =2027,
56
57
  CR_NULL_POINTER    =2029,
58
  CR_NO_PREPARE_STMT  =2030,
59
  CR_PARAMS_NOT_BOUND  =2031,
60
  CR_DATA_TRUNCATED  =2032,
61
  CR_NO_PARAMETERS_EXISTS =2033,
62
  CR_INVALID_PARAMETER_NO =2034,
63
  CR_INVALID_BUFFER_USE  =2035,
64
  CR_UNSUPPORTED_PARAM_TYPE =2036,
65
66
  CR_CONN_UNKNOW_PROTOCOL     =2047,
67
  CR_INVALID_CONN_HANDLE      =2048,
68
  CR_SECURE_AUTH                          =2049,
69
  CR_FETCH_CANCELED                       =2050,
70
  CR_NO_DATA                              =2051,
71
  CR_NO_STMT_METADATA                     =2052,
72
  CR_NO_RESULT_SET                        =2053,
73
  CR_NOT_IMPLEMENTED                      =2054,
74
  CR_SERVER_LOST_INITIAL_COMM_WAIT  =2055,
75
  CR_SERVER_LOST_INITIAL_COMM_READ  =2056,
76
  CR_SERVER_LOST_SEND_AUTH    =2057,
77
  CR_SERVER_LOST_READ_AUTH    =2058,
78
  CR_SERVER_LOST_SETTING_DB    =2059,
79
80
  CR_STMT_CLOSED  =2060,
81
82
  CR_NET_UNCOMPRESS_ERROR= 2061,
83
  CR_NET_READ_ERROR= 2062,
84
  CR_NET_READ_INTERRUPTED= 2063,
85
  CR_NET_ERROR_ON_WRITE= 2064,
86
  CR_NET_WRITE_INTERRUPTED= 2065,
87
88
  /* Add error numbers before CR_ERROR_LAST and change it accordingly. */
89
  CR_ERROR_LAST    =2065 /*Copy last error nr:*/
90
};
91
1964.2.9 by Monty Taylor
All protocol stuff except for the buffer_length. WTF?
92
} /* namespace drizzle_plugin */
93