00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 void init_client_errs(void);
00024 extern const char *client_errors[];
00025 #ifdef __cplusplus
00026 }
00027 #endif
00028
00029 #define CR_MIN_ERROR 2000
00030 #define CR_MAX_ERROR 2999
00031 #if defined(OS2) && defined(MYSQL_SERVER)
00032 #define CER(X) client_errors[(X)-CR_MIN_ERROR]
00033 #elif !defined(ER)
00034 #define ER(X) client_errors[(X)-CR_MIN_ERROR]
00035 #endif
00036 #define CLIENT_ERRMAP 2
00037
00038 #define CR_UNKNOWN_ERROR 2000
00039 #define CR_SOCKET_CREATE_ERROR 2001
00040 #define CR_CONNECTION_ERROR 2002
00041 #define CR_CONN_HOST_ERROR 2003
00042 #define CR_IPSOCK_ERROR 2004
00043 #define CR_UNKNOWN_HOST 2005
00044 #define CR_SERVER_GONE_ERROR 2006
00045 #define CR_VERSION_ERROR 2007
00046 #define CR_OUT_OF_MEMORY 2008
00047 #define CR_WRONG_HOST_INFO 2009
00048 #define CR_LOCALHOST_CONNECTION 2010
00049 #define CR_TCP_CONNECTION 2011
00050 #define CR_SERVER_HANDSHAKE_ERR 2012
00051 #define CR_SERVER_LOST 2013
00052 #define CR_COMMANDS_OUT_OF_SYNC 2014
00053 #define CR_NAMEDPIPE_CONNECTION 2015
00054 #define CR_NAMEDPIPEWAIT_ERROR 2016
00055 #define CR_NAMEDPIPEOPEN_ERROR 2017
00056 #define CR_NAMEDPIPESETSTATE_ERROR 2018
00057 #define CR_CANT_READ_CHARSET 2019
00058 #define CR_NET_PACKET_TOO_LARGE 2020
00059 #define CR_EMBEDDED_CONNECTION 2021
00060 #define CR_PROBE_SLAVE_STATUS 2022
00061 #define CR_PROBE_SLAVE_HOSTS 2023
00062 #define CR_PROBE_SLAVE_CONNECT 2024
00063 #define CR_PROBE_MASTER_CONNECT 2025
00064 #define CR_SSL_CONNECTION_ERROR 2026
00065 #define CR_MALFORMED_PACKET 2027
00066 #define CR_WRONG_LICENSE 2028
00067
00068
00069 #define CR_NULL_POINTER 2029
00070 #define CR_NO_PREPARE_STMT 2030
00071 #define CR_PARAMS_NOT_BOUND 2031
00072 #define CR_DATA_TRUNCATED 2032
00073 #define CR_NO_PARAMETERS_EXISTS 2033
00074 #define CR_INVALID_PARAMETER_NO 2034
00075 #define CR_INVALID_BUFFER_USE 2035
00076 #define CR_UNSUPPORTED_PARAM_TYPE 2036
00077
00078 #define CR_SHARED_MEMORY_CONNECTION 2037
00079 #define CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR 2038
00080 #define CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR 2039
00081 #define CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR 2040
00082 #define CR_SHARED_MEMORY_CONNECT_MAP_ERROR 2041
00083 #define CR_SHARED_MEMORY_FILE_MAP_ERROR 2042
00084 #define CR_SHARED_MEMORY_MAP_ERROR 2043
00085 #define CR_SHARED_MEMORY_EVENT_ERROR 2044
00086 #define CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR 2045
00087 #define CR_SHARED_MEMORY_CONNECT_SET_ERROR 2046
00088 #define CR_CONN_UNKNOW_PROTOCOL 2047
00089 #define CR_INVALID_CONN_HANDLE 2048
00090 #define CR_SECURE_AUTH 2049
00091 #define CR_FETCH_CANCELED 2050
00092 #define CR_NO_DATA 2051
00093 #define CR_NO_STMT_METADATA 2052