ruby-mysql 2.9.3 → 2.9.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ruby-mysql might be problematic. Click here for more details.

data/lib/mysql/error.rb CHANGED
@@ -1,516 +1,820 @@
1
- # Copyright (C) 2003-2008 TOMITA Masahiro
1
+ # Copyright (C) 2003-2010 TOMITA Masahiro
2
2
  # mailto:tommy@tmtm.org
3
3
 
4
4
  class Mysql
5
5
  class Error < StandardError
6
- end
7
-
8
- class ServerError < Error
9
6
  ERRNO = 0
10
- def initialize(message, sqlstate=nil)
7
+
8
+ def self.define_error_class(prefix_re)
9
+ self.constants.each do |errname|
10
+ errname = errname.to_s
11
+ next unless errname =~ prefix_re
12
+ errno = self.const_get errname
13
+ excname = errname.sub(prefix_re,'').gsub(/(\A.|_.)([A-Z]+)/){$1+$2.downcase}.gsub(/_/,'')
14
+ klass = Class.new self
15
+ klass.const_set 'ERRNO', errno
16
+ self.const_set excname, klass
17
+ self::ERROR_MAP[errno] = klass
18
+ Mysql::Error.const_set errname, errno
19
+ end
20
+ end
21
+
22
+ attr_reader :sqlstate, :error
23
+
24
+ def initialize(message, sqlstate='HY000')
11
25
  @sqlstate = sqlstate
12
26
  @error = message
13
27
  super message
14
28
  end
15
- attr_reader :sqlstate, :error
16
29
 
17
30
  def errno
18
31
  self.class::ERRNO
19
32
  end
33
+ end
20
34
 
35
+ # server side error
36
+ class ServerError < Error
21
37
  ERROR_MAP = {}
22
38
 
23
- ER_HASHCHK = 1000
24
- ER_NISAMCHK = 1001
25
- ER_NO = 1002
26
- ER_YES = 1003
27
- ER_CANT_CREATE_FILE = 1004
28
- ER_CANT_CREATE_TABLE = 1005
29
- ER_CANT_CREATE_DB = 1006
30
- ER_DB_CREATE_EXISTS = 1007
31
- ER_DB_DROP_EXISTS = 1008
32
- ER_DB_DROP_DELETE = 1009
33
- ER_DB_DROP_RMDIR = 1010
34
- ER_CANT_DELETE_FILE = 1011
35
- ER_CANT_FIND_SYSTEM_REC = 1012
36
- ER_CANT_GET_STAT = 1013
37
- ER_CANT_GET_WD = 1014
38
- ER_CANT_LOCK = 1015
39
- ER_CANT_OPEN_FILE = 1016
40
- ER_FILE_NOT_FOUND = 1017
41
- ER_CANT_READ_DIR = 1018
42
- ER_CANT_SET_WD = 1019
43
- ER_CHECKREAD = 1020
44
- ER_DISK_FULL = 1021
45
- ER_DUP_KEY = 1022
46
- ER_ERROR_ON_CLOSE = 1023
47
- ER_ERROR_ON_READ = 1024
48
- ER_ERROR_ON_RENAME = 1025
49
- ER_ERROR_ON_WRITE = 1026
50
- ER_FILE_USED = 1027
51
- ER_FILSORT_ABORT = 1028
52
- ER_FORM_NOT_FOUND = 1029
53
- ER_GET_ERRNO = 1030
54
- ER_ILLEGAL_HA = 1031
55
- ER_KEY_NOT_FOUND = 1032
56
- ER_NOT_FORM_FILE = 1033
57
- ER_NOT_KEYFILE = 1034
58
- ER_OLD_KEYFILE = 1035
59
- ER_OPEN_AS_READONLY = 1036
60
- ER_OUTOFMEMORY = 1037
61
- ER_OUT_OF_SORTMEMORY = 1038
62
- ER_UNEXPECTED_EOF = 1039
63
- ER_CON_COUNT_ERROR = 1040
64
- ER_OUT_OF_RESOURCES = 1041
65
- ER_BAD_HOST_ERROR = 1042
66
- ER_HANDSHAKE_ERROR = 1043
67
- ER_DBACCESS_DENIED_ERROR = 1044
68
- ER_ACCESS_DENIED_ERROR = 1045
69
- ER_NO_DB_ERROR = 1046
70
- ER_UNKNOWN_COM_ERROR = 1047
71
- ER_BAD_NULL_ERROR = 1048
72
- ER_BAD_DB_ERROR = 1049
73
- ER_TABLE_EXISTS_ERROR = 1050
74
- ER_BAD_TABLE_ERROR = 1051
75
- ER_NON_UNIQ_ERROR = 1052
76
- ER_SERVER_SHUTDOWN = 1053
77
- ER_BAD_FIELD_ERROR = 1054
78
- ER_WRONG_FIELD_WITH_GROUP = 1055
79
- ER_WRONG_GROUP_FIELD = 1056
80
- ER_WRONG_SUM_SELECT = 1057
81
- ER_WRONG_VALUE_COUNT = 1058
82
- ER_TOO_LONG_IDENT = 1059
83
- ER_DUP_FIELDNAME = 1060
84
- ER_DUP_KEYNAME = 1061
85
- ER_DUP_ENTRY = 1062
86
- ER_WRONG_FIELD_SPEC = 1063
87
- ER_PARSE_ERROR = 1064
88
- ER_EMPTY_QUERY = 1065
89
- ER_NONUNIQ_TABLE = 1066
90
- ER_INVALID_DEFAULT = 1067
91
- ER_MULTIPLE_PRI_KEY = 1068
92
- ER_TOO_MANY_KEYS = 1069
93
- ER_TOO_MANY_KEY_PARTS = 1070
94
- ER_TOO_LONG_KEY = 1071
95
- ER_KEY_COLUMN_DOES_NOT_EXITS = 1072
96
- ER_BLOB_USED_AS_KEY = 1073
97
- ER_TOO_BIG_FIELDLENGTH = 1074
98
- ER_WRONG_AUTO_KEY = 1075
99
- ER_READY = 1076
100
- ER_NORMAL_SHUTDOWN = 1077
101
- ER_GOT_SIGNAL = 1078
102
- ER_SHUTDOWN_COMPLETE = 1079
103
- ER_FORCING_CLOSE = 1080
104
- ER_IPSOCK_ERROR = 1081
105
- ER_NO_SUCH_INDEX = 1082
106
- ER_WRONG_FIELD_TERMINATORS = 1083
107
- ER_BLOBS_AND_NO_TERMINATED = 1084
108
- ER_TEXTFILE_NOT_READABLE = 1085
109
- ER_FILE_EXISTS_ERROR = 1086
110
- ER_LOAD_INFO = 1087
111
- ER_ALTER_INFO = 1088
112
- ER_WRONG_SUB_KEY = 1089
113
- ER_CANT_REMOVE_ALL_FIELDS = 1090
114
- ER_CANT_DROP_FIELD_OR_KEY = 1091
115
- ER_INSERT_INFO = 1092
116
- ER_UPDATE_TABLE_USED = 1093
117
- ER_NO_SUCH_THREAD = 1094
118
- ER_KILL_DENIED_ERROR = 1095
119
- ER_NO_TABLES_USED = 1096
120
- ER_TOO_BIG_SET = 1097
121
- ER_NO_UNIQUE_LOGFILE = 1098
122
- ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099
123
- ER_TABLE_NOT_LOCKED = 1100
124
- ER_BLOB_CANT_HAVE_DEFAULT = 1101
125
- ER_WRONG_DB_NAME = 1102
126
- ER_WRONG_TABLE_NAME = 1103
127
- ER_TOO_BIG_SELECT = 1104
128
- ER_UNKNOWN_ERROR = 1105
129
- ER_UNKNOWN_PROCEDURE = 1106
130
- ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107
131
- ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108
132
- ER_UNKNOWN_TABLE = 1109
133
- ER_FIELD_SPECIFIED_TWICE = 1110
134
- ER_INVALID_GROUP_FUNC_USE = 1111
135
- ER_UNSUPPORTED_EXTENSION = 1112
136
- ER_TABLE_MUST_HAVE_COLUMNS = 1113
137
- ER_RECORD_FILE_FULL = 1114
138
- ER_UNKNOWN_CHARACTER_SET = 1115
139
- ER_TOO_MANY_TABLES = 1116
140
- ER_TOO_MANY_FIELDS = 1117
141
- ER_TOO_BIG_ROWSIZE = 1118
142
- ER_STACK_OVERRUN = 1119
143
- ER_WRONG_OUTER_JOIN = 1120
144
- ER_NULL_COLUMN_IN_INDEX = 1121
145
- ER_CANT_FIND_UDF = 1122
146
- ER_CANT_INITIALIZE_UDF = 1123
147
- ER_UDF_NO_PATHS = 1124
148
- ER_UDF_EXISTS = 1125
149
- ER_CANT_OPEN_LIBRARY = 1126
150
- ER_CANT_FIND_DL_ENTRY = 1127
151
- ER_FUNCTION_NOT_DEFINED = 1128
152
- ER_HOST_IS_BLOCKED = 1129
153
- ER_HOST_NOT_PRIVILEGED = 1130
154
- ER_PASSWORD_ANONYMOUS_USER = 1131
155
- ER_PASSWORD_NOT_ALLOWED = 1132
156
- ER_PASSWORD_NO_MATCH = 1133
157
- ER_UPDATE_INFO = 1134
158
- ER_CANT_CREATE_THREAD = 1135
159
- ER_WRONG_VALUE_COUNT_ON_ROW = 1136
160
- ER_CANT_REOPEN_TABLE = 1137
161
- ER_INVALID_USE_OF_NULL = 1138
162
- ER_REGEXP_ERROR = 1139
163
- ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140
164
- ER_NONEXISTING_GRANT = 1141
165
- ER_TABLEACCESS_DENIED_ERROR = 1142
166
- ER_COLUMNACCESS_DENIED_ERROR = 1143
167
- ER_ILLEGAL_GRANT_FOR_TABLE = 1144
168
- ER_GRANT_WRONG_HOST_OR_USER = 1145
169
- ER_NO_SUCH_TABLE = 1146
170
- ER_NONEXISTING_TABLE_GRANT = 1147
171
- ER_NOT_ALLOWED_COMMAND = 1148
172
- ER_SYNTAX_ERROR = 1149
173
- ER_DELAYED_CANT_CHANGE_LOCK = 1150
174
- ER_TOO_MANY_DELAYED_THREADS = 1151
175
- ER_ABORTING_CONNECTION = 1152
176
- ER_NET_PACKET_TOO_LARGE = 1153
177
- ER_NET_READ_ERROR_FROM_PIPE = 1154
178
- ER_NET_FCNTL_ERROR = 1155
179
- ER_NET_PACKETS_OUT_OF_ORDER = 1156
180
- ER_NET_UNCOMPRESS_ERROR = 1157
181
- ER_NET_READ_ERROR = 1158
182
- ER_NET_READ_INTERRUPTED = 1159
183
- ER_NET_ERROR_ON_WRITE = 1160
184
- ER_NET_WRITE_INTERRUPTED = 1161
185
- ER_TOO_LONG_STRING = 1162
186
- ER_TABLE_CANT_HANDLE_BLOB = 1163
187
- ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164
188
- ER_DELAYED_INSERT_TABLE_LOCKED = 1165
189
- ER_WRONG_COLUMN_NAME = 1166
190
- ER_WRONG_KEY_COLUMN = 1167
191
- ER_WRONG_MRG_TABLE = 1168
192
- ER_DUP_UNIQUE = 1169
193
- ER_BLOB_KEY_WITHOUT_LENGTH = 1170
194
- ER_PRIMARY_CANT_HAVE_NULL = 1171
195
- ER_TOO_MANY_ROWS = 1172
196
- ER_REQUIRES_PRIMARY_KEY = 1173
197
- ER_NO_RAID_COMPILED = 1174
198
- ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175
199
- ER_KEY_DOES_NOT_EXITS = 1176
200
- ER_CHECK_NO_SUCH_TABLE = 1177
201
- ER_CHECK_NOT_IMPLEMENTED = 1178
202
- ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179
203
- ER_ERROR_DURING_COMMIT = 1180
204
- ER_ERROR_DURING_ROLLBACK = 1181
205
- ER_ERROR_DURING_FLUSH_LOGS = 1182
206
- ER_ERROR_DURING_CHECKPOINT = 1183
207
- ER_NEW_ABORTING_CONNECTION = 1184
208
- ER_DUMP_NOT_IMPLEMENTED = 1185
209
- ER_FLUSH_MASTER_BINLOG_CLOSED = 1186
210
- ER_INDEX_REBUILD = 1187
211
- ER_MASTER = 1188
212
- ER_MASTER_NET_READ = 1189
213
- ER_MASTER_NET_WRITE = 1190
214
- ER_FT_MATCHING_KEY_NOT_FOUND = 1191
215
- ER_LOCK_OR_ACTIVE_TRANSACTION = 1192
216
- ER_UNKNOWN_SYSTEM_VARIABLE = 1193
217
- ER_CRASHED_ON_USAGE = 1194
218
- ER_CRASHED_ON_REPAIR = 1195
219
- ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196
220
- ER_TRANS_CACHE_FULL = 1197
221
- ER_SLAVE_MUST_STOP = 1198
222
- ER_SLAVE_NOT_RUNNING = 1199
223
- ER_BAD_SLAVE = 1200
224
- ER_MASTER_INFO = 1201
225
- ER_SLAVE_THREAD = 1202
226
- ER_TOO_MANY_USER_CONNECTIONS = 1203
227
- ER_SET_CONSTANTS_ONLY = 1204
228
- ER_LOCK_WAIT_TIMEOUT = 1205
229
- ER_LOCK_TABLE_FULL = 1206
230
- ER_READ_ONLY_TRANSACTION = 1207
231
- ER_DROP_DB_WITH_READ_LOCK = 1208
232
- ER_CREATE_DB_WITH_READ_LOCK = 1209
233
- ER_WRONG_ARGUMENTS = 1210
234
- ER_NO_PERMISSION_TO_CREATE_USER = 1211
235
- ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212
236
- ER_LOCK_DEADLOCK = 1213
237
- ER_TABLE_CANT_HANDLE_FT = 1214
238
- ER_CANNOT_ADD_FOREIGN = 1215
239
- ER_NO_REFERENCED_ROW = 1216
240
- ER_ROW_IS_REFERENCED = 1217
241
- ER_CONNECT_TO_MASTER = 1218
242
- ER_QUERY_ON_MASTER = 1219
243
- ER_ERROR_WHEN_EXECUTING_COMMAND = 1220
244
- ER_WRONG_USAGE = 1221
245
- ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222
246
- ER_CANT_UPDATE_WITH_READLOCK = 1223
247
- ER_MIXING_NOT_ALLOWED = 1224
248
- ER_DUP_ARGUMENT = 1225
249
- ER_USER_LIMIT_REACHED = 1226
250
- ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227
251
- ER_LOCAL_VARIABLE = 1228
252
- ER_GLOBAL_VARIABLE = 1229
253
- ER_NO_DEFAULT = 1230
254
- ER_WRONG_VALUE_FOR_VAR = 1231
255
- ER_WRONG_TYPE_FOR_VAR = 1232
256
- ER_VAR_CANT_BE_READ = 1233
257
- ER_CANT_USE_OPTION_HERE = 1234
258
- ER_NOT_SUPPORTED_YET = 1235
259
- ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236
260
- ER_SLAVE_IGNORED_TABLE = 1237
261
- ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238
262
- ER_WRONG_FK_DEF = 1239
263
- ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240
264
- ER_OPERAND_COLUMNS = 1241
265
- ER_SUBQUERY_NO_1_ROW = 1242
266
- ER_UNKNOWN_STMT_HANDLER = 1243
267
- ER_CORRUPT_HELP_DB = 1244
268
- ER_CYCLIC_REFERENCE = 1245
269
- ER_AUTO_CONVERT = 1246
270
- ER_ILLEGAL_REFERENCE = 1247
271
- ER_DERIVED_MUST_HAVE_ALIAS = 1248
272
- ER_SELECT_REDUCED = 1249
273
- ER_TABLENAME_NOT_ALLOWED_HERE = 1250
274
- ER_NOT_SUPPORTED_AUTH_MODE = 1251
275
- ER_SPATIAL_CANT_HAVE_NULL = 1252
276
- ER_COLLATION_CHARSET_MISMATCH = 1253
277
- ER_SLAVE_WAS_RUNNING = 1254
278
- ER_SLAVE_WAS_NOT_RUNNING = 1255
279
- ER_TOO_BIG_FOR_UNCOMPRESS = 1256
280
- ER_ZLIB_Z_MEM_ERROR = 1257
281
- ER_ZLIB_Z_BUF_ERROR = 1258
282
- ER_ZLIB_Z_DATA_ERROR = 1259
283
- ER_CUT_VALUE_GROUP_CONCAT = 1260
284
- ER_WARN_TOO_FEW_RECORDS = 1261
285
- ER_WARN_TOO_MANY_RECORDS = 1262
286
- ER_WARN_NULL_TO_NOTNULL = 1263
287
- ER_WARN_DATA_OUT_OF_RANGE = 1264
288
- WARN_DATA_TRUNCATED = 1265
289
- ER_WARN_USING_OTHER_HANDLER = 1266
290
- ER_CANT_AGGREGATE_2COLLATIONS = 1267
291
- ER_DROP_USER = 1268
292
- ER_REVOKE_GRANTS = 1269
293
- ER_CANT_AGGREGATE_3COLLATIONS = 1270
294
- ER_CANT_AGGREGATE_NCOLLATIONS = 1271
295
- ER_VARIABLE_IS_NOT_STRUCT = 1272
296
- ER_UNKNOWN_COLLATION = 1273
297
- ER_SLAVE_IGNORED_SSL_PARAMS = 1274
298
- ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275
299
- ER_WARN_FIELD_RESOLVED = 1276
300
- ER_BAD_SLAVE_UNTIL_COND = 1277
301
- ER_MISSING_SKIP_SLAVE = 1278
302
- ER_UNTIL_COND_IGNORED = 1279
303
- ER_WRONG_NAME_FOR_INDEX = 1280
304
- ER_WRONG_NAME_FOR_CATALOG = 1281
305
- ER_WARN_QC_RESIZE = 1282
306
- ER_BAD_FT_COLUMN = 1283
307
- ER_UNKNOWN_KEY_CACHE = 1284
308
- ER_WARN_HOSTNAME_WONT_WORK = 1285
309
- ER_UNKNOWN_STORAGE_ENGINE = 1286
310
- ER_WARN_DEPRECATED_SYNTAX = 1287
311
- ER_NON_UPDATABLE_TABLE = 1288
312
- ER_FEATURE_DISABLED = 1289
313
- ER_OPTION_PREVENTS_STATEMENT = 1290
314
- ER_DUPLICATED_VALUE_IN_TYPE = 1291
315
- ER_TRUNCATED_WRONG_VALUE = 1292
316
- ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293
317
- ER_INVALID_ON_UPDATE = 1294
318
- ER_UNSUPPORTED_PS = 1295
319
- ER_GET_ERRMSG = 1296
320
- ER_GET_TEMPORARY_ERRMSG = 1297
321
- ER_UNKNOWN_TIME_ZONE = 1298
322
- ER_WARN_INVALID_TIMESTAMP = 1299
323
- ER_INVALID_CHARACTER_STRING = 1300
324
- ER_WARN_ALLOWED_PACKET_OVERFLOWED = 1301
325
- ER_CONFLICTING_DECLARATIONS = 1302
326
- ER_SP_NO_RECURSIVE_CREATE = 1303
327
- ER_SP_ALREADY_EXISTS = 1304
328
- ER_SP_DOES_NOT_EXIST = 1305
329
- ER_SP_DROP_FAILED = 1306
330
- ER_SP_STORE_FAILED = 1307
331
- ER_SP_LILABEL_MISMATCH = 1308
332
- ER_SP_LABEL_REDEFINE = 1309
333
- ER_SP_LABEL_MISMATCH = 1310
334
- ER_SP_UNINIT_VAR = 1311
335
- ER_SP_BADSELECT = 1312
336
- ER_SP_BADRETURN = 1313
337
- ER_SP_BADSTATEMENT = 1314
338
- ER_UPDATE_LOG_DEPRECATED_IGNORED = 1315
339
- ER_UPDATE_LOG_DEPRECATED_TRANSLATED = 1316
340
- ER_QUERY_INTERRUPTED = 1317
341
- ER_SP_WRONG_NO_OF_ARGS = 1318
342
- ER_SP_COND_MISMATCH = 1319
343
- ER_SP_NORETURN = 1320
344
- ER_SP_NORETURNEND = 1321
345
- ER_SP_BAD_CURSOR_QUERY = 1322
346
- ER_SP_BAD_CURSOR_SELECT = 1323
347
- ER_SP_CURSOR_MISMATCH = 1324
348
- ER_SP_CURSOR_ALREADY_OPEN = 1325
349
- ER_SP_CURSOR_NOT_OPEN = 1326
350
- ER_SP_UNDECLARED_VAR = 1327
351
- ER_SP_WRONG_NO_OF_FETCH_ARGS = 1328
352
- ER_SP_FETCH_NO_DATA = 1329
353
- ER_SP_DUP_PARAM = 1330
354
- ER_SP_DUP_VAR = 1331
355
- ER_SP_DUP_COND = 1332
356
- ER_SP_DUP_CURS = 1333
357
- ER_SP_CANT_ALTER = 1334
358
- ER_SP_SUBSELECT_NYI = 1335
359
- ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG = 1336
360
- ER_SP_VARCOND_AFTER_CURSHNDLR = 1337
361
- ER_SP_CURSOR_AFTER_HANDLER = 1338
362
- ER_SP_CASE_NOT_FOUND = 1339
363
- ER_FPARSER_TOO_BIG_FILE = 1340
364
- ER_FPARSER_BAD_HEADER = 1341
365
- ER_FPARSER_EOF_IN_COMMENT = 1342
366
- ER_FPARSER_ERROR_IN_PARAMETER = 1343
367
- ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER = 1344
368
- ER_VIEW_NO_EXPLAIN = 1345
369
- ER_FRM_UNKNOWN_TYPE = 1346
370
- ER_WRONG_OBJECT = 1347
371
- ER_NONUPDATEABLE_COLUMN = 1348
372
- ER_VIEW_SELECT_DERIVED = 1349
373
- ER_VIEW_SELECT_CLAUSE = 1350
374
- ER_VIEW_SELECT_VARIABLE = 1351
375
- ER_VIEW_SELECT_TMPTABLE = 1352
376
- ER_VIEW_WRONG_LIST = 1353
377
- ER_WARN_VIEW_MERGE = 1354
378
- ER_WARN_VIEW_WITHOUT_KEY = 1355
379
- ER_VIEW_INVALID = 1356
380
- ER_SP_NO_DROP_SP = 1357
381
- ER_SP_GOTO_IN_HNDLR = 1358
382
- ER_TRG_ALREADY_EXISTS = 1359
383
- ER_TRG_DOES_NOT_EXIST = 1360
384
- ER_TRG_ON_VIEW_OR_TEMP_TABLE = 1361
385
- ER_TRG_CANT_CHANGE_ROW = 1362
386
- ER_TRG_NO_SUCH_ROW_IN_TRG = 1363
387
- ER_NO_DEFAULT_FOR_FIELD = 1364
388
- ER_DIVISION_BY_ZERO = 1365
389
- ER_TRUNCATED_WRONG_VALUE_FOR_FIELD = 1366
390
- ER_ILLEGAL_VALUE_FOR_TYPE = 1367
391
- ER_VIEW_NONUPD_CHECK = 1368
392
- ER_VIEW_CHECK_FAILED = 1369
393
- ER_PROCACCESS_DENIED_ERROR = 1370
394
- ER_RELAY_LOG_FAIL = 1371
395
- ER_PASSWD_LENGTH = 1372
396
- ER_UNKNOWN_TARGET_BINLOG = 1373
397
- ER_IO_ERR_LOG_INDEX_READ = 1374
398
- ER_BINLOG_PURGE_PROHIBITED = 1375
399
- ER_FSEEK_FAIL = 1376
400
- ER_BINLOG_PURGE_FATAL_ERR = 1377
401
- ER_LOG_IN_USE = 1378
402
- ER_LOG_PURGE_UNKNOWN_ERR = 1379
403
- ER_RELAY_LOG_INIT = 1380
404
- ER_NO_BINARY_LOGGING = 1381
405
- ER_RESERVED_SYNTAX = 1382
406
- ER_WSAS_FAILED = 1383
407
- ER_DIFF_GROUPS_PROC = 1384
408
- ER_NO_GROUP_FOR_PROC = 1385
409
- ER_ORDER_WITH_PROC = 1386
410
- ER_LOGGING_PROHIBIT_CHANGING_OF = 1387
411
- ER_NO_FILE_MAPPING = 1388
412
- ER_WRONG_MAGIC = 1389
413
- ER_PS_MANY_PARAM = 1390
414
- ER_KEY_PART_0 = 1391
415
- ER_VIEW_CHECKSUM = 1392
416
- ER_VIEW_MULTIUPDATE = 1393
417
- ER_VIEW_NO_INSERT_FIELD_LIST = 1394
418
- ER_VIEW_DELETE_MERGE_VIEW = 1395
419
- ER_CANNOT_USER = 1396
420
- ER_XAER_NOTA = 1397
421
- ER_XAER_INVAL = 1398
422
- ER_XAER_RMFAIL = 1399
423
- ER_XAER_OUTSIDE = 1400
424
- ER_XAER_RMERR = 1401
425
- ER_XA_RBROLLBACK = 1402
426
- ER_NONEXISTING_PROC_GRANT = 1403
427
- ER_PROC_AUTO_GRANT_FAIL = 1404
428
- ER_PROC_AUTO_REVOKE_FAIL = 1405
429
- ER_DATA_TOO_LONG = 1406
430
- ER_SP_BAD_SQLSTATE = 1407
431
- ER_STARTUP = 1408
432
- ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR = 1409
433
- ER_CANT_CREATE_USER_WITH_GRANT = 1410
434
- ER_WRONG_VALUE_FOR_TYPE = 1411
435
- ER_TABLE_DEF_CHANGED = 1412
436
- ER_SP_DUP_HANDLER = 1413
437
- ER_SP_NOT_VAR_ARG = 1414
438
- ER_SP_NO_RETSET = 1415
439
- ER_CANT_CREATE_GEOMETRY_OBJECT = 1416
440
- ER_FAILED_ROUTINE_BREAK_BINLOG = 1417
441
- ER_BINLOG_UNSAFE_ROUTINE = 1418
442
- ER_BINLOG_CREATE_ROUTINE_NEED_SUPER = 1419
443
- ER_EXEC_STMT_WITH_OPEN_CURSOR = 1420
444
- ER_STMT_HAS_NO_OPEN_CURSOR = 1421
445
- ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG = 1422
446
- ER_NO_DEFAULT_FOR_VIEW_FIELD = 1423
447
- ER_SP_NO_RECURSION = 1424
448
- ER_TOO_BIG_SCALE = 1425
449
- ER_TOO_BIG_PRECISION = 1426
450
- ER_M_BIGGER_THAN_D = 1427
451
- ER_WRONG_LOCK_OF_SYSTEM_TABLE = 1428
452
- ER_CONNECT_TO_FOREIGN_DATA_SOURCE = 1429
453
- ER_QUERY_ON_FOREIGN_DATA_SOURCE = 1430
454
- ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST = 1431
455
- ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE = 1432
456
- ER_FOREIGN_DATA_STRING_INVALID = 1433
457
- ER_CANT_CREATE_FEDERATED_TABLE = 1434
458
- ER_TRG_IN_WRONG_SCHEMA = 1435
459
- ER_STACK_OVERRUN_NEED_MORE = 1436
460
- ER_TOO_LONG_BODY = 1437
461
- ER_WARN_CANT_DROP_DEFAULT_KEYCACHE = 1438
462
- ER_TOO_BIG_DISPLAYWIDTH = 1439
463
- ER_XAER_DUPID = 1440
464
- ER_DATETIME_FUNCTION_OVERFLOW = 1441
465
- ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG = 1442
466
- ER_VIEW_PREVENT_UPDATE = 1443
467
- ER_PS_NO_RECURSION = 1444
468
- ER_SP_CANT_SET_AUTOCOMMIT = 1445
469
- ER_MALFORMED_DEFINER = 1446
470
- ER_VIEW_FRM_NO_USER = 1447
471
- ER_VIEW_OTHER_USER = 1448
472
- ER_NO_SUCH_USER = 1449
473
- ER_FORBID_SCHEMA_CHANGE = 1450
474
- ER_ROW_IS_REFERENCED_2 = 1451
475
- ER_NO_REFERENCED_ROW_2 = 1452
476
- ER_SP_BAD_VAR_SHADOW = 1453
477
- ER_TRG_NO_DEFINER = 1454
478
- ER_OLD_FILE_FORMAT = 1455
479
- ER_SP_RECURSION_LIMIT = 1456
480
- ER_SP_PROC_TABLE_CORRUPT = 1457
481
- ER_SP_WRONG_NAME = 1458
482
- ER_TABLE_NEEDS_UPGRADE = 1459
483
- ER_SP_NO_AGGREGATE = 1460
484
- ER_MAX_PREPARED_STMT_COUNT_REACHED = 1461
485
- ER_VIEW_RECURSIVE = 1462
486
- ER_NON_GROUPING_FIELD_USED = 1463
487
- ER_TABLE_CANT_HANDLE_SPKEYS = 1464
488
- ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA = 1465
489
- ER_REMOVED_SPACES = 1466
490
- ER_AUTOINC_READ_FAILED = 1467
491
- ER_USERNAME = 1468
492
- ER_HOSTNAME = 1469
493
- ER_WRONG_STRING_LENGTH = 1470
494
- ER_NON_INSERTABLE_TABLE = 1471
39
+ ER_HASHCHK = 1000
40
+ ER_NISAMCHK = 1001
41
+ ER_NO = 1002
42
+ ER_YES = 1003
43
+ ER_CANT_CREATE_FILE = 1004
44
+ ER_CANT_CREATE_TABLE = 1005
45
+ ER_CANT_CREATE_DB = 1006
46
+ ER_DB_CREATE_EXISTS = 1007
47
+ ER_DB_DROP_EXISTS = 1008
48
+ ER_DB_DROP_DELETE = 1009
49
+ ER_DB_DROP_RMDIR = 1010
50
+ ER_CANT_DELETE_FILE = 1011
51
+ ER_CANT_FIND_SYSTEM_REC = 1012
52
+ ER_CANT_GET_STAT = 1013
53
+ ER_CANT_GET_WD = 1014
54
+ ER_CANT_LOCK = 1015
55
+ ER_CANT_OPEN_FILE = 1016
56
+ ER_FILE_NOT_FOUND = 1017
57
+ ER_CANT_READ_DIR = 1018
58
+ ER_CANT_SET_WD = 1019
59
+ ER_CHECKREAD = 1020
60
+ ER_DISK_FULL = 1021
61
+ ER_DUP_KEY = 1022
62
+ ER_ERROR_ON_CLOSE = 1023
63
+ ER_ERROR_ON_READ = 1024
64
+ ER_ERROR_ON_RENAME = 1025
65
+ ER_ERROR_ON_WRITE = 1026
66
+ ER_FILE_USED = 1027
67
+ ER_FILSORT_ABORT = 1028
68
+ ER_FORM_NOT_FOUND = 1029
69
+ ER_GET_ERRNO = 1030
70
+ ER_ILLEGAL_HA = 1031
71
+ ER_KEY_NOT_FOUND = 1032
72
+ ER_NOT_FORM_FILE = 1033
73
+ ER_NOT_KEYFILE = 1034
74
+ ER_OLD_KEYFILE = 1035
75
+ ER_OPEN_AS_READONLY = 1036
76
+ ER_OUTOFMEMORY = 1037
77
+ ER_OUT_OF_SORTMEMORY = 1038
78
+ ER_UNEXPECTED_EOF = 1039
79
+ ER_CON_COUNT_ERROR = 1040
80
+ ER_OUT_OF_RESOURCES = 1041
81
+ ER_BAD_HOST_ERROR = 1042
82
+ ER_HANDSHAKE_ERROR = 1043
83
+ ER_DBACCESS_DENIED_ERROR = 1044
84
+ ER_ACCESS_DENIED_ERROR = 1045
85
+ ER_NO_DB_ERROR = 1046
86
+ ER_UNKNOWN_COM_ERROR = 1047
87
+ ER_BAD_NULL_ERROR = 1048
88
+ ER_BAD_DB_ERROR = 1049
89
+ ER_TABLE_EXISTS_ERROR = 1050
90
+ ER_BAD_TABLE_ERROR = 1051
91
+ ER_NON_UNIQ_ERROR = 1052
92
+ ER_SERVER_SHUTDOWN = 1053
93
+ ER_BAD_FIELD_ERROR = 1054
94
+ ER_WRONG_FIELD_WITH_GROUP = 1055
95
+ ER_WRONG_GROUP_FIELD = 1056
96
+ ER_WRONG_SUM_SELECT = 1057
97
+ ER_WRONG_VALUE_COUNT = 1058
98
+ ER_TOO_LONG_IDENT = 1059
99
+ ER_DUP_FIELDNAME = 1060
100
+ ER_DUP_KEYNAME = 1061
101
+ ER_DUP_ENTRY = 1062
102
+ ER_WRONG_FIELD_SPEC = 1063
103
+ ER_PARSE_ERROR = 1064
104
+ ER_EMPTY_QUERY = 1065
105
+ ER_NONUNIQ_TABLE = 1066
106
+ ER_INVALID_DEFAULT = 1067
107
+ ER_MULTIPLE_PRI_KEY = 1068
108
+ ER_TOO_MANY_KEYS = 1069
109
+ ER_TOO_MANY_KEY_PARTS = 1070
110
+ ER_TOO_LONG_KEY = 1071
111
+ ER_KEY_COLUMN_DOES_NOT_EXITS = 1072
112
+ ER_BLOB_USED_AS_KEY = 1073
113
+ ER_TOO_BIG_FIELDLENGTH = 1074
114
+ ER_WRONG_AUTO_KEY = 1075
115
+ ER_READY = 1076
116
+ ER_NORMAL_SHUTDOWN = 1077
117
+ ER_GOT_SIGNAL = 1078
118
+ ER_SHUTDOWN_COMPLETE = 1079
119
+ ER_FORCING_CLOSE = 1080
120
+ ER_IPSOCK_ERROR = 1081
121
+ ER_NO_SUCH_INDEX = 1082
122
+ ER_WRONG_FIELD_TERMINATORS = 1083
123
+ ER_BLOBS_AND_NO_TERMINATED = 1084
124
+ ER_TEXTFILE_NOT_READABLE = 1085
125
+ ER_FILE_EXISTS_ERROR = 1086
126
+ ER_LOAD_INFO = 1087
127
+ ER_ALTER_INFO = 1088
128
+ ER_WRONG_SUB_KEY = 1089
129
+ ER_CANT_REMOVE_ALL_FIELDS = 1090
130
+ ER_CANT_DROP_FIELD_OR_KEY = 1091
131
+ ER_INSERT_INFO = 1092
132
+ ER_UPDATE_TABLE_USED = 1093
133
+ ER_NO_SUCH_THREAD = 1094
134
+ ER_KILL_DENIED_ERROR = 1095
135
+ ER_NO_TABLES_USED = 1096
136
+ ER_TOO_BIG_SET = 1097
137
+ ER_NO_UNIQUE_LOGFILE = 1098
138
+ ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099
139
+ ER_TABLE_NOT_LOCKED = 1100
140
+ ER_BLOB_CANT_HAVE_DEFAULT = 1101
141
+ ER_WRONG_DB_NAME = 1102
142
+ ER_WRONG_TABLE_NAME = 1103
143
+ ER_TOO_BIG_SELECT = 1104
144
+ ER_UNKNOWN_ERROR = 1105
145
+ ER_UNKNOWN_PROCEDURE = 1106
146
+ ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107
147
+ ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108
148
+ ER_UNKNOWN_TABLE = 1109
149
+ ER_FIELD_SPECIFIED_TWICE = 1110
150
+ ER_INVALID_GROUP_FUNC_USE = 1111
151
+ ER_UNSUPPORTED_EXTENSION = 1112
152
+ ER_TABLE_MUST_HAVE_COLUMNS = 1113
153
+ ER_RECORD_FILE_FULL = 1114
154
+ ER_UNKNOWN_CHARACTER_SET = 1115
155
+ ER_TOO_MANY_TABLES = 1116
156
+ ER_TOO_MANY_FIELDS = 1117
157
+ ER_TOO_BIG_ROWSIZE = 1118
158
+ ER_STACK_OVERRUN = 1119
159
+ ER_WRONG_OUTER_JOIN = 1120
160
+ ER_NULL_COLUMN_IN_INDEX = 1121
161
+ ER_CANT_FIND_UDF = 1122
162
+ ER_CANT_INITIALIZE_UDF = 1123
163
+ ER_UDF_NO_PATHS = 1124
164
+ ER_UDF_EXISTS = 1125
165
+ ER_CANT_OPEN_LIBRARY = 1126
166
+ ER_CANT_FIND_DL_ENTRY = 1127
167
+ ER_FUNCTION_NOT_DEFINED = 1128
168
+ ER_HOST_IS_BLOCKED = 1129
169
+ ER_HOST_NOT_PRIVILEGED = 1130
170
+ ER_PASSWORD_ANONYMOUS_USER = 1131
171
+ ER_PASSWORD_NOT_ALLOWED = 1132
172
+ ER_PASSWORD_NO_MATCH = 1133
173
+ ER_UPDATE_INFO = 1134
174
+ ER_CANT_CREATE_THREAD = 1135
175
+ ER_WRONG_VALUE_COUNT_ON_ROW = 1136
176
+ ER_CANT_REOPEN_TABLE = 1137
177
+ ER_INVALID_USE_OF_NULL = 1138
178
+ ER_REGEXP_ERROR = 1139
179
+ ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140
180
+ ER_NONEXISTING_GRANT = 1141
181
+ ER_TABLEACCESS_DENIED_ERROR = 1142
182
+ ER_COLUMNACCESS_DENIED_ERROR = 1143
183
+ ER_ILLEGAL_GRANT_FOR_TABLE = 1144
184
+ ER_GRANT_WRONG_HOST_OR_USER = 1145
185
+ ER_NO_SUCH_TABLE = 1146
186
+ ER_NONEXISTING_TABLE_GRANT = 1147
187
+ ER_NOT_ALLOWED_COMMAND = 1148
188
+ ER_SYNTAX_ERROR = 1149
189
+ ER_DELAYED_CANT_CHANGE_LOCK = 1150
190
+ ER_TOO_MANY_DELAYED_THREADS = 1151
191
+ ER_ABORTING_CONNECTION = 1152
192
+ ER_NET_PACKET_TOO_LARGE = 1153
193
+ ER_NET_READ_ERROR_FROM_PIPE = 1154
194
+ ER_NET_FCNTL_ERROR = 1155
195
+ ER_NET_PACKETS_OUT_OF_ORDER = 1156
196
+ ER_NET_UNCOMPRESS_ERROR = 1157
197
+ ER_NET_READ_ERROR = 1158
198
+ ER_NET_READ_INTERRUPTED = 1159
199
+ ER_NET_ERROR_ON_WRITE = 1160
200
+ ER_NET_WRITE_INTERRUPTED = 1161
201
+ ER_TOO_LONG_STRING = 1162
202
+ ER_TABLE_CANT_HANDLE_BLOB = 1163
203
+ ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164
204
+ ER_DELAYED_INSERT_TABLE_LOCKED = 1165
205
+ ER_WRONG_COLUMN_NAME = 1166
206
+ ER_WRONG_KEY_COLUMN = 1167
207
+ ER_WRONG_MRG_TABLE = 1168
208
+ ER_DUP_UNIQUE = 1169
209
+ ER_BLOB_KEY_WITHOUT_LENGTH = 1170
210
+ ER_PRIMARY_CANT_HAVE_NULL = 1171
211
+ ER_TOO_MANY_ROWS = 1172
212
+ ER_REQUIRES_PRIMARY_KEY = 1173
213
+ ER_NO_RAID_COMPILED = 1174
214
+ ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175
215
+ ER_KEY_DOES_NOT_EXITS = 1176
216
+ ER_CHECK_NO_SUCH_TABLE = 1177
217
+ ER_CHECK_NOT_IMPLEMENTED = 1178
218
+ ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179
219
+ ER_ERROR_DURING_COMMIT = 1180
220
+ ER_ERROR_DURING_ROLLBACK = 1181
221
+ ER_ERROR_DURING_FLUSH_LOGS = 1182
222
+ ER_ERROR_DURING_CHECKPOINT = 1183
223
+ ER_NEW_ABORTING_CONNECTION = 1184
224
+ ER_DUMP_NOT_IMPLEMENTED = 1185
225
+ ER_FLUSH_MASTER_BINLOG_CLOSED = 1186
226
+ ER_INDEX_REBUILD = 1187
227
+ ER_MASTER = 1188
228
+ ER_MASTER_NET_READ = 1189
229
+ ER_MASTER_NET_WRITE = 1190
230
+ ER_FT_MATCHING_KEY_NOT_FOUND = 1191
231
+ ER_LOCK_OR_ACTIVE_TRANSACTION = 1192
232
+ ER_UNKNOWN_SYSTEM_VARIABLE = 1193
233
+ ER_CRASHED_ON_USAGE = 1194
234
+ ER_CRASHED_ON_REPAIR = 1195
235
+ ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196
236
+ ER_TRANS_CACHE_FULL = 1197
237
+ ER_SLAVE_MUST_STOP = 1198
238
+ ER_SLAVE_NOT_RUNNING = 1199
239
+ ER_BAD_SLAVE = 1200
240
+ ER_MASTER_INFO = 1201
241
+ ER_SLAVE_THREAD = 1202
242
+ ER_TOO_MANY_USER_CONNECTIONS = 1203
243
+ ER_SET_CONSTANTS_ONLY = 1204
244
+ ER_LOCK_WAIT_TIMEOUT = 1205
245
+ ER_LOCK_TABLE_FULL = 1206
246
+ ER_READ_ONLY_TRANSACTION = 1207
247
+ ER_DROP_DB_WITH_READ_LOCK = 1208
248
+ ER_CREATE_DB_WITH_READ_LOCK = 1209
249
+ ER_WRONG_ARGUMENTS = 1210
250
+ ER_NO_PERMISSION_TO_CREATE_USER = 1211
251
+ ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212
252
+ ER_LOCK_DEADLOCK = 1213
253
+ ER_TABLE_CANT_HANDLE_FT = 1214
254
+ ER_CANNOT_ADD_FOREIGN = 1215
255
+ ER_NO_REFERENCED_ROW = 1216
256
+ ER_ROW_IS_REFERENCED = 1217
257
+ ER_CONNECT_TO_MASTER = 1218
258
+ ER_QUERY_ON_MASTER = 1219
259
+ ER_ERROR_WHEN_EXECUTING_COMMAND = 1220
260
+ ER_WRONG_USAGE = 1221
261
+ ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222
262
+ ER_CANT_UPDATE_WITH_READLOCK = 1223
263
+ ER_MIXING_NOT_ALLOWED = 1224
264
+ ER_DUP_ARGUMENT = 1225
265
+ ER_USER_LIMIT_REACHED = 1226
266
+ ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227
267
+ ER_LOCAL_VARIABLE = 1228
268
+ ER_GLOBAL_VARIABLE = 1229
269
+ ER_NO_DEFAULT = 1230
270
+ ER_WRONG_VALUE_FOR_VAR = 1231
271
+ ER_WRONG_TYPE_FOR_VAR = 1232
272
+ ER_VAR_CANT_BE_READ = 1233
273
+ ER_CANT_USE_OPTION_HERE = 1234
274
+ ER_NOT_SUPPORTED_YET = 1235
275
+ ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236
276
+ ER_SLAVE_IGNORED_TABLE = 1237
277
+ ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238
278
+ ER_WRONG_FK_DEF = 1239
279
+ ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240
280
+ ER_OPERAND_COLUMNS = 1241
281
+ ER_SUBQUERY_NO_1_ROW = 1242
282
+ ER_UNKNOWN_STMT_HANDLER = 1243
283
+ ER_CORRUPT_HELP_DB = 1244
284
+ ER_CYCLIC_REFERENCE = 1245
285
+ ER_AUTO_CONVERT = 1246
286
+ ER_ILLEGAL_REFERENCE = 1247
287
+ ER_DERIVED_MUST_HAVE_ALIAS = 1248
288
+ ER_SELECT_REDUCED = 1249
289
+ ER_TABLENAME_NOT_ALLOWED_HERE = 1250
290
+ ER_NOT_SUPPORTED_AUTH_MODE = 1251
291
+ ER_SPATIAL_CANT_HAVE_NULL = 1252
292
+ ER_COLLATION_CHARSET_MISMATCH = 1253
293
+ ER_SLAVE_WAS_RUNNING = 1254
294
+ ER_SLAVE_WAS_NOT_RUNNING = 1255
295
+ ER_TOO_BIG_FOR_UNCOMPRESS = 1256
296
+ ER_ZLIB_Z_MEM_ERROR = 1257
297
+ ER_ZLIB_Z_BUF_ERROR = 1258
298
+ ER_ZLIB_Z_DATA_ERROR = 1259
299
+ ER_CUT_VALUE_GROUP_CONCAT = 1260
300
+ ER_WARN_TOO_FEW_RECORDS = 1261
301
+ ER_WARN_TOO_MANY_RECORDS = 1262
302
+ ER_WARN_NULL_TO_NOTNULL = 1263
303
+ ER_WARN_DATA_OUT_OF_RANGE = 1264
304
+ WARN_DATA_TRUNCATED = 1265
305
+ ER_WARN_USING_OTHER_HANDLER = 1266
306
+ ER_CANT_AGGREGATE_2COLLATIONS = 1267
307
+ ER_DROP_USER = 1268
308
+ ER_REVOKE_GRANTS = 1269
309
+ ER_CANT_AGGREGATE_3COLLATIONS = 1270
310
+ ER_CANT_AGGREGATE_NCOLLATIONS = 1271
311
+ ER_VARIABLE_IS_NOT_STRUCT = 1272
312
+ ER_UNKNOWN_COLLATION = 1273
313
+ ER_SLAVE_IGNORED_SSL_PARAMS = 1274
314
+ ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275
315
+ ER_WARN_FIELD_RESOLVED = 1276
316
+ ER_BAD_SLAVE_UNTIL_COND = 1277
317
+ ER_MISSING_SKIP_SLAVE = 1278
318
+ ER_UNTIL_COND_IGNORED = 1279
319
+ ER_WRONG_NAME_FOR_INDEX = 1280
320
+ ER_WRONG_NAME_FOR_CATALOG = 1281
321
+ ER_WARN_QC_RESIZE = 1282
322
+ ER_BAD_FT_COLUMN = 1283
323
+ ER_UNKNOWN_KEY_CACHE = 1284
324
+ ER_WARN_HOSTNAME_WONT_WORK = 1285
325
+ ER_UNKNOWN_STORAGE_ENGINE = 1286
326
+ ER_WARN_DEPRECATED_SYNTAX = 1287
327
+ ER_NON_UPDATABLE_TABLE = 1288
328
+ ER_FEATURE_DISABLED = 1289
329
+ ER_OPTION_PREVENTS_STATEMENT = 1290
330
+ ER_DUPLICATED_VALUE_IN_TYPE = 1291
331
+ ER_TRUNCATED_WRONG_VALUE = 1292
332
+ ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293
333
+ ER_INVALID_ON_UPDATE = 1294
334
+ ER_UNSUPPORTED_PS = 1295
335
+ ER_GET_ERRMSG = 1296
336
+ ER_GET_TEMPORARY_ERRMSG = 1297
337
+ ER_UNKNOWN_TIME_ZONE = 1298
338
+ ER_WARN_INVALID_TIMESTAMP = 1299
339
+ ER_INVALID_CHARACTER_STRING = 1300
340
+ ER_WARN_ALLOWED_PACKET_OVERFLOWED = 1301
341
+ ER_CONFLICTING_DECLARATIONS = 1302
342
+ ER_SP_NO_RECURSIVE_CREATE = 1303
343
+ ER_SP_ALREADY_EXISTS = 1304
344
+ ER_SP_DOES_NOT_EXIST = 1305
345
+ ER_SP_DROP_FAILED = 1306
346
+ ER_SP_STORE_FAILED = 1307
347
+ ER_SP_LILABEL_MISMATCH = 1308
348
+ ER_SP_LABEL_REDEFINE = 1309
349
+ ER_SP_LABEL_MISMATCH = 1310
350
+ ER_SP_UNINIT_VAR = 1311
351
+ ER_SP_BADSELECT = 1312
352
+ ER_SP_BADRETURN = 1313
353
+ ER_SP_BADSTATEMENT = 1314
354
+ ER_UPDATE_LOG_DEPRECATED_IGNORED = 1315
355
+ ER_UPDATE_LOG_DEPRECATED_TRANSLATED = 1316
356
+ ER_QUERY_INTERRUPTED = 1317
357
+ ER_SP_WRONG_NO_OF_ARGS = 1318
358
+ ER_SP_COND_MISMATCH = 1319
359
+ ER_SP_NORETURN = 1320
360
+ ER_SP_NORETURNEND = 1321
361
+ ER_SP_BAD_CURSOR_QUERY = 1322
362
+ ER_SP_BAD_CURSOR_SELECT = 1323
363
+ ER_SP_CURSOR_MISMATCH = 1324
364
+ ER_SP_CURSOR_ALREADY_OPEN = 1325
365
+ ER_SP_CURSOR_NOT_OPEN = 1326
366
+ ER_SP_UNDECLARED_VAR = 1327
367
+ ER_SP_WRONG_NO_OF_FETCH_ARGS = 1328
368
+ ER_SP_FETCH_NO_DATA = 1329
369
+ ER_SP_DUP_PARAM = 1330
370
+ ER_SP_DUP_VAR = 1331
371
+ ER_SP_DUP_COND = 1332
372
+ ER_SP_DUP_CURS = 1333
373
+ ER_SP_CANT_ALTER = 1334
374
+ ER_SP_SUBSELECT_NYI = 1335
375
+ ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG = 1336
376
+ ER_SP_VARCOND_AFTER_CURSHNDLR = 1337
377
+ ER_SP_CURSOR_AFTER_HANDLER = 1338
378
+ ER_SP_CASE_NOT_FOUND = 1339
379
+ ER_FPARSER_TOO_BIG_FILE = 1340
380
+ ER_FPARSER_BAD_HEADER = 1341
381
+ ER_FPARSER_EOF_IN_COMMENT = 1342
382
+ ER_FPARSER_ERROR_IN_PARAMETER = 1343
383
+ ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER = 1344
384
+ ER_VIEW_NO_EXPLAIN = 1345
385
+ ER_FRM_UNKNOWN_TYPE = 1346
386
+ ER_WRONG_OBJECT = 1347
387
+ ER_NONUPDATEABLE_COLUMN = 1348
388
+ ER_VIEW_SELECT_DERIVED = 1349
389
+ ER_VIEW_SELECT_CLAUSE = 1350
390
+ ER_VIEW_SELECT_VARIABLE = 1351
391
+ ER_VIEW_SELECT_TMPTABLE = 1352
392
+ ER_VIEW_WRONG_LIST = 1353
393
+ ER_WARN_VIEW_MERGE = 1354
394
+ ER_WARN_VIEW_WITHOUT_KEY = 1355
395
+ ER_VIEW_INVALID = 1356
396
+ ER_SP_NO_DROP_SP = 1357
397
+ ER_SP_GOTO_IN_HNDLR = 1358
398
+ ER_TRG_ALREADY_EXISTS = 1359
399
+ ER_TRG_DOES_NOT_EXIST = 1360
400
+ ER_TRG_ON_VIEW_OR_TEMP_TABLE = 1361
401
+ ER_TRG_CANT_CHANGE_ROW = 1362
402
+ ER_TRG_NO_SUCH_ROW_IN_TRG = 1363
403
+ ER_NO_DEFAULT_FOR_FIELD = 1364
404
+ ER_DIVISION_BY_ZERO = 1365
405
+ ER_TRUNCATED_WRONG_VALUE_FOR_FIELD = 1366
406
+ ER_ILLEGAL_VALUE_FOR_TYPE = 1367
407
+ ER_VIEW_NONUPD_CHECK = 1368
408
+ ER_VIEW_CHECK_FAILED = 1369
409
+ ER_PROCACCESS_DENIED_ERROR = 1370
410
+ ER_RELAY_LOG_FAIL = 1371
411
+ ER_PASSWD_LENGTH = 1372
412
+ ER_UNKNOWN_TARGET_BINLOG = 1373
413
+ ER_IO_ERR_LOG_INDEX_READ = 1374
414
+ ER_BINLOG_PURGE_PROHIBITED = 1375
415
+ ER_FSEEK_FAIL = 1376
416
+ ER_BINLOG_PURGE_FATAL_ERR = 1377
417
+ ER_LOG_IN_USE = 1378
418
+ ER_LOG_PURGE_UNKNOWN_ERR = 1379
419
+ ER_RELAY_LOG_INIT = 1380
420
+ ER_NO_BINARY_LOGGING = 1381
421
+ ER_RESERVED_SYNTAX = 1382
422
+ ER_WSAS_FAILED = 1383
423
+ ER_DIFF_GROUPS_PROC = 1384
424
+ ER_NO_GROUP_FOR_PROC = 1385
425
+ ER_ORDER_WITH_PROC = 1386
426
+ ER_LOGGING_PROHIBIT_CHANGING_OF = 1387
427
+ ER_NO_FILE_MAPPING = 1388
428
+ ER_WRONG_MAGIC = 1389
429
+ ER_PS_MANY_PARAM = 1390
430
+ ER_KEY_PART_0 = 1391
431
+ ER_VIEW_CHECKSUM = 1392
432
+ ER_VIEW_MULTIUPDATE = 1393
433
+ ER_VIEW_NO_INSERT_FIELD_LIST = 1394
434
+ ER_VIEW_DELETE_MERGE_VIEW = 1395
435
+ ER_CANNOT_USER = 1396
436
+ ER_XAER_NOTA = 1397
437
+ ER_XAER_INVAL = 1398
438
+ ER_XAER_RMFAIL = 1399
439
+ ER_XAER_OUTSIDE = 1400
440
+ ER_XAER_RMERR = 1401
441
+ ER_XA_RBROLLBACK = 1402
442
+ ER_NONEXISTING_PROC_GRANT = 1403
443
+ ER_PROC_AUTO_GRANT_FAIL = 1404
444
+ ER_PROC_AUTO_REVOKE_FAIL = 1405
445
+ ER_DATA_TOO_LONG = 1406
446
+ ER_SP_BAD_SQLSTATE = 1407
447
+ ER_STARTUP = 1408
448
+ ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR = 1409
449
+ ER_CANT_CREATE_USER_WITH_GRANT = 1410
450
+ ER_WRONG_VALUE_FOR_TYPE = 1411
451
+ ER_TABLE_DEF_CHANGED = 1412
452
+ ER_SP_DUP_HANDLER = 1413
453
+ ER_SP_NOT_VAR_ARG = 1414
454
+ ER_SP_NO_RETSET = 1415
455
+ ER_CANT_CREATE_GEOMETRY_OBJECT = 1416
456
+ ER_FAILED_ROUTINE_BREAK_BINLOG = 1417
457
+ ER_BINLOG_UNSAFE_ROUTINE = 1418
458
+ ER_BINLOG_CREATE_ROUTINE_NEED_SUPER = 1419
459
+ ER_EXEC_STMT_WITH_OPEN_CURSOR = 1420
460
+ ER_STMT_HAS_NO_OPEN_CURSOR = 1421
461
+ ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG = 1422
462
+ ER_NO_DEFAULT_FOR_VIEW_FIELD = 1423
463
+ ER_SP_NO_RECURSION = 1424
464
+ ER_TOO_BIG_SCALE = 1425
465
+ ER_TOO_BIG_PRECISION = 1426
466
+ ER_M_BIGGER_THAN_D = 1427
467
+ ER_WRONG_LOCK_OF_SYSTEM_TABLE = 1428
468
+ ER_CONNECT_TO_FOREIGN_DATA_SOURCE = 1429
469
+ ER_QUERY_ON_FOREIGN_DATA_SOURCE = 1430
470
+ ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST = 1431
471
+ ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE = 1432
472
+ ER_FOREIGN_DATA_STRING_INVALID = 1433
473
+ ER_CANT_CREATE_FEDERATED_TABLE = 1434
474
+ ER_TRG_IN_WRONG_SCHEMA = 1435
475
+ ER_STACK_OVERRUN_NEED_MORE = 1436
476
+ ER_TOO_LONG_BODY = 1437
477
+ ER_WARN_CANT_DROP_DEFAULT_KEYCACHE = 1438
478
+ ER_TOO_BIG_DISPLAYWIDTH = 1439
479
+ ER_XAER_DUPID = 1440
480
+ ER_DATETIME_FUNCTION_OVERFLOW = 1441
481
+ ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG = 1442
482
+ ER_VIEW_PREVENT_UPDATE = 1443
483
+ ER_PS_NO_RECURSION = 1444
484
+ ER_SP_CANT_SET_AUTOCOMMIT = 1445
485
+ ER_MALFORMED_DEFINER = 1446
486
+ ER_VIEW_FRM_NO_USER = 1447
487
+ ER_VIEW_OTHER_USER = 1448
488
+ ER_NO_SUCH_USER = 1449
489
+ ER_FORBID_SCHEMA_CHANGE = 1450
490
+ ER_ROW_IS_REFERENCED_2 = 1451
491
+ ER_NO_REFERENCED_ROW_2 = 1452
492
+ ER_SP_BAD_VAR_SHADOW = 1453
493
+ ER_TRG_NO_DEFINER = 1454
494
+ ER_OLD_FILE_FORMAT = 1455
495
+ ER_SP_RECURSION_LIMIT = 1456
496
+ ER_SP_PROC_TABLE_CORRUPT = 1457
497
+ ER_SP_WRONG_NAME = 1458
498
+ ER_TABLE_NEEDS_UPGRADE = 1459
499
+ ER_SP_NO_AGGREGATE = 1460
500
+ ER_MAX_PREPARED_STMT_COUNT_REACHED = 1461
501
+ ER_VIEW_RECURSIVE = 1462
502
+ ER_NON_GROUPING_FIELD_USED = 1463
503
+ ER_TABLE_CANT_HANDLE_SPKEYS = 1464
504
+ ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA = 1465
505
+ ER_REMOVED_SPACES = 1466
506
+ ER_AUTOINC_READ_FAILED = 1467
507
+ ER_USERNAME = 1468
508
+ ER_HOSTNAME = 1469
509
+ ER_WRONG_STRING_LENGTH = 1470
510
+ ER_NON_INSERTABLE_TABLE = 1471
511
+ ER_ADMIN_WRONG_MRG_TABLE = 1472
512
+ ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT = 1473
513
+ ER_NAME_BECOMES_EMPTY = 1474
514
+ ER_AMBIGUOUS_FIELD_TERM = 1475
515
+ ER_FOREIGN_SERVER_EXISTS = 1476
516
+ ER_FOREIGN_SERVER_DOESNT_EXIST = 1477
517
+ ER_ILLEGAL_HA_CREATE_OPTION = 1478
518
+ ER_PARTITION_REQUIRES_VALUES_ERROR = 1479
519
+ ER_PARTITION_WRONG_VALUES_ERROR = 1480
520
+ ER_PARTITION_MAXVALUE_ERROR = 1481
521
+ ER_PARTITION_SUBPARTITION_ERROR = 1482
522
+ ER_PARTITION_SUBPART_MIX_ERROR = 1483
523
+ ER_PARTITION_WRONG_NO_PART_ERROR = 1484
524
+ ER_PARTITION_WRONG_NO_SUBPART_ERROR = 1485
525
+ ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR = 1486
526
+ ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR = 1487
527
+ ER_FIELD_NOT_FOUND_PART_ERROR = 1488
528
+ ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR = 1489
529
+ ER_INCONSISTENT_PARTITION_INFO_ERROR = 1490
530
+ ER_PARTITION_FUNC_NOT_ALLOWED_ERROR = 1491
531
+ ER_PARTITIONS_MUST_BE_DEFINED_ERROR = 1492
532
+ ER_RANGE_NOT_INCREASING_ERROR = 1493
533
+ ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR = 1494
534
+ ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR = 1495
535
+ ER_PARTITION_ENTRY_ERROR = 1496
536
+ ER_MIX_HANDLER_ERROR = 1497
537
+ ER_PARTITION_NOT_DEFINED_ERROR = 1498
538
+ ER_TOO_MANY_PARTITIONS_ERROR = 1499
539
+ ER_SUBPARTITION_ERROR = 1500
540
+ ER_CANT_CREATE_HANDLER_FILE = 1501
541
+ ER_BLOB_FIELD_IN_PART_FUNC_ERROR = 1502
542
+ ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF = 1503
543
+ ER_NO_PARTS_ERROR = 1504
544
+ ER_PARTITION_MGMT_ON_NONPARTITIONED = 1505
545
+ ER_FOREIGN_KEY_ON_PARTITIONED = 1506
546
+ ER_DROP_PARTITION_NON_EXISTENT = 1507
547
+ ER_DROP_LAST_PARTITION = 1508
548
+ ER_COALESCE_ONLY_ON_HASH_PARTITION = 1509
549
+ ER_REORG_HASH_ONLY_ON_SAME_NO = 1510
550
+ ER_REORG_NO_PARAM_ERROR = 1511
551
+ ER_ONLY_ON_RANGE_LIST_PARTITION = 1512
552
+ ER_ADD_PARTITION_SUBPART_ERROR = 1513
553
+ ER_ADD_PARTITION_NO_NEW_PARTITION = 1514
554
+ ER_COALESCE_PARTITION_NO_PARTITION = 1515
555
+ ER_REORG_PARTITION_NOT_EXIST = 1516
556
+ ER_SAME_NAME_PARTITION = 1517
557
+ ER_NO_BINLOG_ERROR = 1518
558
+ ER_CONSECUTIVE_REORG_PARTITIONS = 1519
559
+ ER_REORG_OUTSIDE_RANGE = 1520
560
+ ER_PARTITION_FUNCTION_FAILURE = 1521
561
+ ER_PART_STATE_ERROR = 1522
562
+ ER_LIMITED_PART_RANGE = 1523
563
+ ER_PLUGIN_IS_NOT_LOADED = 1524
564
+ ER_WRONG_VALUE = 1525
565
+ ER_NO_PARTITION_FOR_GIVEN_VALUE = 1526
566
+ ER_FILEGROUP_OPTION_ONLY_ONCE = 1527
567
+ ER_CREATE_FILEGROUP_FAILED = 1528
568
+ ER_DROP_FILEGROUP_FAILED = 1529
569
+ ER_TABLESPACE_AUTO_EXTEND_ERROR = 1530
570
+ ER_WRONG_SIZE_NUMBER = 1531
571
+ ER_SIZE_OVERFLOW_ERROR = 1532
572
+ ER_ALTER_FILEGROUP_FAILED = 1533
573
+ ER_BINLOG_ROW_LOGGING_FAILED = 1534
574
+ ER_BINLOG_ROW_WRONG_TABLE_DEF = 1535
575
+ ER_BINLOG_ROW_RBR_TO_SBR = 1536
576
+ ER_EVENT_ALREADY_EXISTS = 1537
577
+ ER_EVENT_STORE_FAILED = 1538
578
+ ER_EVENT_DOES_NOT_EXIST = 1539
579
+ ER_EVENT_CANT_ALTER = 1540
580
+ ER_EVENT_DROP_FAILED = 1541
581
+ ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG = 1542
582
+ ER_EVENT_ENDS_BEFORE_STARTS = 1543
583
+ ER_EVENT_EXEC_TIME_IN_THE_PAST = 1544
584
+ ER_EVENT_OPEN_TABLE_FAILED = 1545
585
+ ER_EVENT_NEITHER_M_EXPR_NOR_M_AT = 1546
586
+ ER_COL_COUNT_DOESNT_MATCH_CORRUPTED = 1547
587
+ ER_CANNOT_LOAD_FROM_TABLE = 1548
588
+ ER_EVENT_CANNOT_DELETE = 1549
589
+ ER_EVENT_COMPILE_ERROR = 1550
590
+ ER_EVENT_SAME_NAME = 1551
591
+ ER_EVENT_DATA_TOO_LONG = 1552
592
+ ER_DROP_INDEX_FK = 1553
593
+ ER_WARN_DEPRECATED_SYNTAX_WITH_VER = 1554
594
+ ER_CANT_WRITE_LOCK_LOG_TABLE = 1555
595
+ ER_CANT_LOCK_LOG_TABLE = 1556
596
+ ER_FOREIGN_DUPLICATE_KEY = 1557
597
+ ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE = 1558
598
+ ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR = 1559
599
+ ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1560
600
+ ER_NDB_CANT_SWITCH_BINLOG_FORMAT = 1561
601
+ ER_PARTITION_NO_TEMPORARY = 1562
602
+ ER_PARTITION_CONST_DOMAIN_ERROR = 1563
603
+ ER_PARTITION_FUNCTION_IS_NOT_ALLOWED = 1564
604
+ ER_DDL_LOG_ERROR = 1565
605
+ ER_NULL_IN_VALUES_LESS_THAN = 1566
606
+ ER_WRONG_PARTITION_NAME = 1567
607
+ ER_CANT_CHANGE_TX_ISOLATION = 1568
608
+ ER_DUP_ENTRY_AUTOINCREMENT_CASE = 1569
609
+ ER_EVENT_MODIFY_QUEUE_ERROR = 1570
610
+ ER_EVENT_SET_VAR_ERROR = 1571
611
+ ER_PARTITION_MERGE_ERROR = 1572
612
+ ER_CANT_ACTIVATE_LOG = 1573
613
+ ER_RBR_NOT_AVAILABLE = 1574
614
+ ER_BASE64_DECODE_ERROR = 1575
615
+ ER_EVENT_RECURSION_FORBIDDEN = 1576
616
+ ER_EVENTS_DB_ERROR = 1577
617
+ ER_ONLY_INTEGERS_ALLOWED = 1578
618
+ ER_UNSUPORTED_LOG_ENGINE = 1579
619
+ ER_BAD_LOG_STATEMENT = 1580
620
+ ER_CANT_RENAME_LOG_TABLE = 1581
621
+ ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT = 1582
622
+ ER_WRONG_PARAMETERS_TO_NATIVE_FCT = 1583
623
+ ER_WRONG_PARAMETERS_TO_STORED_FCT = 1584
624
+ ER_NATIVE_FCT_NAME_COLLISION = 1585
625
+ ER_DUP_ENTRY_WITH_KEY_NAME = 1586
626
+ ER_BINLOG_PURGE_EMFILE = 1587
627
+ ER_EVENT_CANNOT_CREATE_IN_THE_PAST = 1588
628
+ ER_EVENT_CANNOT_ALTER_IN_THE_PAST = 1589
629
+ ER_SLAVE_INCIDENT = 1590
630
+ ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT = 1591
631
+ ER_BINLOG_UNSAFE_STATEMENT = 1592
632
+ ER_SLAVE_FATAL_ERROR = 1593
633
+ ER_SLAVE_RELAY_LOG_READ_FAILURE = 1594
634
+ ER_SLAVE_RELAY_LOG_WRITE_FAILURE = 1595
635
+ ER_SLAVE_CREATE_EVENT_FAILURE = 1596
636
+ ER_SLAVE_MASTER_COM_FAILURE = 1597
637
+ ER_BINLOG_LOGGING_IMPOSSIBLE = 1598
638
+ ER_VIEW_NO_CREATION_CTX = 1599
639
+ ER_VIEW_INVALID_CREATION_CTX = 1600
640
+ ER_SR_INVALID_CREATION_CTX = 1601
641
+ ER_TRG_CORRUPTED_FILE = 1602
642
+ ER_TRG_NO_CREATION_CTX = 1603
643
+ ER_TRG_INVALID_CREATION_CTX = 1604
644
+ ER_EVENT_INVALID_CREATION_CTX = 1605
645
+ ER_TRG_CANT_OPEN_TABLE = 1606
646
+ ER_CANT_CREATE_SROUTINE = 1607
647
+ ER_NEVER_USED = 1608
648
+ ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT = 1609
649
+ ER_SLAVE_CORRUPT_EVENT = 1610
650
+ ER_LOAD_DATA_INVALID_COLUMN = 1611
651
+ ER_LOG_PURGE_NO_FILE = 1612
652
+ ER_XA_RBTIMEOUT = 1613
653
+ ER_XA_RBDEADLOCK = 1614
654
+ ER_NEED_REPREPARE = 1615
655
+ ER_DELAYED_NOT_SUPPORTED = 1616
656
+ WARN_NO_MASTER_INFO = 1617
657
+ WARN_OPTION_IGNORED = 1618
658
+ WARN_PLUGIN_DELETE_BUILTIN = 1619
659
+ WARN_PLUGIN_BUSY = 1620
660
+ ER_VARIABLE_IS_READONLY = 1621
661
+ ER_WARN_ENGINE_TRANSACTION_ROLLBACK = 1622
662
+ ER_SLAVE_HEARTBEAT_FAILURE = 1623
663
+ ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE = 1624
664
+ ER_NDB_REPLICATION_SCHEMA_ERROR = 1625
665
+ ER_CONFLICT_FN_PARSE_ERROR = 1626
666
+ ER_EXCEPTIONS_WRITE_ERROR = 1627
667
+ ER_TOO_LONG_TABLE_COMMENT = 1628
668
+ ER_TOO_LONG_FIELD_COMMENT = 1629
669
+ ER_FUNC_INEXISTENT_NAME_COLLISION = 1630
670
+ ER_DATABASE_NAME = 1631
671
+ ER_TABLE_NAME = 1632
672
+ ER_PARTITION_NAME = 1633
673
+ ER_SUBPARTITION_NAME = 1634
674
+ ER_TEMPORARY_NAME = 1635
675
+ ER_RENAMED_NAME = 1636
676
+ ER_TOO_MANY_CONCURRENT_TRXS = 1637
677
+ WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED = 1638
678
+ ER_DEBUG_SYNC_TIMEOUT = 1639
679
+ ER_DEBUG_SYNC_HIT_LIMIT = 1640
680
+ ER_DUP_SIGNAL_SET = 1641
681
+ ER_SIGNAL_WARN = 1642
682
+ ER_SIGNAL_NOT_FOUND = 1643
683
+ ER_SIGNAL_EXCEPTION = 1644
684
+ ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER = 1645
685
+ ER_SIGNAL_BAD_CONDITION_TYPE = 1646
686
+ WARN_COND_ITEM_TRUNCATED = 1647
687
+ ER_COND_ITEM_TOO_LONG = 1648
688
+ ER_UNKNOWN_LOCALE = 1649
689
+ ER_SLAVE_IGNORE_SERVER_IDS = 1650
690
+ ER_QUERY_CACHE_DISABLED = 1651
691
+ ER_SAME_NAME_PARTITION_FIELD = 1652
692
+ ER_PARTITION_COLUMN_LIST_ERROR = 1653
693
+ ER_WRONG_TYPE_COLUMN_VALUE_ERROR = 1654
694
+ ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR = 1655
695
+ ER_MAXVALUE_IN_VALUES_IN = 1656
696
+ ER_TOO_MANY_VALUES_ERROR = 1657
697
+ ER_ROW_SINGLE_PARTITION_FIELD_ERROR = 1658
698
+ ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD = 1659
699
+ ER_PARTITION_FIELDS_TOO_LONG = 1660
700
+ ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE = 1661
701
+ ER_BINLOG_ROW_MODE_AND_STMT_ENGINE = 1662
702
+ ER_BINLOG_UNSAFE_AND_STMT_ENGINE = 1663
703
+ ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE = 1664
704
+ ER_BINLOG_STMT_MODE_AND_ROW_ENGINE = 1665
705
+ ER_BINLOG_ROW_INJECTION_AND_STMT_MODE = 1666
706
+ ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1667
707
+ ER_BINLOG_UNSAFE_LIMIT = 1668
708
+ ER_BINLOG_UNSAFE_INSERT_DELAYED = 1669
709
+ ER_BINLOG_UNSAFE_SYSTEM_TABLE = 1670
710
+ ER_BINLOG_UNSAFE_AUTOINC_COLUMNS = 1671
711
+ ER_BINLOG_UNSAFE_UDF = 1672
712
+ ER_BINLOG_UNSAFE_SYSTEM_VARIABLE = 1673
713
+ ER_BINLOG_UNSAFE_SYSTEM_FUNCTION = 1674
714
+ ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS = 1675
715
+ ER_MESSAGE_AND_STATEMENT = 1676
716
+ ER_SLAVE_CONVERSION_FAILED = 1677
717
+ ER_SLAVE_CANT_CREATE_CONVERSION = 1678
718
+ ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT = 1679
719
+ ER_PATH_LENGTH = 1680
720
+ ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT = 1681
721
+ ER_WRONG_NATIVE_TABLE_STRUCTURE = 1682
722
+ ER_WRONG_PERFSCHEMA_USAGE = 1683
723
+ ER_WARN_I_S_SKIPPED_TABLE = 1684
724
+ ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1685
725
+ ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT = 1686
726
+ ER_SPATIAL_MUST_HAVE_GEOM_COL = 1687
727
+ ER_TOO_LONG_INDEX_COMMENT = 1688
728
+ ER_LOCK_ABORTED = 1689
729
+ ER_DATA_OUT_OF_RANGE = 1690
730
+ ER_WRONG_SPVAR_TYPE_IN_LIMIT = 1691
731
+ ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE = 1692
732
+ ER_BINLOG_UNSAFE_MIXED_STATEMENT = 1693
733
+ ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1694
734
+ ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN = 1695
735
+ ER_FAILED_READ_FROM_PAR_FILE = 1696
736
+ ER_VALUES_IS_NOT_INT_TYPE_ERROR = 1697
737
+ ER_ACCESS_DENIED_NO_PASSWORD_ERROR = 1698
738
+ ER_SET_PASSWORD_AUTH_PLUGIN = 1699
739
+ ER_GRANT_PLUGIN_USER_EXISTS = 1700
740
+ ER_TRUNCATE_ILLEGAL_FK = 1701
741
+ ER_PLUGIN_IS_PERMANENT = 1702
742
+ ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN = 1703
743
+ ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX = 1704
744
+ ER_ERROR_LAST = 1704
495
745
  end
496
746
 
497
- ServerError.constants.each do |errname|
498
- errname = errname.to_s
499
- next unless errname =~ /\AER_/
500
- errno = ServerError.const_get errname
501
- excname = errname.sub(/\AER_/,"").gsub(/(\A.|_.)([A-Z]+)/){$1+$2.downcase}.gsub(/_/,"")
502
- eval <<EOS
503
- class Mysql::#{excname} < Mysql::ServerError
504
- ERRNO = #{errno}
505
- end
506
- EOS
507
- ServerError::ERROR_MAP[errno] = eval "Mysql::#{excname}"
508
- end
747
+ ServerError.define_error_class /\AER_/
748
+ ServerError::ERROR_MAP.values.each{|v| Mysql.const_set v.name.split(/::/).last, v} # for compatibility
509
749
 
510
750
  # client side error
511
751
  class ClientError < Error
752
+ ERROR_MAP = {}
753
+
754
+ CR_UNKNOWN_ERROR = 2000
755
+ CR_SOCKET_CREATE_ERROR = 2001
756
+ CR_CONNECTION_ERROR = 2002
757
+ CR_CONN_HOST_ERROR = 2003
758
+ CR_IPSOCK_ERROR = 2004
759
+ CR_UNKNOWN_HOST = 2005
760
+ CR_SERVER_GONE_ERROR = 2006
761
+ CR_VERSION_ERROR = 2007
762
+ CR_OUT_OF_MEMORY = 2008
763
+ CR_WRONG_HOST_INFO = 2009
764
+ CR_LOCALHOST_CONNECTION = 2010
765
+ CR_TCP_CONNECTION = 2011
766
+ CR_SERVER_HANDSHAKE_ERR = 2012
767
+ CR_SERVER_LOST = 2013
768
+ CR_COMMANDS_OUT_OF_SYNC = 2014
769
+ CR_NAMEDPIPE_CONNECTION = 2015
770
+ CR_NAMEDPIPEWAIT_ERROR = 2016
771
+ CR_NAMEDPIPEOPEN_ERROR = 2017
772
+ CR_NAMEDPIPESETSTATE_ERROR = 2018
773
+ CR_CANT_READ_CHARSET = 2019
774
+ CR_NET_PACKET_TOO_LARGE = 2020
775
+ CR_EMBEDDED_CONNECTION = 2021
776
+ CR_PROBE_SLAVE_STATUS = 2022
777
+ CR_PROBE_SLAVE_HOSTS = 2023
778
+ CR_PROBE_SLAVE_CONNECT = 2024
779
+ CR_PROBE_MASTER_CONNECT = 2025
780
+ CR_SSL_CONNECTION_ERROR = 2026
781
+ CR_MALFORMED_PACKET = 2027
782
+ CR_WRONG_LICENSE = 2028
783
+ CR_NULL_POINTER = 2029
784
+ CR_NO_PREPARE_STMT = 2030
785
+ CR_PARAMS_NOT_BOUND = 2031
786
+ CR_DATA_TRUNCATED = 2032
787
+ CR_NO_PARAMETERS_EXISTS = 2033
788
+ CR_INVALID_PARAMETER_NO = 2034
789
+ CR_INVALID_BUFFER_USE = 2035
790
+ CR_UNSUPPORTED_PARAM_TYPE = 2036
791
+ CR_SHARED_MEMORY_CONNECTION = 2037
792
+ CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR = 2038
793
+ CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR = 2039
794
+ CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR = 2040
795
+ CR_SHARED_MEMORY_CONNECT_MAP_ERROR = 2041
796
+ CR_SHARED_MEMORY_FILE_MAP_ERROR = 2042
797
+ CR_SHARED_MEMORY_MAP_ERROR = 2043
798
+ CR_SHARED_MEMORY_EVENT_ERROR = 2044
799
+ CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR = 2045
800
+ CR_SHARED_MEMORY_CONNECT_SET_ERROR = 2046
801
+ CR_CONN_UNKNOW_PROTOCOL = 2047
802
+ CR_INVALID_CONN_HANDLE = 2048
803
+ CR_SECURE_AUTH = 2049
804
+ CR_FETCH_CANCELED = 2050
805
+ CR_NO_DATA = 2051
806
+ CR_NO_STMT_METADATA = 2052
807
+ CR_NO_RESULT_SET = 2053
808
+ CR_NOT_IMPLEMENTED = 2054
809
+ CR_SERVER_LOST_EXTENDED = 2055
810
+ CR_STMT_CLOSED = 2056
811
+ CR_NEW_STMT_METADATA = 2057
812
+ CR_ALREADY_CONNECTED = 2058
813
+ CR_AUTH_PLUGIN_CANNOT_LOAD = 2059
512
814
  end
513
815
 
816
+ ClientError.define_error_class /\ACR_/
817
+
514
818
  # protocol error
515
819
  class ProtocolError < ClientError
516
820
  end