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