do_postgres 0.10.3-x86-mingw32 → 0.10.4.rc1-x86-mingw32

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