do_mysql 0.9.12-x86-mingw32 → 0.10.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.markdown +17 -0
- data/Manifest.txt +2 -2
- data/{README.txt → README.markdown} +2 -1
- data/Rakefile +3 -3
- data/ext/do_mysql_ext/do_mysql_ext.c +255 -106
- data/ext/do_mysql_ext/error.h +527 -0
- data/ext/do_mysql_ext/extconf.rb +1 -6
- data/lib/do_mysql.rb +20 -17
- data/lib/do_mysql/encoding.rb +38 -0
- data/lib/do_mysql/transaction.rb +9 -13
- data/lib/do_mysql/version.rb +1 -1
- data/lib/do_mysql_ext.so +0 -0
- data/spec/connection_spec.rb +43 -1
- data/spec/result_spec.rb +7 -0
- data/spec/spec_helper.rb +107 -11
- data/tasks/gem.rake +1 -53
- data/tasks/release.rake +7 -7
- data/tasks/retrieve.rake +1 -1
- data/tasks/spec.rake +1 -0
- data/tasks/ssl.rake +29 -0
- metadata +13 -10
- data/History.txt +0 -9
@@ -0,0 +1,527 @@
|
|
1
|
+
static struct errcodes {
|
2
|
+
int error_no;
|
3
|
+
const char *error_name;
|
4
|
+
const char *exception;
|
5
|
+
} errors [] = {
|
6
|
+
#ifdef ER_ABORTING_CONNECTION
|
7
|
+
{ ER_ABORTING_CONNECTION,
|
8
|
+
"ER_ABORTING_CONNECTION", "ConnectionError"},
|
9
|
+
#endif
|
10
|
+
#ifdef ER_NET_PACKET_TOO_LARGE
|
11
|
+
{ ER_NET_PACKET_TOO_LARGE,
|
12
|
+
"ER_NET_PACKET_TOO_LARGE", "ConnectionError"},
|
13
|
+
#endif
|
14
|
+
#ifdef ER_NET_READ_ERROR_FROM_PIPE
|
15
|
+
{ ER_NET_READ_ERROR_FROM_PIPE,
|
16
|
+
"ER_NET_READ_ERROR_FROM_PIPE", "ConnectionError"},
|
17
|
+
#endif
|
18
|
+
#ifdef ER_NET_FCNTL_ERROR
|
19
|
+
{ ER_NET_FCNTL_ERROR,
|
20
|
+
"ER_NET_FCNTL_ERROR", "ConnectionError"},
|
21
|
+
#endif
|
22
|
+
#ifdef ER_NET_PACKETS_OUT_OF_ORDER
|
23
|
+
{ ER_NET_PACKETS_OUT_OF_ORDER,
|
24
|
+
"ER_NET_PACKETS_OUT_OF_ORDER", "ConnectionError"},
|
25
|
+
#endif
|
26
|
+
#ifdef ER_NET_UNCOMPRESS_ERROR
|
27
|
+
{ ER_NET_UNCOMPRESS_ERROR,
|
28
|
+
"ER_NET_UNCOMPRESS_ERROR", "ConnectionError"},
|
29
|
+
#endif
|
30
|
+
#ifdef ER_NET_READ_ERROR
|
31
|
+
{ ER_NET_READ_ERROR,
|
32
|
+
"ER_NET_READ_ERROR", "ConnectionError"},
|
33
|
+
#endif
|
34
|
+
#ifdef ER_NET_READ_INTERRUPTED
|
35
|
+
{ ER_NET_READ_INTERRUPTED,
|
36
|
+
"ER_NET_READ_INTERRUPTED", "ConnectionError"},
|
37
|
+
#endif
|
38
|
+
#ifdef ER_NET_WRITE_INTERRUPTED
|
39
|
+
{ ER_NET_WRITE_INTERRUPTED,
|
40
|
+
"ER_NET_WRITE_INTERRUPTED", "ConnectionError"},
|
41
|
+
#endif
|
42
|
+
#ifdef ER_CON_COUNT_ERROR
|
43
|
+
{ ER_CON_COUNT_ERROR,
|
44
|
+
"ER_CON_COUNT_ERROR", "ConnectionError"},
|
45
|
+
#endif
|
46
|
+
#ifdef ER_BAD_HOST_ERROR
|
47
|
+
{ ER_BAD_HOST_ERROR,
|
48
|
+
"ER_BAD_HOST_ERROR", "ConnectionError"},
|
49
|
+
#endif
|
50
|
+
#ifdef ER_HANDSHAKE_ERROR
|
51
|
+
{ ER_HANDSHAKE_ERROR,
|
52
|
+
"ER_HANDSHAKE_ERROR", "ConnectionError"},
|
53
|
+
#endif
|
54
|
+
#ifdef ER_DBACCESS_DENIED_ERROR
|
55
|
+
{ ER_DBACCESS_DENIED_ERROR,
|
56
|
+
"ER_DBACCESS_DENIED_ERROR", "ConnectionError"},
|
57
|
+
#endif
|
58
|
+
#ifdef ER_ACCESS_DENIED_ERROR
|
59
|
+
{ ER_ACCESS_DENIED_ERROR,
|
60
|
+
"ER_ACCESS_DENIED_ERROR", "ConnectionError"},
|
61
|
+
#endif
|
62
|
+
#ifdef ER_UNKNOWN_COM_ERROR
|
63
|
+
{ ER_UNKNOWN_COM_ERROR,
|
64
|
+
"ER_UNKNOWN_COM_ERROR", "ConnectionError"},
|
65
|
+
#endif
|
66
|
+
#ifdef ER_SERVER_SHUTDOWN
|
67
|
+
{ ER_SERVER_SHUTDOWN,
|
68
|
+
"ER_SERVER_SHUTDOWN", "ConnectionError"},
|
69
|
+
#endif
|
70
|
+
#ifdef ER_FORCING_CLOSE
|
71
|
+
{ ER_FORCING_CLOSE,
|
72
|
+
"ER_FORCING_CLOSE", "ConnectionError"},
|
73
|
+
#endif
|
74
|
+
#ifdef ER_IPSOCK_ERROR
|
75
|
+
{ ER_IPSOCK_ERROR,
|
76
|
+
"ER_IPSOCK_ERROR", "ConnectionError"},
|
77
|
+
#endif
|
78
|
+
|
79
|
+
#ifdef ER_INVALID_USE_OF_NULL
|
80
|
+
{ ER_INVALID_USE_OF_NULL,
|
81
|
+
"ER_INVALID_USE_OF_NULL", "DataError"},
|
82
|
+
#endif
|
83
|
+
#ifdef ER_DIVISION_BY_ZERO
|
84
|
+
{ ER_DIVISION_BY_ZERO,
|
85
|
+
"ER_DIVISION_BY_ZERO", "DataError"},
|
86
|
+
#endif
|
87
|
+
#ifdef ER_ILLEGAL_VALUE_FOR_TYPE
|
88
|
+
{ ER_ILLEGAL_VALUE_FOR_TYPE,
|
89
|
+
"ER_ILLEGAL_VALUE_FOR_TYPE", "DataError"},
|
90
|
+
#endif
|
91
|
+
#ifdef ER_WARN_NULL_TO_NOTNULL
|
92
|
+
{ ER_WARN_NULL_TO_NOTNULL,
|
93
|
+
"ER_WARN_NULL_TO_NOTNULL", "DataError"},
|
94
|
+
#endif
|
95
|
+
#ifdef ER_WARN_DATA_OUT_OF_RANGE
|
96
|
+
{ ER_WARN_DATA_OUT_OF_RANGE,
|
97
|
+
"ER_WARN_DATA_OUT_OF_RANGE", "DataError"},
|
98
|
+
#endif
|
99
|
+
#ifdef ER_WARN_TOO_MANY_RECORDS
|
100
|
+
{ ER_WARN_TOO_MANY_RECORDS,
|
101
|
+
"ER_WARN_TOO_MANY_RECORDS", "DataError"},
|
102
|
+
#endif
|
103
|
+
#ifdef ER_WARN_TOO_FEW_RECORDS
|
104
|
+
{ ER_WARN_TOO_FEW_RECORDS,
|
105
|
+
"ER_WARN_TOO_FEW_RECORDS", "DataError"},
|
106
|
+
#endif
|
107
|
+
#ifdef ER_TRUNCATED_WRONG_VALUE
|
108
|
+
{ ER_TRUNCATED_WRONG_VALUE,
|
109
|
+
"ER_TRUNCATED_WRONG_VALUE", "DataError"},
|
110
|
+
#endif
|
111
|
+
#ifdef ER_DATETIME_FUNCTION_OVERFLOW
|
112
|
+
{ ER_DATETIME_FUNCTION_OVERFLOW,
|
113
|
+
"ER_DATETIME_FUNCTION_OVERFLOW", "DataError"},
|
114
|
+
#endif
|
115
|
+
#ifdef ER_DATA_TOO_LONG
|
116
|
+
{ ER_DATA_TOO_LONG,
|
117
|
+
"ER_DATA_TOO_LONG", "DataError"},
|
118
|
+
#endif
|
119
|
+
#ifdef ER_UNKNOWN_TIME_ZONE
|
120
|
+
{ ER_UNKNOWN_TIME_ZONE,
|
121
|
+
"ER_UNKNOWN_TIME_ZONE", "DataError"},
|
122
|
+
#endif
|
123
|
+
#ifdef ER_INVALID_CHARACTER_STRING
|
124
|
+
{ ER_INVALID_CHARACTER_STRING,
|
125
|
+
"ER_INVALID_CHARACTER_STRING", "DataError"},
|
126
|
+
#endif
|
127
|
+
#ifdef ER_WARN_INVALID_TIMESTAMP
|
128
|
+
{ ER_WARN_INVALID_TIMESTAMP,
|
129
|
+
"ER_WARN_INVALID_TIMESTAMP", "DataError"},
|
130
|
+
#endif
|
131
|
+
#ifdef ER_CANT_CREATE_GEOMETRY_OBJECT
|
132
|
+
{ ER_CANT_CREATE_GEOMETRY_OBJECT,
|
133
|
+
"ER_CANT_CREATE_GEOMETRY_OBJECT", "DataError"},
|
134
|
+
#endif
|
135
|
+
|
136
|
+
#ifdef ER_BAD_NULL_ERROR
|
137
|
+
{ ER_BAD_NULL_ERROR,
|
138
|
+
"ER_BAD_NULL_ERROR", "IntegrityError"},
|
139
|
+
#endif
|
140
|
+
#ifdef ER_NON_UNIQ_ERROR
|
141
|
+
{ ER_NON_UNIQ_ERROR,
|
142
|
+
"ER_NON_UNIQ_ERROR", "IntegrityError"},
|
143
|
+
#endif
|
144
|
+
#ifdef ER_DUP_KEY
|
145
|
+
{ ER_DUP_KEY,
|
146
|
+
"ER_DUP_KEY", "IntegrityError"},
|
147
|
+
#endif
|
148
|
+
#ifdef ER_DUP_ENTRY
|
149
|
+
{ ER_DUP_ENTRY,
|
150
|
+
"ER_DUP_ENTRY", "IntegrityError"},
|
151
|
+
#endif
|
152
|
+
#ifdef ER_DUP_UNIQUE
|
153
|
+
{ ER_DUP_UNIQUE,
|
154
|
+
"ER_DUP_UNIQUE", "IntegrityError"},
|
155
|
+
#endif
|
156
|
+
#ifdef ER_NO_REFERENCED_ROW
|
157
|
+
{ ER_NO_REFERENCED_ROW,
|
158
|
+
"ER_NO_REFERENCED_ROW", "IntegrityError"},
|
159
|
+
#endif
|
160
|
+
#ifdef ER_NO_REFERENCED_ROW_2
|
161
|
+
{ ER_NO_REFERENCED_ROW_2,
|
162
|
+
"ER_NO_REFERENCED_ROW_2", "IntegrityError"},
|
163
|
+
#endif
|
164
|
+
#ifdef ER_ROW_IS_REFERENCED
|
165
|
+
{ ER_ROW_IS_REFERENCED,
|
166
|
+
"ER_ROW_IS_REFERENCED", "IntegrityError"},
|
167
|
+
#endif
|
168
|
+
#ifdef ER_ROW_IS_REFERENCED_2
|
169
|
+
{ ER_ROW_IS_REFERENCED_2,
|
170
|
+
"ER_ROW_IS_REFERENCED_2", "IntegrityError"},
|
171
|
+
#endif
|
172
|
+
|
173
|
+
#ifdef ER_BLOB_KEY_WITHOUT_LENGTH
|
174
|
+
{ ER_BLOB_KEY_WITHOUT_LENGTH,
|
175
|
+
"ER_BLOB_KEY_WITHOUT_LENGTH", "SyntaxError"},
|
176
|
+
#endif
|
177
|
+
#ifdef ER_PRIMARY_CANT_HAVE_NULL
|
178
|
+
{ ER_PRIMARY_CANT_HAVE_NULL,
|
179
|
+
"ER_PRIMARY_CANT_HAVE_NULL", "SyntaxError"},
|
180
|
+
#endif
|
181
|
+
#ifdef ER_TOO_MANY_ROWS
|
182
|
+
{ ER_TOO_MANY_ROWS,
|
183
|
+
"ER_TOO_MANY_ROWS", "SyntaxError"},
|
184
|
+
#endif
|
185
|
+
#ifdef ER_REQUIRES_PRIMARY_KEY
|
186
|
+
{ ER_REQUIRES_PRIMARY_KEY,
|
187
|
+
"ER_REQUIRES_PRIMARY_KEY", "SyntaxError"},
|
188
|
+
#endif
|
189
|
+
#ifdef ER_CHECK_NO_SUCH_TABLE
|
190
|
+
{ ER_CHECK_NO_SUCH_TABLE,
|
191
|
+
"ER_CHECK_NO_SUCH_TABLE", "SyntaxError"},
|
192
|
+
#endif
|
193
|
+
#ifdef ER_CHECK_NOT_IMPLEMENTED
|
194
|
+
{ ER_CHECK_NOT_IMPLEMENTED,
|
195
|
+
"ER_CHECK_NOT_IMPLEMENTED", "SyntaxError"},
|
196
|
+
#endif
|
197
|
+
#ifdef ER_TOO_MANY_USER_CONNECTIONS
|
198
|
+
{ ER_TOO_MANY_USER_CONNECTIONS,
|
199
|
+
"ER_TOO_MANY_USER_CONNECTIONS", "SyntaxError"},
|
200
|
+
#endif
|
201
|
+
#ifdef ER_NO_PERMISSION_TO_CREATE_USER
|
202
|
+
{ ER_NO_PERMISSION_TO_CREATE_USER,
|
203
|
+
"ER_NO_PERMISSION_TO_CREATE_USER", "SyntaxError"},
|
204
|
+
#endif
|
205
|
+
#ifdef ER_USER_LIMIT_REACHED
|
206
|
+
{ ER_USER_LIMIT_REACHED,
|
207
|
+
"ER_USER_LIMIT_REACHED", "SyntaxError"},
|
208
|
+
#endif
|
209
|
+
#ifdef ER_SPECIFIC_ACCESS_DENIED_ERROR
|
210
|
+
{ ER_SPECIFIC_ACCESS_DENIED_ERROR,
|
211
|
+
"ER_SPECIFIC_ACCESS_DENIED_ERROR", "SyntaxError"},
|
212
|
+
#endif
|
213
|
+
#ifdef ER_NO_DEFAULT
|
214
|
+
{ ER_NO_DEFAULT,
|
215
|
+
"ER_NO_DEFAULT", "SyntaxError"},
|
216
|
+
#endif
|
217
|
+
#ifdef ER_WRONG_VALUE_FOR_VAR
|
218
|
+
{ ER_WRONG_VALUE_FOR_VAR,
|
219
|
+
"ER_WRONG_VALUE_FOR_VAR", "SyntaxError"},
|
220
|
+
#endif
|
221
|
+
#ifdef ER_WRONG_TYPE_FOR_VAR
|
222
|
+
{ ER_WRONG_TYPE_FOR_VAR,
|
223
|
+
"ER_WRONG_TYPE_FOR_VAR", "SyntaxError"},
|
224
|
+
#endif
|
225
|
+
#ifdef ER_CANT_USE_OPTION_HERE
|
226
|
+
{ ER_CANT_USE_OPTION_HERE,
|
227
|
+
"ER_CANT_USE_OPTION_HERE", "SyntaxError"},
|
228
|
+
#endif
|
229
|
+
#ifdef ER_NOT_SUPPORTED_YET
|
230
|
+
{ ER_NOT_SUPPORTED_YET,
|
231
|
+
"ER_NOT_SUPPORTED_YET", "SyntaxError"},
|
232
|
+
#endif
|
233
|
+
#ifdef ER_WRONG_FK_DEF
|
234
|
+
{ ER_WRONG_FK_DEF,
|
235
|
+
"ER_WRONG_FK_DEF", "SyntaxError"},
|
236
|
+
#endif
|
237
|
+
#ifdef ER_ILLEGAL_REFERENCE
|
238
|
+
{ ER_ILLEGAL_REFERENCE,
|
239
|
+
"ER_ILLEGAL_REFERENCE", "SyntaxError"},
|
240
|
+
#endif
|
241
|
+
#ifdef ER_DERIVED_MUST_HAVE_ALIAS
|
242
|
+
{ ER_DERIVED_MUST_HAVE_ALIAS,
|
243
|
+
"ER_DERIVED_MUST_HAVE_ALIAS", "SyntaxError"},
|
244
|
+
#endif
|
245
|
+
#ifdef ER_TABLENAME_NOT_ALLOWED_HERE
|
246
|
+
{ ER_TABLENAME_NOT_ALLOWED_HERE,
|
247
|
+
"ER_TABLENAME_NOT_ALLOWED_HERE", "SyntaxError"},
|
248
|
+
#endif
|
249
|
+
#ifdef ER_SPATIAL_CANT_HAVE_NULL
|
250
|
+
{ ER_SPATIAL_CANT_HAVE_NULL,
|
251
|
+
"ER_SPATIAL_CANT_HAVE_NULL", "SyntaxError"},
|
252
|
+
#endif
|
253
|
+
#ifdef ER_COLLATION_CHARSET_MISMATCH
|
254
|
+
{ ER_COLLATION_CHARSET_MISMATCH,
|
255
|
+
"ER_COLLATION_CHARSET_MISMATCH", "SyntaxError"},
|
256
|
+
#endif
|
257
|
+
#ifdef ER_WRONG_NAME_FOR_INDEX
|
258
|
+
{ ER_WRONG_NAME_FOR_INDEX,
|
259
|
+
"ER_WRONG_NAME_FOR_INDEX", "SyntaxError"},
|
260
|
+
#endif
|
261
|
+
#ifdef ER_WRONG_NAME_FOR_CATALOG
|
262
|
+
{ ER_WRONG_NAME_FOR_CATALOG,
|
263
|
+
"ER_WRONG_NAME_FOR_CATALOG", "SyntaxError"},
|
264
|
+
#endif
|
265
|
+
#ifdef ER_UNKNOWN_STORAGE_ENGINE
|
266
|
+
{ ER_UNKNOWN_STORAGE_ENGINE,
|
267
|
+
"ER_UNKNOWN_STORAGE_ENGINE", "SyntaxError"},
|
268
|
+
#endif
|
269
|
+
#ifdef ER_SP_ALREADY_EXISTS
|
270
|
+
{ ER_SP_ALREADY_EXISTS,
|
271
|
+
"ER_SP_ALREADY_EXISTS", "SyntaxError"},
|
272
|
+
#endif
|
273
|
+
#ifdef ER_SP_DOES_NOT_EXIST
|
274
|
+
{ ER_SP_DOES_NOT_EXIST,
|
275
|
+
"ER_SP_DOES_NOT_EXIST", "SyntaxError"},
|
276
|
+
#endif
|
277
|
+
#ifdef ER_SP_LILABEL_MISMATCH
|
278
|
+
{ ER_SP_LILABEL_MISMATCH,
|
279
|
+
"ER_SP_LILABEL_MISMATCH", "SyntaxError"},
|
280
|
+
#endif
|
281
|
+
#ifdef ER_SP_LABEL_REDEFINE
|
282
|
+
{ ER_SP_LABEL_REDEFINE,
|
283
|
+
"ER_SP_LABEL_REDEFINE", "SyntaxError"},
|
284
|
+
#endif
|
285
|
+
#ifdef ER_SP_LABEL_MISMATCH
|
286
|
+
{ ER_SP_LABEL_MISMATCH,
|
287
|
+
"ER_SP_LABEL_MISMATCH", "SyntaxError"},
|
288
|
+
#endif
|
289
|
+
#ifdef ER_SP_BADRETURN
|
290
|
+
{ ER_SP_BADRETURN,
|
291
|
+
"ER_SP_BADRETURN", "SyntaxError"},
|
292
|
+
#endif
|
293
|
+
#ifdef ER_SP_WRONG_NO_OF_ARGS
|
294
|
+
{ ER_SP_WRONG_NO_OF_ARGS,
|
295
|
+
"ER_SP_WRONG_NO_OF_ARGS", "SyntaxError"},
|
296
|
+
#endif
|
297
|
+
#ifdef ER_SP_COND_MISMATCH
|
298
|
+
{ ER_SP_COND_MISMATCH,
|
299
|
+
"ER_SP_COND_MISMATCH", "SyntaxError"},
|
300
|
+
#endif
|
301
|
+
#ifdef ER_SP_NORETURN
|
302
|
+
{ ER_SP_NORETURN,
|
303
|
+
"ER_SP_NORETURN", "SyntaxError"},
|
304
|
+
#endif
|
305
|
+
#ifdef ER_SP_BAD_CURSOR_QUERY
|
306
|
+
{ ER_SP_BAD_CURSOR_QUERY,
|
307
|
+
"ER_SP_BAD_CURSOR_QUERY", "SyntaxError"},
|
308
|
+
#endif
|
309
|
+
#ifdef ER_SP_BAD_CURSOR_SELECT
|
310
|
+
{ ER_SP_BAD_CURSOR_SELECT,
|
311
|
+
"ER_SP_BAD_CURSOR_SELECT", "SyntaxError"},
|
312
|
+
#endif
|
313
|
+
#ifdef ER_SP_CURSOR_MISMATCH
|
314
|
+
{ ER_SP_CURSOR_MISMATCH,
|
315
|
+
"ER_SP_CURSOR_MISMATCH", "SyntaxError"},
|
316
|
+
#endif
|
317
|
+
#ifdef ER_SP_UNDECLARED_VAR
|
318
|
+
{ ER_SP_UNDECLARED_VAR,
|
319
|
+
"ER_SP_UNDECLARED_VAR", "SyntaxError"},
|
320
|
+
#endif
|
321
|
+
#ifdef ER_SP_DUP_PARAM
|
322
|
+
{ ER_SP_DUP_PARAM,
|
323
|
+
"ER_SP_DUP_PARAM", "SyntaxError"},
|
324
|
+
#endif
|
325
|
+
#ifdef ER_SP_DUP_VAR
|
326
|
+
{ ER_SP_DUP_VAR,
|
327
|
+
"ER_SP_DUP_VAR", "SyntaxError"},
|
328
|
+
#endif
|
329
|
+
#ifdef ER_SP_DUP_COND
|
330
|
+
{ ER_SP_DUP_COND,
|
331
|
+
"ER_SP_DUP_COND", "SyntaxError"},
|
332
|
+
#endif
|
333
|
+
#ifdef ER_SP_DUP_CURS
|
334
|
+
{ ER_SP_DUP_CURS,
|
335
|
+
"ER_SP_DUP_CURS", "SyntaxError"},
|
336
|
+
#endif
|
337
|
+
#ifdef ER_SP_VARCOND_AFTER_CURSHNDLR
|
338
|
+
{ ER_SP_VARCOND_AFTER_CURSHNDLR,
|
339
|
+
"ER_SP_VARCOND_AFTER_CURSHNDLR", "SyntaxError"},
|
340
|
+
#endif
|
341
|
+
#ifdef ER_SP_CURSOR_AFTER_HANDLER
|
342
|
+
{ ER_SP_CURSOR_AFTER_HANDLER,
|
343
|
+
"ER_SP_CURSOR_AFTER_HANDLER", "SyntaxError"},
|
344
|
+
#endif
|
345
|
+
#ifdef ER_SP_CASE_NOT_FOUND
|
346
|
+
{ ER_SP_CASE_NOT_FOUND,
|
347
|
+
"ER_SP_CASE_NOT_FOUND", "SyntaxError"},
|
348
|
+
#endif
|
349
|
+
#ifdef ER_PROCACCESS_DENIED_ERROR
|
350
|
+
{ ER_PROCACCESS_DENIED_ERROR,
|
351
|
+
"ER_PROCACCESS_DENIED_ERROR", "SyntaxError"},
|
352
|
+
#endif
|
353
|
+
#ifdef ER_NONEXISTING_PROC_GRANT
|
354
|
+
{ ER_NONEXISTING_PROC_GRANT,
|
355
|
+
"ER_NONEXISTING_PROC_GRANT", "SyntaxError"},
|
356
|
+
#endif
|
357
|
+
#ifdef ER_SP_BAD_SQLSTATE
|
358
|
+
{ ER_SP_BAD_SQLSTATE,
|
359
|
+
"ER_SP_BAD_SQLSTATE", "SyntaxError"},
|
360
|
+
#endif
|
361
|
+
#ifdef ER_CANT_CREATE_USER_WITH_GRANT
|
362
|
+
{ ER_CANT_CREATE_USER_WITH_GRANT,
|
363
|
+
"ER_CANT_CREATE_USER_WITH_GRANT", "SyntaxError"},
|
364
|
+
#endif
|
365
|
+
#ifdef ER_SP_DUP_HANDLER
|
366
|
+
{ ER_SP_DUP_HANDLER,
|
367
|
+
"ER_SP_DUP_HANDLER", "SyntaxError"},
|
368
|
+
#endif
|
369
|
+
#ifdef ER_SP_NOT_VAR_ARG
|
370
|
+
{ ER_SP_NOT_VAR_ARG,
|
371
|
+
"ER_SP_NOT_VAR_ARG", "SyntaxError"},
|
372
|
+
#endif
|
373
|
+
#ifdef ER_TOO_BIG_SCALE
|
374
|
+
{ ER_TOO_BIG_SCALE,
|
375
|
+
"ER_TOO_BIG_SCALE", "SyntaxError"},
|
376
|
+
#endif
|
377
|
+
#ifdef ER_TOO_BIG_PRECISION
|
378
|
+
{ ER_TOO_BIG_PRECISION,
|
379
|
+
"ER_TOO_BIG_PRECISION", "SyntaxError"},
|
380
|
+
#endif
|
381
|
+
#ifdef ER_M_BIGGER_THAN_D
|
382
|
+
{ ER_M_BIGGER_THAN_D,
|
383
|
+
"ER_M_BIGGER_THAN_D", "SyntaxError"},
|
384
|
+
#endif
|
385
|
+
#ifdef ER_TOO_LONG_BODY
|
386
|
+
{ ER_TOO_LONG_BODY,
|
387
|
+
"ER_TOO_LONG_BODY", "SyntaxError"},
|
388
|
+
#endif
|
389
|
+
#ifdef ER_TOO_BIG_DISPLAYWIDTH
|
390
|
+
{ ER_TOO_BIG_DISPLAYWIDTH,
|
391
|
+
"ER_TOO_BIG_DISPLAYWIDTH", "SyntaxError"},
|
392
|
+
#endif
|
393
|
+
#ifdef ER_SP_BAD_VAR_SHADOW
|
394
|
+
{ ER_SP_BAD_VAR_SHADOW,
|
395
|
+
"ER_SP_BAD_VAR_SHADOW", "SyntaxError"},
|
396
|
+
#endif
|
397
|
+
#ifdef ER_SP_WRONG_NAME
|
398
|
+
{ ER_SP_WRONG_NAME,
|
399
|
+
"ER_SP_WRONG_NAME", "SyntaxError"},
|
400
|
+
#endif
|
401
|
+
#ifdef ER_SP_NO_AGGREGATE
|
402
|
+
{ ER_SP_NO_AGGREGATE,
|
403
|
+
"ER_SP_NO_AGGREGATE", "SyntaxError"},
|
404
|
+
#endif
|
405
|
+
#ifdef ER_MAX_PREPARED_STMT_COUNT_REACHED
|
406
|
+
{ ER_MAX_PREPARED_STMT_COUNT_REACHED,
|
407
|
+
"ER_MAX_PREPARED_STMT_COUNT_REACHED", "SyntaxError"},
|
408
|
+
#endif
|
409
|
+
#ifdef ER_NON_GROUPING_FIELD_USED
|
410
|
+
{ ER_NON_GROUPING_FIELD_USED,
|
411
|
+
"ER_NON_GROUPING_FIELD_USED", "SyntaxError"},
|
412
|
+
#endif
|
413
|
+
#ifdef ER_BAD_DB_ERROR
|
414
|
+
{ ER_BAD_DB_ERROR,
|
415
|
+
"ER_BAD_DB_ERROR", "SyntaxError"},
|
416
|
+
#endif
|
417
|
+
#ifdef ER_TABLE_EXISTS_ERROR
|
418
|
+
{ ER_TABLE_EXISTS_ERROR,
|
419
|
+
"ER_TABLE_EXISTS_ERROR", "SyntaxError"},
|
420
|
+
#endif
|
421
|
+
#ifdef ER_BAD_TABLE_ERROR
|
422
|
+
{ ER_BAD_TABLE_ERROR,
|
423
|
+
"ER_BAD_TABLE_ERROR", "SyntaxError"},
|
424
|
+
#endif
|
425
|
+
#ifdef ER_NO_SUCH_TABLE
|
426
|
+
{ ER_NO_SUCH_TABLE,
|
427
|
+
"ER_NO_SUCH_TABLE", "SyntaxError"},
|
428
|
+
#endif
|
429
|
+
#ifdef ER_NONEXISTING_TABLE_GRANT
|
430
|
+
{ ER_NONEXISTING_TABLE_GRANT,
|
431
|
+
"ER_NONEXISTING_TABLE_GRANT", "SyntaxError"},
|
432
|
+
#endif
|
433
|
+
#ifdef ER_GRANT_WRONG_HOST_OR_USER
|
434
|
+
{ ER_GRANT_WRONG_HOST_OR_USER,
|
435
|
+
"ER_GRANT_WRONG_HOST_OR_USER", "SyntaxError"},
|
436
|
+
#endif
|
437
|
+
#ifdef ER_ILLEGAL_GRANT_FOR_TABLE
|
438
|
+
{ ER_ILLEGAL_GRANT_FOR_TABLE,
|
439
|
+
"ER_ILLEGAL_GRANT_FOR_TABLE", "SyntaxError"},
|
440
|
+
#endif
|
441
|
+
#ifdef ER_COLUMNACCESS_DENIED_ERROR
|
442
|
+
{ ER_COLUMNACCESS_DENIED_ERROR,
|
443
|
+
"ER_COLUMNACCESS_DENIED_ERROR", "SyntaxError"},
|
444
|
+
#endif
|
445
|
+
#ifdef ER_TABLEACCESS_DENIED_ERROR
|
446
|
+
{ ER_TABLEACCESS_DENIED_ERROR,
|
447
|
+
"ER_TABLEACCESS_DENIED_ERROR", "SyntaxError"},
|
448
|
+
#endif
|
449
|
+
#ifdef ER_NONEXISTING_GRANT
|
450
|
+
{ ER_NONEXISTING_GRANT,
|
451
|
+
"ER_NONEXISTING_GRANT", "SyntaxError"},
|
452
|
+
#endif
|
453
|
+
#ifdef ER_MIX_OF_GROUP_FUNC_AND_FIELDS
|
454
|
+
{ ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
|
455
|
+
"ER_MIX_OF_GROUP_FUNC_AND_FIELDS", "SyntaxError"},
|
456
|
+
#endif
|
457
|
+
#ifdef ER_REGEXP_ERROR
|
458
|
+
{ ER_REGEXP_ERROR,
|
459
|
+
"ER_REGEXP_ERROR", "SyntaxError"},
|
460
|
+
#endif
|
461
|
+
#ifdef ER_NOT_ALLOWED_COMMAND
|
462
|
+
{ ER_NOT_ALLOWED_COMMAND,
|
463
|
+
"ER_NOT_ALLOWED_COMMAND", "SyntaxError"},
|
464
|
+
#endif
|
465
|
+
#ifdef ER_SYNTAX_ERROR
|
466
|
+
{ ER_SYNTAX_ERROR,
|
467
|
+
"ER_SYNTAX_ERROR", "SyntaxError"},
|
468
|
+
#endif
|
469
|
+
#ifdef ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT
|
470
|
+
{ ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
|
471
|
+
"ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT", "SyntaxError"},
|
472
|
+
#endif
|
473
|
+
|
474
|
+
#ifdef ER_CANT_DO_THIS_DURING_AN_TRANSACTION
|
475
|
+
{ ER_CANT_DO_THIS_DURING_AN_TRANSACTION,
|
476
|
+
"ER_CANT_DO_THIS_DURING_AN_TRANSACTION", "TransactionError"},
|
477
|
+
#endif
|
478
|
+
#ifdef ER_ERROR_DURING_COMMIT
|
479
|
+
{ ER_ERROR_DURING_COMMIT,
|
480
|
+
"ER_ERROR_DURING_COMMIT", "TransactionError"},
|
481
|
+
#endif
|
482
|
+
#ifdef ER_ERROR_DURING_ROLLBACK
|
483
|
+
{ ER_ERROR_DURING_ROLLBACK,
|
484
|
+
"ER_ERROR_DURING_ROLLBACK", "TransactionError"},
|
485
|
+
#endif
|
486
|
+
#ifdef ER_ERROR_DURING_CHECKPOINT
|
487
|
+
{ ER_ERROR_DURING_CHECKPOINT,
|
488
|
+
"ER_ERROR_DURING_CHECKPOINT", "TransactionError"},
|
489
|
+
#endif
|
490
|
+
#ifdef ER_LOCK_DEADLOCK
|
491
|
+
{ ER_LOCK_DEADLOCK,
|
492
|
+
"ER_LOCK_DEADLOCK", "TransactionError"},
|
493
|
+
#endif
|
494
|
+
#ifdef ER_XAER_NOTA
|
495
|
+
{ ER_XAER_NOTA,
|
496
|
+
"ER_XAER_NOTA", "TransactionError"},
|
497
|
+
#endif
|
498
|
+
#ifdef ER_XAER_INVAL
|
499
|
+
{ ER_XAER_INVAL,
|
500
|
+
"ER_XAER_INVAL", "TransactionError"},
|
501
|
+
#endif
|
502
|
+
#ifdef ER_XAER_RMFAIL
|
503
|
+
{ ER_XAER_RMFAIL,
|
504
|
+
"ER_XAER_RMFAIL", "TransactionError"},
|
505
|
+
#endif
|
506
|
+
#ifdef ER_XAER_OUTSIDE
|
507
|
+
{ ER_XAER_OUTSIDE,
|
508
|
+
"ER_XAER_OUTSIDE", "TransactionError"},
|
509
|
+
#endif
|
510
|
+
#ifdef ER_XAER_RMERR
|
511
|
+
{ ER_XAER_RMERR,
|
512
|
+
"ER_XAER_RMERR", "TransactionError"},
|
513
|
+
#endif
|
514
|
+
#ifdef ER_XA_RBROLLBACK
|
515
|
+
{ ER_XA_RBROLLBACK,
|
516
|
+
"ER_XA_RBROLLBACK", "TransactionError"},
|
517
|
+
#endif
|
518
|
+
#ifdef ER_XA_RBTIMEOUT
|
519
|
+
{ ER_XA_RBTIMEOUT,
|
520
|
+
"ER_XA_RBTIMEOUT", "TransactionError"},
|
521
|
+
#endif
|
522
|
+
#ifdef ER_XA_RBDEADLOCK
|
523
|
+
{ ER_XA_RBDEADLOCK,
|
524
|
+
"ER_XA_RBDEADLOCK", "TransactionError"},
|
525
|
+
#endif
|
526
|
+
{0, NULL, NULL}
|
527
|
+
};
|