Annotation of win32/sql/mysql/include/errmsg.h, revision 1.2

1.2     ! misha       1: /* Copyright (C) 2000 MySQL AB
1.1       parser      2: 
1.2     ! misha       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; version 2 of the License.
1.1       parser      6: 
1.2     ! misha       7:    This program is distributed in the hope that it will be useful,
        !             8:    but WITHOUT ANY WARRANTY; without even the implied warranty of
        !             9:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            10:    GNU General Public License for more details.
        !            11: 
        !            12:    You should have received a copy of the GNU General Public License
        !            13:    along with this program; if not, write to the Free Software
        !            14:    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
        !            15: 
        !            16: /* Error messages for MySQL clients */
        !            17: /* (Error messages for the daemon are in share/language/errmsg.sys) */
        !            18: 
        !            19: #ifdef __cplusplus
        !            20: extern "C" {
        !            21: #endif
1.1       parser     22: void   init_client_errs(void);
1.2     ! misha      23: void   finish_client_errs(void);
1.1       parser     24: extern const char *client_errors[];    /* Error messages */
1.2     ! misha      25: #ifdef __cplusplus
        !            26: }
        !            27: #endif
1.1       parser     28: 
                     29: #define CR_MIN_ERROR           2000    /* For easier client code */
                     30: #define CR_MAX_ERROR           2999
1.2     ! misha      31: #if defined(OS2) && defined(MYSQL_SERVER)
        !            32: #define CER(X) client_errors[(X)-CR_MIN_ERROR]
        !            33: #elif !defined(ER)
1.1       parser     34: #define ER(X) client_errors[(X)-CR_MIN_ERROR]
1.2     ! misha      35: #endif
1.1       parser     36: #define CLIENT_ERRMAP          2       /* Errormap used by my_error() */
                     37: 
1.2     ! misha      38: /* Do not add error numbers before CR_ERROR_FIRST. */
        !            39: /* If necessary to add lower numbers, change CR_ERROR_FIRST accordingly. */
        !            40: #define CR_ERROR_FIRST         2000 /*Copy first error nr.*/
1.1       parser     41: #define CR_UNKNOWN_ERROR       2000
                     42: #define CR_SOCKET_CREATE_ERROR 2001
                     43: #define CR_CONNECTION_ERROR    2002
                     44: #define CR_CONN_HOST_ERROR     2003
                     45: #define CR_IPSOCK_ERROR                2004
                     46: #define CR_UNKNOWN_HOST                2005
                     47: #define CR_SERVER_GONE_ERROR   2006
                     48: #define CR_VERSION_ERROR       2007
                     49: #define CR_OUT_OF_MEMORY       2008
                     50: #define CR_WRONG_HOST_INFO     2009
                     51: #define CR_LOCALHOST_CONNECTION 2010
                     52: #define CR_TCP_CONNECTION      2011
                     53: #define CR_SERVER_HANDSHAKE_ERR 2012
                     54: #define CR_SERVER_LOST         2013
                     55: #define CR_COMMANDS_OUT_OF_SYNC 2014
                     56: #define CR_NAMEDPIPE_CONNECTION 2015
1.2     ! misha      57: #define CR_NAMEDPIPEWAIT_ERROR  2016
        !            58: #define CR_NAMEDPIPEOPEN_ERROR  2017
1.1       parser     59: #define CR_NAMEDPIPESETSTATE_ERROR 2018
1.2     ! misha      60: #define CR_CANT_READ_CHARSET   2019
        !            61: #define CR_NET_PACKET_TOO_LARGE 2020
        !            62: #define CR_EMBEDDED_CONNECTION 2021
        !            63: #define CR_PROBE_SLAVE_STATUS   2022
        !            64: #define CR_PROBE_SLAVE_HOSTS    2023
        !            65: #define CR_PROBE_SLAVE_CONNECT  2024
        !            66: #define CR_PROBE_MASTER_CONNECT 2025
        !            67: #define CR_SSL_CONNECTION_ERROR 2026
        !            68: #define CR_MALFORMED_PACKET     2027
        !            69: #define CR_WRONG_LICENSE       2028
        !            70: 
        !            71: /* new 4.1 error codes */
        !            72: #define CR_NULL_POINTER                2029
        !            73: #define CR_NO_PREPARE_STMT     2030
        !            74: #define CR_PARAMS_NOT_BOUND    2031
        !            75: #define CR_DATA_TRUNCATED      2032
        !            76: #define CR_NO_PARAMETERS_EXISTS 2033
        !            77: #define CR_INVALID_PARAMETER_NO 2034
        !            78: #define CR_INVALID_BUFFER_USE  2035
        !            79: #define CR_UNSUPPORTED_PARAM_TYPE 2036
        !            80: 
        !            81: #define CR_SHARED_MEMORY_CONNECTION             2037
        !            82: #define CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR  2038
        !            83: #define CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR   2039
        !            84: #define CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR 2040
        !            85: #define CR_SHARED_MEMORY_CONNECT_MAP_ERROR      2041
        !            86: #define CR_SHARED_MEMORY_FILE_MAP_ERROR         2042
        !            87: #define CR_SHARED_MEMORY_MAP_ERROR              2043
        !            88: #define CR_SHARED_MEMORY_EVENT_ERROR           2044
        !            89: #define CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR 2045
        !            90: #define CR_SHARED_MEMORY_CONNECT_SET_ERROR      2046
        !            91: #define CR_CONN_UNKNOW_PROTOCOL                2047
        !            92: #define CR_INVALID_CONN_HANDLE                 2048
        !            93: #define CR_SECURE_AUTH                          2049
        !            94: #define CR_FETCH_CANCELED                       2050
        !            95: #define CR_NO_DATA                              2051
        !            96: #define CR_NO_STMT_METADATA                     2052
        !            97: #define CR_NO_RESULT_SET                        2053
        !            98: #define CR_NOT_IMPLEMENTED                      2054
        !            99: #define CR_SERVER_LOST_EXTENDED                        2055
        !           100: #define CR_ERROR_LAST  /*Copy last error nr:*/  2055
        !           101: /* Add error numbers before CR_ERROR_LAST and change it accordingly. */
        !           102: 

E-mail: