do_postgres 0.9.12-x86-mswin32-60 → 0.10.0-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,483 @@
1
+ static struct errcodes {
2
+ int error_no;
3
+ const char *error_name;
4
+ const char *exception;
5
+ } errors [] = {
6
+ #ifdef ERRCODE_CONNECTION_EXCEPTION
7
+ { ERRCODE_CONNECTION_EXCEPTION,
8
+ "ERRCODE_CONNECTION_EXCEPTION", "ConnectionError"},
9
+ #endif
10
+ #ifdef ERRCODE_CONNECTION_DOES_NOT_EXIST
11
+ { ERRCODE_CONNECTION_DOES_NOT_EXIST,
12
+ "ERRCODE_CONNECTION_DOES_NOT_EXIST", "ConnectionError"},
13
+ #endif
14
+ #ifdef ERRCODE_CONNECTION_FAILURE
15
+ { ERRCODE_CONNECTION_FAILURE,
16
+ "ERRCODE_CONNECTION_FAILURE", "ConnectionError"},
17
+ #endif
18
+ #ifdef ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION
19
+ { ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION,
20
+ "ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION", "ConnectionError"},
21
+ #endif
22
+ #ifdef ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION
23
+ { ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION,
24
+ "ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION", "ConnectionError"},
25
+ #endif
26
+ #ifdef ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN
27
+ { ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN,
28
+ "ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN", "ConnectionError"},
29
+ #endif
30
+ #ifdef ERRCODE_PROTOCOL_VIOLATION
31
+ { ERRCODE_PROTOCOL_VIOLATION,
32
+ "ERRCODE_PROTOCOL_VIOLATION", "ConnectionError"},
33
+ #endif
34
+
35
+ #ifdef ERRCODE_DATA_EXCEPTION
36
+ { ERRCODE_DATA_EXCEPTION,
37
+ "ERRCODE_DATA_EXCEPTION", "DataError"},
38
+ #endif
39
+ #ifdef ERRCODE_ARRAY_ELEMENT_ERROR
40
+ { ERRCODE_ARRAY_ELEMENT_ERROR,
41
+ "ERRCODE_ARRAY_ELEMENT_ERROR", "DataError"},
42
+ #endif
43
+ #ifdef ERRCODE_ARRAY_SUBSCRIPT_ERROR
44
+ { ERRCODE_ARRAY_SUBSCRIPT_ERROR,
45
+ "ERRCODE_ARRAY_SUBSCRIPT_ERROR", "DataError"},
46
+ #endif
47
+ #ifdef ERRCODE_CHARACTER_NOT_IN_REPERTOIRE
48
+ { ERRCODE_CHARACTER_NOT_IN_REPERTOIRE,
49
+ "ERRCODE_CHARACTER_NOT_IN_REPERTOIRE", "DataError"},
50
+ #endif
51
+ #ifdef ERRCODE_DATETIME_FIELD_OVERFLOW
52
+ { ERRCODE_DATETIME_FIELD_OVERFLOW,
53
+ "ERRCODE_DATETIME_FIELD_OVERFLOW", "DataError"},
54
+ #endif
55
+ #ifdef ERRCODE_DATETIME_VALUE_OUT_OF_RANGE
56
+ { ERRCODE_DATETIME_VALUE_OUT_OF_RANGE,
57
+ "ERRCODE_DATETIME_VALUE_OUT_OF_RANGE", "DataError"},
58
+ #endif
59
+ #ifdef ERRCODE_DIVISION_BY_ZERO
60
+ { ERRCODE_DIVISION_BY_ZERO,
61
+ "ERRCODE_DIVISION_BY_ZERO", "DataError"},
62
+ #endif
63
+ #ifdef ERRCODE_ERROR_IN_ASSIGNMENT
64
+ { ERRCODE_ERROR_IN_ASSIGNMENT,
65
+ "ERRCODE_ERROR_IN_ASSIGNMENT", "DataError"},
66
+ #endif
67
+ #ifdef ERRCODE_ESCAPE_CHARACTER_CONFLICT
68
+ { ERRCODE_ESCAPE_CHARACTER_CONFLICT,
69
+ "ERRCODE_ESCAPE_CHARACTER_CONFLICT", "DataError"},
70
+ #endif
71
+ #ifdef ERRCODE_INDICATOR_OVERFLOW
72
+ { ERRCODE_INDICATOR_OVERFLOW,
73
+ "ERRCODE_INDICATOR_OVERFLOW", "DataError"},
74
+ #endif
75
+ #ifdef ERRCODE_INTERVAL_FIELD_OVERFLOW
76
+ { ERRCODE_INTERVAL_FIELD_OVERFLOW,
77
+ "ERRCODE_INTERVAL_FIELD_OVERFLOW", "DataError"},
78
+ #endif
79
+ #ifdef ERRCODE_INVALID_ARGUMENT_FOR_LOG
80
+ { ERRCODE_INVALID_ARGUMENT_FOR_LOG,
81
+ "ERRCODE_INVALID_ARGUMENT_FOR_LOG", "DataError"},
82
+ #endif
83
+ #ifdef ERRCODE_INVALID_ARGUMENT_FOR_NTILE
84
+ { ERRCODE_INVALID_ARGUMENT_FOR_NTILE,
85
+ "ERRCODE_INVALID_ARGUMENT_FOR_NTILE", "DataError"},
86
+ #endif
87
+ #ifdef ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE
88
+ { ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE,
89
+ "ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE", "DataError"},
90
+ #endif
91
+ #ifdef ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION
92
+ { ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION,
93
+ "ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION", "DataError"},
94
+ #endif
95
+ #ifdef ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION
96
+ { ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION,
97
+ "ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION", "DataError"},
98
+ #endif
99
+ #ifdef ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST
100
+ { ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST,
101
+ "ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST", "DataError"},
102
+ #endif
103
+ #ifdef ERRCODE_INVALID_DATETIME_FORMAT
104
+ { ERRCODE_INVALID_DATETIME_FORMAT,
105
+ "ERRCODE_INVALID_DATETIME_FORMAT", "DataError"},
106
+ #endif
107
+ #ifdef ERRCODE_INVALID_ESCAPE_CHARACTER
108
+ { ERRCODE_INVALID_ESCAPE_CHARACTER,
109
+ "ERRCODE_INVALID_ESCAPE_CHARACTER", "DataError"},
110
+ #endif
111
+ #ifdef ERRCODE_INVALID_ESCAPE_OCTET
112
+ { ERRCODE_INVALID_ESCAPE_OCTET,
113
+ "ERRCODE_INVALID_ESCAPE_OCTET", "DataError"},
114
+ #endif
115
+ #ifdef ERRCODE_INVALID_ESCAPE_SEQUENCE
116
+ { ERRCODE_INVALID_ESCAPE_SEQUENCE,
117
+ "ERRCODE_INVALID_ESCAPE_SEQUENCE", "DataError"},
118
+ #endif
119
+ #ifdef ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER
120
+ { ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER,
121
+ "ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER", "DataError"},
122
+ #endif
123
+ #ifdef ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE
124
+ { ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE,
125
+ "ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE", "DataError"},
126
+ #endif
127
+ #ifdef ERRCODE_INVALID_LIMIT_VALUE
128
+ { ERRCODE_INVALID_LIMIT_VALUE,
129
+ "ERRCODE_INVALID_LIMIT_VALUE", "DataError"},
130
+ #endif
131
+ #ifdef ERRCODE_INVALID_PARAMETER_VALUE
132
+ { ERRCODE_INVALID_PARAMETER_VALUE,
133
+ "ERRCODE_INVALID_PARAMETER_VALUE", "DataError"},
134
+ #endif
135
+ #ifdef ERRCODE_INVALID_REGULAR_EXPRESSION
136
+ { ERRCODE_INVALID_REGULAR_EXPRESSION,
137
+ "ERRCODE_INVALID_REGULAR_EXPRESSION", "DataError"},
138
+ #endif
139
+ #ifdef ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE
140
+ { ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE,
141
+ "ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE", "DataError"},
142
+ #endif
143
+ #ifdef ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER
144
+ { ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER,
145
+ "ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER", "DataError"},
146
+ #endif
147
+ #ifdef ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH
148
+ { ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH,
149
+ "ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH", "DataError"},
150
+ #endif
151
+ #ifdef ERRCODE_NULL_VALUE_NOT_ALLOWED
152
+ { ERRCODE_NULL_VALUE_NOT_ALLOWED,
153
+ "ERRCODE_NULL_VALUE_NOT_ALLOWED", "DataError"},
154
+ #endif
155
+ #ifdef ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER
156
+ { ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER,
157
+ "ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER", "DataError"},
158
+ #endif
159
+ #ifdef ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
160
+ { ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,
161
+ "ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE", "DataError"},
162
+ #endif
163
+ #ifdef ERRCODE_STRING_DATA_LENGTH_MISMATCH
164
+ { ERRCODE_STRING_DATA_LENGTH_MISMATCH,
165
+ "ERRCODE_STRING_DATA_LENGTH_MISMATCH", "DataError"},
166
+ #endif
167
+ #ifdef ERRCODE_STRING_DATA_RIGHT_TRUNCATION
168
+ { ERRCODE_STRING_DATA_RIGHT_TRUNCATION,
169
+ "ERRCODE_STRING_DATA_RIGHT_TRUNCATION", "DataError"},
170
+ #endif
171
+ #ifdef ERRCODE_SUBSTRING_ERROR
172
+ { ERRCODE_SUBSTRING_ERROR,
173
+ "ERRCODE_SUBSTRING_ERROR", "DataError"},
174
+ #endif
175
+ #ifdef ERRCODE_TRIM_ERROR
176
+ { ERRCODE_TRIM_ERROR,
177
+ "ERRCODE_TRIM_ERROR", "DataError"},
178
+ #endif
179
+ #ifdef ERRCODE_UNTERMINATED_C_STRING
180
+ { ERRCODE_UNTERMINATED_C_STRING,
181
+ "ERRCODE_UNTERMINATED_C_STRING", "DataError"},
182
+ #endif
183
+ #ifdef ERRCODE_ZERO_LENGTH_CHARACTER_STRING
184
+ { ERRCODE_ZERO_LENGTH_CHARACTER_STRING,
185
+ "ERRCODE_ZERO_LENGTH_CHARACTER_STRING", "DataError"},
186
+ #endif
187
+ #ifdef ERRCODE_FLOATING_POINT_EXCEPTION
188
+ { ERRCODE_FLOATING_POINT_EXCEPTION,
189
+ "ERRCODE_FLOATING_POINT_EXCEPTION", "DataError"},
190
+ #endif
191
+ #ifdef ERRCODE_INVALID_TEXT_REPRESENTATION
192
+ { ERRCODE_INVALID_TEXT_REPRESENTATION,
193
+ "ERRCODE_INVALID_TEXT_REPRESENTATION", "DataError"},
194
+ #endif
195
+ #ifdef ERRCODE_INVALID_BINARY_REPRESENTATION
196
+ { ERRCODE_INVALID_BINARY_REPRESENTATION,
197
+ "ERRCODE_INVALID_BINARY_REPRESENTATION", "DataError"},
198
+ #endif
199
+ #ifdef ERRCODE_BAD_COPY_FILE_FORMAT
200
+ { ERRCODE_BAD_COPY_FILE_FORMAT,
201
+ "ERRCODE_BAD_COPY_FILE_FORMAT", "DataError"},
202
+ #endif
203
+ #ifdef ERRCODE_UNTRANSLATABLE_CHARACTER
204
+ { ERRCODE_UNTRANSLATABLE_CHARACTER,
205
+ "ERRCODE_UNTRANSLATABLE_CHARACTER", "DataError"},
206
+ #endif
207
+ #ifdef ERRCODE_NOT_AN_XML_DOCUMENT
208
+ { ERRCODE_NOT_AN_XML_DOCUMENT,
209
+ "ERRCODE_NOT_AN_XML_DOCUMENT", "DataError"},
210
+ #endif
211
+ #ifdef ERRCODE_INVALID_XML_DOCUMENT
212
+ { ERRCODE_INVALID_XML_DOCUMENT,
213
+ "ERRCODE_INVALID_XML_DOCUMENT", "DataError"},
214
+ #endif
215
+ #ifdef ERRCODE_INVALID_XML_CONTENT
216
+ { ERRCODE_INVALID_XML_CONTENT,
217
+ "ERRCODE_INVALID_XML_CONTENT", "DataError"},
218
+ #endif
219
+ #ifdef ERRCODE_INVALID_XML_COMMENT
220
+ { ERRCODE_INVALID_XML_COMMENT,
221
+ "ERRCODE_INVALID_XML_COMMENT", "DataError"},
222
+ #endif
223
+ #ifdef ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION
224
+ { ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION,
225
+ "ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION", "DataError"},
226
+ #endif
227
+
228
+ #ifdef ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION
229
+ { ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION,
230
+ "ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION", "IntegrityError"},
231
+ #endif
232
+ #ifdef ERRCODE_RESTRICT_VIOLATION
233
+ { ERRCODE_RESTRICT_VIOLATION,
234
+ "ERRCODE_RESTRICT_VIOLATION", "IntegrityError"},
235
+ #endif
236
+ #ifdef ERRCODE_NOT_NULL_VIOLATION
237
+ { ERRCODE_NOT_NULL_VIOLATION,
238
+ "ERRCODE_NOT_NULL_VIOLATION", "IntegrityError"},
239
+ #endif
240
+ #ifdef ERRCODE_FOREIGN_KEY_VIOLATION
241
+ { ERRCODE_FOREIGN_KEY_VIOLATION,
242
+ "ERRCODE_FOREIGN_KEY_VIOLATION", "IntegrityError"},
243
+ #endif
244
+ #ifdef ERRCODE_UNIQUE_VIOLATION
245
+ { ERRCODE_UNIQUE_VIOLATION,
246
+ "ERRCODE_UNIQUE_VIOLATION", "IntegrityError"},
247
+ #endif
248
+ #ifdef ERRCODE_CHECK_VIOLATION
249
+ { ERRCODE_CHECK_VIOLATION,
250
+ "ERRCODE_CHECK_VIOLATION", "IntegrityError"},
251
+ #endif
252
+ #ifdef ERRCODE_WITH_CHECK_OPTION_VIOLATION
253
+ { ERRCODE_WITH_CHECK_OPTION_VIOLATION,
254
+ "ERRCODE_WITH_CHECK_OPTION_VIOLATION", "IntegrityError"},
255
+ #endif
256
+
257
+ #ifdef ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION
258
+ { ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION,
259
+ "ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION", "SyntaxError"},
260
+ #endif
261
+ #ifdef ERRCODE_SYNTAX_ERROR
262
+ { ERRCODE_SYNTAX_ERROR,
263
+ "ERRCODE_SYNTAX_ERROR", "SyntaxError"},
264
+ #endif
265
+ #ifdef ERRCODE_INSUFFICIENT_PRIVILEGE
266
+ { ERRCODE_INSUFFICIENT_PRIVILEGE,
267
+ "ERRCODE_INSUFFICIENT_PRIVILEGE", "SyntaxError"},
268
+ #endif
269
+ #ifdef ERRCODE_CANNOT_COERCE
270
+ { ERRCODE_CANNOT_COERCE,
271
+ "ERRCODE_CANNOT_COERCE", "SyntaxError"},
272
+ #endif
273
+ #ifdef ERRCODE_GROUPING_ERROR
274
+ { ERRCODE_GROUPING_ERROR,
275
+ "ERRCODE_GROUPING_ERROR", "SyntaxError"},
276
+ #endif
277
+ #ifdef ERRCODE_WINDOWING_ERROR
278
+ { ERRCODE_WINDOWING_ERROR,
279
+ "ERRCODE_WINDOWING_ERROR", "SyntaxError"},
280
+ #endif
281
+ #ifdef ERRCODE_INVALID_RECURSION
282
+ { ERRCODE_INVALID_RECURSION,
283
+ "ERRCODE_INVALID_RECURSION", "SyntaxError"},
284
+ #endif
285
+ #ifdef ERRCODE_INVALID_FOREIGN_KEY
286
+ { ERRCODE_INVALID_FOREIGN_KEY,
287
+ "ERRCODE_INVALID_FOREIGN_KEY", "SyntaxError"},
288
+ #endif
289
+ #ifdef ERRCODE_INVALID_NAME
290
+ { ERRCODE_INVALID_NAME,
291
+ "ERRCODE_INVALID_NAME", "SyntaxError"},
292
+ #endif
293
+ #ifdef ERRCODE_NAME_TOO_LONG
294
+ { ERRCODE_NAME_TOO_LONG,
295
+ "ERRCODE_NAME_TOO_LONG", "SyntaxError"},
296
+ #endif
297
+ #ifdef ERRCODE_RESERVED_NAME
298
+ { ERRCODE_RESERVED_NAME,
299
+ "ERRCODE_RESERVED_NAME", "SyntaxError"},
300
+ #endif
301
+ #ifdef ERRCODE_DATATYPE_MISMATCH
302
+ { ERRCODE_DATATYPE_MISMATCH,
303
+ "ERRCODE_DATATYPE_MISMATCH", "SyntaxError"},
304
+ #endif
305
+ #ifdef ERRCODE_INDETERMINATE_DATATYPE
306
+ { ERRCODE_INDETERMINATE_DATATYPE,
307
+ "ERRCODE_INDETERMINATE_DATATYPE", "SyntaxError"},
308
+ #endif
309
+ #ifdef ERRCODE_WRONG_OBJECT_TYPE
310
+ { ERRCODE_WRONG_OBJECT_TYPE,
311
+ "ERRCODE_WRONG_OBJECT_TYPE", "SyntaxError"},
312
+ #endif
313
+ #ifdef ERRCODE_UNDEFINED_COLUMN
314
+ { ERRCODE_UNDEFINED_COLUMN,
315
+ "ERRCODE_UNDEFINED_COLUMN", "SyntaxError"},
316
+ #endif
317
+ #ifdef ERRCODE_UNDEFINED_CURSOR
318
+ { ERRCODE_UNDEFINED_CURSOR,
319
+ "ERRCODE_UNDEFINED_CURSOR", "SyntaxError"},
320
+ #endif
321
+ #ifdef ERRCODE_UNDEFINED_DATABASE
322
+ { ERRCODE_UNDEFINED_DATABASE,
323
+ "ERRCODE_UNDEFINED_DATABASE", "SyntaxError"},
324
+ #endif
325
+ #ifdef ERRCODE_UNDEFINED_FUNCTION
326
+ { ERRCODE_UNDEFINED_FUNCTION,
327
+ "ERRCODE_UNDEFINED_FUNCTION", "SyntaxError"},
328
+ #endif
329
+ #ifdef ERRCODE_UNDEFINED_PSTATEMENT
330
+ { ERRCODE_UNDEFINED_PSTATEMENT,
331
+ "ERRCODE_UNDEFINED_PSTATEMENT", "SyntaxError"},
332
+ #endif
333
+ #ifdef ERRCODE_UNDEFINED_SCHEMA
334
+ { ERRCODE_UNDEFINED_SCHEMA,
335
+ "ERRCODE_UNDEFINED_SCHEMA", "SyntaxError"},
336
+ #endif
337
+ #ifdef ERRCODE_UNDEFINED_TABLE
338
+ { ERRCODE_UNDEFINED_TABLE,
339
+ "ERRCODE_UNDEFINED_TABLE", "SyntaxError"},
340
+ #endif
341
+ #ifdef ERRCODE_UNDEFINED_PARAMETER
342
+ { ERRCODE_UNDEFINED_PARAMETER,
343
+ "ERRCODE_UNDEFINED_PARAMETER", "SyntaxError"},
344
+ #endif
345
+ #ifdef ERRCODE_UNDEFINED_OBJECT
346
+ { ERRCODE_UNDEFINED_OBJECT,
347
+ "ERRCODE_UNDEFINED_OBJECT", "SyntaxError"},
348
+ #endif
349
+ #ifdef ERRCODE_DUPLICATE_COLUMN
350
+ { ERRCODE_DUPLICATE_COLUMN,
351
+ "ERRCODE_DUPLICATE_COLUMN", "SyntaxError"},
352
+ #endif
353
+ #ifdef ERRCODE_DUPLICATE_CURSOR
354
+ { ERRCODE_DUPLICATE_CURSOR,
355
+ "ERRCODE_DUPLICATE_CURSOR", "SyntaxError"},
356
+ #endif
357
+ #ifdef ERRCODE_DUPLICATE_DATABASE
358
+ { ERRCODE_DUPLICATE_DATABASE,
359
+ "ERRCODE_DUPLICATE_DATABASE", "SyntaxError"},
360
+ #endif
361
+ #ifdef ERRCODE_DUPLICATE_FUNCTION
362
+ { ERRCODE_DUPLICATE_FUNCTION,
363
+ "ERRCODE_DUPLICATE_FUNCTION", "SyntaxError"},
364
+ #endif
365
+ #ifdef ERRCODE_DUPLICATE_PSTATEMENT
366
+ { ERRCODE_DUPLICATE_PSTATEMENT,
367
+ "ERRCODE_DUPLICATE_PSTATEMENT", "SyntaxError"},
368
+ #endif
369
+ #ifdef ERRCODE_DUPLICATE_SCHEMA
370
+ { ERRCODE_DUPLICATE_SCHEMA,
371
+ "ERRCODE_DUPLICATE_SCHEMA", "SyntaxError"},
372
+ #endif
373
+ #ifdef ERRCODE_DUPLICATE_TABLE
374
+ { ERRCODE_DUPLICATE_TABLE,
375
+ "ERRCODE_DUPLICATE_TABLE", "SyntaxError"},
376
+ #endif
377
+ #ifdef ERRCODE_DUPLICATE_ALIAS
378
+ { ERRCODE_DUPLICATE_ALIAS,
379
+ "ERRCODE_DUPLICATE_ALIAS", "SyntaxError"},
380
+ #endif
381
+ #ifdef ERRCODE_DUPLICATE_OBJECT
382
+ { ERRCODE_DUPLICATE_OBJECT,
383
+ "ERRCODE_DUPLICATE_OBJECT", "SyntaxError"},
384
+ #endif
385
+ #ifdef ERRCODE_AMBIGUOUS_COLUMN
386
+ { ERRCODE_AMBIGUOUS_COLUMN,
387
+ "ERRCODE_AMBIGUOUS_COLUMN", "SyntaxError"},
388
+ #endif
389
+ #ifdef ERRCODE_AMBIGUOUS_FUNCTION
390
+ { ERRCODE_AMBIGUOUS_FUNCTION,
391
+ "ERRCODE_AMBIGUOUS_FUNCTION", "SyntaxError"},
392
+ #endif
393
+ #ifdef ERRCODE_AMBIGUOUS_PARAMETER
394
+ { ERRCODE_AMBIGUOUS_PARAMETER,
395
+ "ERRCODE_AMBIGUOUS_PARAMETER", "SyntaxError"},
396
+ #endif
397
+ #ifdef ERRCODE_AMBIGUOUS_ALIAS
398
+ { ERRCODE_AMBIGUOUS_ALIAS,
399
+ "ERRCODE_AMBIGUOUS_ALIAS", "SyntaxError"},
400
+ #endif
401
+ #ifdef ERRCODE_INVALID_COLUMN_REFERENCE
402
+ { ERRCODE_INVALID_COLUMN_REFERENCE,
403
+ "ERRCODE_INVALID_COLUMN_REFERENCE", "SyntaxError"},
404
+ #endif
405
+ #ifdef ERRCODE_INVALID_COLUMN_DEFINITION
406
+ { ERRCODE_INVALID_COLUMN_DEFINITION,
407
+ "ERRCODE_INVALID_COLUMN_DEFINITION", "SyntaxError"},
408
+ #endif
409
+ #ifdef ERRCODE_INVALID_CURSOR_DEFINITION
410
+ { ERRCODE_INVALID_CURSOR_DEFINITION,
411
+ "ERRCODE_INVALID_CURSOR_DEFINITION", "SyntaxError"},
412
+ #endif
413
+ #ifdef ERRCODE_INVALID_DATABASE_DEFINITION
414
+ { ERRCODE_INVALID_DATABASE_DEFINITION,
415
+ "ERRCODE_INVALID_DATABASE_DEFINITION", "SyntaxError"},
416
+ #endif
417
+ #ifdef ERRCODE_INVALID_FUNCTION_DEFINITION
418
+ { ERRCODE_INVALID_FUNCTION_DEFINITION,
419
+ "ERRCODE_INVALID_FUNCTION_DEFINITION", "SyntaxError"},
420
+ #endif
421
+ #ifdef ERRCODE_INVALID_PSTATEMENT_DEFINITION
422
+ { ERRCODE_INVALID_PSTATEMENT_DEFINITION,
423
+ "ERRCODE_INVALID_PSTATEMENT_DEFINITION", "SyntaxError"},
424
+ #endif
425
+ #ifdef ERRCODE_INVALID_SCHEMA_DEFINITION
426
+ { ERRCODE_INVALID_SCHEMA_DEFINITION,
427
+ "ERRCODE_INVALID_SCHEMA_DEFINITION", "SyntaxError"},
428
+ #endif
429
+ #ifdef ERRCODE_INVALID_TABLE_DEFINITION
430
+ { ERRCODE_INVALID_TABLE_DEFINITION,
431
+ "ERRCODE_INVALID_TABLE_DEFINITION", "SyntaxError"},
432
+ #endif
433
+ #ifdef ERRCODE_INVALID_OBJECT_DEFINITION
434
+ { ERRCODE_INVALID_OBJECT_DEFINITION,
435
+ "ERRCODE_INVALID_OBJECT_DEFINITION", "SyntaxError"},
436
+ #endif
437
+
438
+ #ifdef ERRCODE_INVALID_TRANSACTION_STATE
439
+ { ERRCODE_INVALID_TRANSACTION_STATE,
440
+ "ERRCODE_INVALID_TRANSACTION_STATE", "TransactionError"},
441
+ #endif
442
+ #ifdef ERRCODE_ACTIVE_SQL_TRANSACTION
443
+ { ERRCODE_ACTIVE_SQL_TRANSACTION,
444
+ "ERRCODE_ACTIVE_SQL_TRANSACTION", "TransactionError"},
445
+ #endif
446
+ #ifdef ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE
447
+ { ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE,
448
+ "ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE", "TransactionError"},
449
+ #endif
450
+ #ifdef ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL
451
+ { ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL,
452
+ "ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL", "TransactionError"},
453
+ #endif
454
+ #ifdef ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION
455
+ { ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION,
456
+ "ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION", "TransactionError"},
457
+ #endif
458
+ #ifdef ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION
459
+ { ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION,
460
+ "ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION", "TransactionError"},
461
+ #endif
462
+ #ifdef ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION
463
+ { ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION,
464
+ "ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION", "TransactionError"},
465
+ #endif
466
+ #ifdef ERRCODE_READ_ONLY_SQL_TRANSACTION
467
+ { ERRCODE_READ_ONLY_SQL_TRANSACTION,
468
+ "ERRCODE_READ_ONLY_SQL_TRANSACTION", "TransactionError"},
469
+ #endif
470
+ #ifdef ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED
471
+ { ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED,
472
+ "ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED", "TransactionError"},
473
+ #endif
474
+ #ifdef ERRCODE_NO_ACTIVE_SQL_TRANSACTION
475
+ { ERRCODE_NO_ACTIVE_SQL_TRANSACTION,
476
+ "ERRCODE_NO_ACTIVE_SQL_TRANSACTION", "TransactionError"},
477
+ #endif
478
+ #ifdef ERRCODE_IN_FAILED_SQL_TRANSACTION
479
+ { ERRCODE_IN_FAILED_SQL_TRANSACTION,
480
+ "ERRCODE_IN_FAILED_SQL_TRANSACTION", "TransactionError"},
481
+ #endif
482
+ {0, NULL, NULL}
483
+ };