Eneboo - Documentación para desarrolladores
src/libmysql_macosx/include/sql_state.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2000-2003 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; either version 2 of the License, or
00006    (at your option) any later version.
00007 
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012 
00013    You should have received a copy of the GNU General Public License
00014    along with this program; if not, write to the Free Software
00015    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00016 
00017 /*
00018   This file includes a mapping from mysql_errno.h to sql_state (as used by
00019   MyODBC) and jdbc_state.
00020   It's suitable to include into a C struct for further processing
00021 
00022   The first column is the mysqld server error (declared in mysqld_error.h),
00023   the second column is the ODBC state (which the 4.1 server sends out by
00024   default) and the last is the state used by the JDBC driver.
00025   If the last column is "" then it means that the JDBC driver is using the
00026   ODBC state.
00027 
00028   The errors in this file are sorted in the same order as in mysqld_error.h
00029   to allow one to do binary searches for the sqlstate.
00030 */
00031 
00032 ER_DUP_KEY,                     "23000", "",
00033 ER_OUTOFMEMORY,                 "HY001", "S1001",
00034 ER_OUT_OF_SORTMEMORY,           "HY001", "S1001",
00035 ER_CON_COUNT_ERROR,             "08004", "",
00036 ER_BAD_HOST_ERROR,              "08S01", "",
00037 ER_HANDSHAKE_ERROR,             "08S01", "",
00038 ER_DBACCESS_DENIED_ERROR,       "42000", "",
00039 ER_ACCESS_DENIED_ERROR,         "28000", "",
00040 ER_NO_DB_ERROR,                 "3D000", "",
00041 ER_UNKNOWN_COM_ERROR,           "08S01", "",
00042 ER_BAD_NULL_ERROR,              "23000", "",
00043 ER_BAD_DB_ERROR,                "42000", "",
00044 ER_TABLE_EXISTS_ERROR,          "42S01", "",
00045 ER_BAD_TABLE_ERROR,             "42S02", "",
00046 ER_NON_UNIQ_ERROR,              "23000", "",
00047 ER_SERVER_SHUTDOWN,             "08S01", "",
00048 ER_BAD_FIELD_ERROR,             "42S22", "S0022",
00049 ER_WRONG_FIELD_WITH_GROUP,      "42000", "S1009",
00050 ER_WRONG_GROUP_FIELD,           "42000", "S1009",
00051 ER_WRONG_SUM_SELECT,            "42000", "S1009",
00052 ER_WRONG_VALUE_COUNT,           "21S01", "",
00053 ER_TOO_LONG_IDENT,              "42000", "S1009",
00054 ER_DUP_FIELDNAME,               "42S21", "S1009",
00055 ER_DUP_KEYNAME,                 "42000", "S1009",
00056 ER_DUP_ENTRY,                   "23000", "S1009",
00057 ER_WRONG_FIELD_SPEC,            "42000", "S1009",
00058 ER_PARSE_ERROR,                 "42000", "",
00059 ER_EMPTY_QUERY,                 "42000" , "",
00060 ER_NONUNIQ_TABLE,               "42000", "S1009",
00061 ER_INVALID_DEFAULT,             "42000", "S1009",
00062 ER_MULTIPLE_PRI_KEY,            "42000", "S1009",
00063 ER_TOO_MANY_KEYS,               "42000", "S1009",
00064 ER_TOO_MANY_KEY_PARTS,          "42000", "S1009",
00065 ER_TOO_LONG_KEY,                "42000", "S1009",
00066 ER_KEY_COLUMN_DOES_NOT_EXITS,   "42000", "S1009",
00067 ER_BLOB_USED_AS_KEY,            "42000", "S1009",
00068 ER_TOO_BIG_FIELDLENGTH,         "42000", "S1009",
00069 ER_WRONG_AUTO_KEY,              "42000", "S1009",
00070 ER_FORCING_CLOSE,               "08S01", "",
00071 ER_IPSOCK_ERROR,                "08S01", "",
00072 ER_NO_SUCH_INDEX,               "42S12", "S1009",
00073 ER_WRONG_FIELD_TERMINATORS,     "42000", "S1009",
00074 ER_BLOBS_AND_NO_TERMINATED,     "42000", "S1009",
00075 ER_CANT_REMOVE_ALL_FIELDS,      "42000", "",
00076 ER_CANT_DROP_FIELD_OR_KEY,      "42000", "",
00077 ER_BLOB_CANT_HAVE_DEFAULT,      "42000", "",
00078 ER_WRONG_DB_NAME,               "42000", "",
00079 ER_WRONG_TABLE_NAME,            "42000", "",
00080 ER_TOO_BIG_SELECT,              "42000", "",
00081 ER_UNKNOWN_PROCEDURE,           "42000", "",
00082 ER_WRONG_PARAMCOUNT_TO_PROCEDURE, "42000", "",
00083 ER_UNKNOWN_TABLE,               "42S02", "",
00084 ER_FIELD_SPECIFIED_TWICE,       "42000", "",
00085 ER_UNSUPPORTED_EXTENSION,       "42000", "",
00086 ER_TABLE_MUST_HAVE_COLUMNS,     "42000", "",
00087 ER_UNKNOWN_CHARACTER_SET,       "42000", "",
00088 ER_TOO_BIG_ROWSIZE,             "42000", "",
00089 ER_WRONG_OUTER_JOIN,            "42000", "",
00090 ER_NULL_COLUMN_IN_INDEX,        "42000", "",
00091 ER_PASSWORD_ANONYMOUS_USER,     "42000", "",
00092 ER_PASSWORD_NOT_ALLOWED,        "42000", "",
00093 ER_PASSWORD_NO_MATCH,           "42000", "",
00094 ER_WRONG_VALUE_COUNT_ON_ROW,    "21S01", "",
00095 ER_INVALID_USE_OF_NULL,         "42000", "",
00096 ER_REGEXP_ERROR,                "42000", "",
00097 ER_MIX_OF_GROUP_FUNC_AND_FIELDS,"42000", "",
00098 ER_NONEXISTING_GRANT,           "42000", "",
00099 ER_TABLEACCESS_DENIED_ERROR,    "42000", "",
00100 ER_COLUMNACCESS_DENIED_ERROR,   "42000", "",
00101 ER_ILLEGAL_GRANT_FOR_TABLE,     "42000", "",
00102 ER_GRANT_WRONG_HOST_OR_USER,    "42000", "",
00103 ER_NO_SUCH_TABLE,               "42S02", "",
00104 ER_NONEXISTING_TABLE_GRANT,     "42000", "",
00105 ER_NOT_ALLOWED_COMMAND,         "42000", "",
00106 ER_SYNTAX_ERROR,                "42000", "",
00107 ER_ABORTING_CONNECTION,         "08S01", "",
00108 ER_NET_PACKET_TOO_LARGE,        "08S01", "",
00109 ER_NET_READ_ERROR_FROM_PIPE,    "08S01", "",
00110 ER_NET_FCNTL_ERROR,             "08S01", "",
00111 ER_NET_PACKETS_OUT_OF_ORDER,    "08S01", "",
00112 ER_NET_UNCOMPRESS_ERROR,        "08S01", "",
00113 ER_NET_READ_ERROR,              "08S01", "",
00114 ER_NET_READ_INTERRUPTED,        "08S01", "",
00115 ER_NET_ERROR_ON_WRITE,          "08S01", "",
00116 ER_NET_WRITE_INTERRUPTED,       "08S01", "",
00117 ER_TOO_LONG_STRING,             "42000", "",
00118 ER_TABLE_CANT_HANDLE_BLOB,      "42000", "",
00119 ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,    "42000", "",
00120 ER_WRONG_COLUMN_NAME,           "42000", "",
00121 ER_WRONG_KEY_COLUMN,            "42000", "",
00122 ER_DUP_UNIQUE,                  "23000", "",
00123 ER_BLOB_KEY_WITHOUT_LENGTH,     "42000", "",
00124 ER_PRIMARY_CANT_HAVE_NULL,      "42000", "",
00125 ER_TOO_MANY_ROWS,               "42000", "",
00126 ER_REQUIRES_PRIMARY_KEY,        "42000", "",
00127 ER_CHECK_NO_SUCH_TABLE,         "42000", "",
00128 ER_CHECK_NOT_IMPLEMENTED,       "42000", "",
00129 ER_CANT_DO_THIS_DURING_AN_TRANSACTION,  "25000", "",
00130 ER_NEW_ABORTING_CONNECTION,     "08S01", "",
00131 ER_MASTER_NET_READ,             "08S01", "",
00132 ER_MASTER_NET_WRITE,            "08S01", "",
00133 ER_TOO_MANY_USER_CONNECTIONS,   "42000", "",
00134 ER_READ_ONLY_TRANSACTION,       "25000", "",
00135 ER_NO_PERMISSION_TO_CREATE_USER,"42000", "",
00136 ER_LOCK_DEADLOCK,               "40001", "",
00137 ER_NO_REFERENCED_ROW,           "23000", "",
00138 ER_ROW_IS_REFERENCED,           "23000", "",
00139 ER_CONNECT_TO_MASTER,           "08S01", "",
00140 ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,"21000", "",
00141 ER_USER_LIMIT_REACHED,          "42000", "",
00142 ER_NO_DEFAULT,                  "42000", "",
00143 ER_WRONG_VALUE_FOR_VAR,         "42000", "",
00144 ER_WRONG_TYPE_FOR_VAR,          "42000", "",
00145 ER_CANT_USE_OPTION_HERE,        "42000", "",
00146 ER_NOT_SUPPORTED_YET,           "42000", "",
00147 ER_WRONG_FK_DEF,                "42000", "",
00148 ER_OPERAND_COLUMNS,             "21000", "",
00149 ER_SUBQUERY_NO_1_ROW,           "21000", "",
00150 ER_ILLEGAL_REFERENCE,           "42S22", "",
00151 ER_DERIVED_MUST_HAVE_ALIAS,     "42000", "",
00152 ER_SELECT_REDUCED,              "01000", "",
00153 ER_TABLENAME_NOT_ALLOWED_HERE,  "42000", "",
00154 ER_NOT_SUPPORTED_AUTH_MODE,     "08004", "",
00155 ER_SPATIAL_CANT_HAVE_NULL,      "42000", "",
00156 ER_COLLATION_CHARSET_MISMATCH,  "42000", "",
00157 ER_WARN_TOO_FEW_RECORDS,        "01000", "",
00158 ER_WARN_TOO_MANY_RECORDS,       "01000", "",
00159 ER_WARN_NULL_TO_NOTNULL,        "01000", "",
00160 ER_WARN_DATA_OUT_OF_RANGE,      "01000", "",
00161 ER_WARN_DATA_TRUNCATED,         "01000", "",
00162 ER_WRONG_NAME_FOR_INDEX,        "42000", "",
00163 ER_WRONG_NAME_FOR_CATALOG,      "42000", "",
00164 ER_UNKNOWN_STORAGE_ENGINE,      "42000", "",
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'