Debian Codegraph @

mingw-w64-headers/include/sqlext.h

raw
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6 #ifndef __SQLEXT
7 #define __SQLEXT
8
9 #include <sql.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define SQL_SPEC_MAJOR 3
16 #define SQL_SPEC_MINOR 80
17 #define SQL_SPEC_STRING "03.80"
18
19 #define SQL_SQLSTATE_SIZE 5
20 typedef SQLTCHAR SQLSTATE[SQL_SQLSTATE_SIZE + 1];
21
22 #define SQL_MAX_DSN_LENGTH 32
23
24 #define SQL_MAX_OPTION_STRING_LENGTH 256
25
26 #if (ODBCVER < 0x0300)
27 #define SQL_NO_DATA_FOUND 100
28 #else
29 #define SQL_NO_DATA_FOUND SQL_NO_DATA
30 #endif
31
32 #if (ODBCVER >= 0x0300)
33 #define SQL_HANDLE_SENV 5
34 #endif
35
36 #if (ODBCVER >= 0x0300)
37 #define SQL_ATTR_ODBC_VERSION 200
38 #define SQL_ATTR_CONNECTION_POOLING 201
39 #define SQL_ATTR_CP_MATCH 202
40 #define SQL_ATTR_APPLICATION_KEY 203
41 #endif
42
43 #if (ODBCVER >= 0x0300)
44
45 #define SQL_CP_OFF __MSABI_LONG(0U)
46 #define SQL_CP_ONE_PER_DRIVER __MSABI_LONG(1U)
47 #define SQL_CP_ONE_PER_HENV __MSABI_LONG(2U)
48 #define SQL_CP_DRIVER_AWARE __MSABI_LONG(3U)
49 #define SQL_CP_DEFAULT SQL_CP_OFF
50
51 #define SQL_CP_STRICT_MATCH __MSABI_LONG(0U)
52 #define SQL_CP_RELAXED_MATCH __MSABI_LONG(1U)
53 #define SQL_CP_MATCH_DEFAULT SQL_CP_STRICT_MATCH
54
55 #define SQL_OV_ODBC2 __MSABI_LONG(2U)
56 #define SQL_OV_ODBC3 __MSABI_LONG(3U)
57 #endif
58
59 #if (ODBCVER >= 0x0380)
60 #define SQL_OV_ODBC3_80 __MSABI_LONG(380U)
61 #endif
62
63 #define SQL_ACCESS_MODE 101
64 #define SQL_AUTOCOMMIT 102
65 #define SQL_LOGIN_TIMEOUT 103
66 #define SQL_OPT_TRACE 104
67 #define SQL_OPT_TRACEFILE 105
68 #define SQL_TRANSLATE_DLL 106
69 #define SQL_TRANSLATE_OPTION 107
70 #define SQL_TXN_ISOLATION 108
71 #define SQL_CURRENT_QUALIFIER 109
72 #define SQL_ODBC_CURSORS 110
73 #define SQL_QUIET_MODE 111
74 #define SQL_PACKET_SIZE 112
75
76 #if (ODBCVER >= 0x0300)
77 #define SQL_ATTR_ACCESS_MODE SQL_ACCESS_MODE
78 #define SQL_ATTR_AUTOCOMMIT SQL_AUTOCOMMIT
79 #define SQL_ATTR_CONNECTION_TIMEOUT 113
80 #define SQL_ATTR_CURRENT_CATALOG SQL_CURRENT_QUALIFIER
81 #define SQL_ATTR_DISCONNECT_BEHAVIOR 114
82 #define SQL_ATTR_ENLIST_IN_DTC 1207
83 #define SQL_ATTR_ENLIST_IN_XA 1208
84 #define SQL_ATTR_LOGIN_TIMEOUT SQL_LOGIN_TIMEOUT
85 #define SQL_ATTR_ODBC_CURSORS SQL_ODBC_CURSORS
86 #define SQL_ATTR_PACKET_SIZE SQL_PACKET_SIZE
87 #define SQL_ATTR_QUIET_MODE SQL_QUIET_MODE
88 #define SQL_ATTR_TRACE SQL_OPT_TRACE
89 #define SQL_ATTR_TRACEFILE SQL_OPT_TRACEFILE
90 #define SQL_ATTR_TRANSLATE_LIB SQL_TRANSLATE_DLL
91 #define SQL_ATTR_TRANSLATE_OPTION SQL_TRANSLATE_OPTION
92 #define SQL_ATTR_TXN_ISOLATION SQL_TXN_ISOLATION
93 #endif
94
95 #define SQL_ATTR_CONNECTION_DEAD 1209
96
97 #if (ODBCVER >= 0x0351)
98
99 #define SQL_ATTR_ANSI_APP 115
100 #endif
101
102 #if (ODBCVER >= 0x0380)
103 #define SQL_ATTR_RESET_CONNECTION 116
104 #define SQL_ATTR_ASYNC_DBC_FUNCTIONS_ENABLE 117
105 #endif
106
107 #if (ODBCVER >= 0x0380)
108 #define SQL_ATTR_ASYNC_DBC_EVENT 119
109 #endif
110
111 #if (ODBCVER < 0x0300)
112 #define SQL_CONNECT_OPT_DRVR_START 1000
113 #endif
114
115 #if (ODBCVER < 0x0300)
116 #define SQL_CONN_OPT_MAX SQL_PACKET_SIZE
117 #define SQL_CONN_OPT_MIN SQL_ACCESS_MODE
118 #endif
119
120 #define SQL_MODE_READ_WRITE __MSABI_LONG(0U)
121 #define SQL_MODE_READ_ONLY __MSABI_LONG(1U)
122 #define SQL_MODE_DEFAULT SQL_MODE_READ_WRITE
123
124 #define SQL_AUTOCOMMIT_OFF __MSABI_LONG(0U)
125 #define SQL_AUTOCOMMIT_ON __MSABI_LONG(1U)
126 #define SQL_AUTOCOMMIT_DEFAULT SQL_AUTOCOMMIT_ON
127
128 #define SQL_LOGIN_TIMEOUT_DEFAULT __MSABI_LONG(15U)
129
130 #define SQL_OPT_TRACE_OFF __MSABI_LONG(0U)
131 #define SQL_OPT_TRACE_ON __MSABI_LONG(1U)
132 #define SQL_OPT_TRACE_DEFAULT SQL_OPT_TRACE_OFF
133 #define SQL_OPT_TRACE_FILE_DEFAULT "\\SQL.LOG"
134
135 #define SQL_CUR_USE_IF_NEEDED __MSABI_LONG(0U)
136 #define SQL_CUR_USE_ODBC __MSABI_LONG(1U)
137 #define SQL_CUR_USE_DRIVER __MSABI_LONG(2U)
138 #define SQL_CUR_DEFAULT SQL_CUR_USE_DRIVER
139
140 #if (ODBCVER >= 0x0300)
141 #define SQL_DB_RETURN_TO_POOL __MSABI_LONG(0U)
142 #define SQL_DB_DISCONNECT __MSABI_LONG(1U)
143 #define SQL_DB_DEFAULT SQL_DB_RETURN_TO_POOL
144
145 #define SQL_DTC_DONE __MSABI_LONG(0)
146 #endif
147
148 #define SQL_CD_TRUE __MSABI_LONG(1)
149 #define SQL_CD_FALSE __MSABI_LONG(0)
150
151 #if (ODBCVER >= 0x0351)
152 #define SQL_AA_TRUE __MSABI_LONG(1)
153 #define SQL_AA_FALSE __MSABI_LONG(0)
154 #endif
155
156 #if (ODBCVER >= 0x0380)
157 #define SQL_RESET_CONNECTION_YES __MSABI_LONG(1U)
158 #endif
159
160 #if (ODBCVER >= 0x0380)
161 #define SQL_ASYNC_DBC_ENABLE_ON __MSABI_LONG(1U)
162 #define SQL_ASYNC_DBC_ENABLE_OFF __MSABI_LONG(0U)
163 #define SQL_ASYNC_DBC_ENABLE_DEFAULT SQL_ASYNC_DBC_ENABLE_OFF
164 #endif
165
166 #define SQL_QUERY_TIMEOUT 0
167 #define SQL_MAX_ROWS 1
168 #define SQL_NOSCAN 2
169 #define SQL_MAX_LENGTH 3
170 #define SQL_ASYNC_ENABLE 4
171 #define SQL_BIND_TYPE 5
172 #define SQL_CURSOR_TYPE 6
173 #define SQL_CONCURRENCY 7
174 #define SQL_KEYSET_SIZE 8
175 #define SQL_ROWSET_SIZE 9
176 #define SQL_SIMULATE_CURSOR 10
177 #define SQL_RETRIEVE_DATA 11
178 #define SQL_USE_BOOKMARKS 12
179 #define SQL_GET_BOOKMARK 13
180 #define SQL_ROW_NUMBER 14
181
182 #if (ODBCVER >= 0x0300)
183 #define SQL_ATTR_ASYNC_ENABLE 4
184 #define SQL_ATTR_CONCURRENCY SQL_CONCURRENCY
185 #define SQL_ATTR_CURSOR_TYPE SQL_CURSOR_TYPE
186 #define SQL_ATTR_ENABLE_AUTO_IPD 15
187 #define SQL_ATTR_FETCH_BOOKMARK_PTR 16
188 #define SQL_ATTR_KEYSET_SIZE SQL_KEYSET_SIZE
189 #define SQL_ATTR_MAX_LENGTH SQL_MAX_LENGTH
190 #define SQL_ATTR_MAX_ROWS SQL_MAX_ROWS
191 #define SQL_ATTR_NOSCAN SQL_NOSCAN
192 #define SQL_ATTR_PARAM_BIND_OFFSET_PTR 17
193 #define SQL_ATTR_PARAM_BIND_TYPE 18
194 #define SQL_ATTR_PARAM_OPERATION_PTR 19
195 #define SQL_ATTR_PARAM_STATUS_PTR 20
196 #define SQL_ATTR_PARAMS_PROCESSED_PTR 21
197 #define SQL_ATTR_PARAMSET_SIZE 22
198 #define SQL_ATTR_QUERY_TIMEOUT SQL_QUERY_TIMEOUT
199 #define SQL_ATTR_RETRIEVE_DATA SQL_RETRIEVE_DATA
200 #define SQL_ATTR_ROW_BIND_OFFSET_PTR 23
201 #define SQL_ATTR_ROW_BIND_TYPE SQL_BIND_TYPE
202 #define SQL_ATTR_ROW_NUMBER SQL_ROW_NUMBER
203 #define SQL_ATTR_ROW_OPERATION_PTR 24
204 #define SQL_ATTR_ROW_STATUS_PTR 25
205 #define SQL_ATTR_ROWS_FETCHED_PTR 26
206 #define SQL_ATTR_ROW_ARRAY_SIZE 27
207 #define SQL_ATTR_SIMULATE_CURSOR SQL_SIMULATE_CURSOR
208 #define SQL_ATTR_USE_BOOKMARKS SQL_USE_BOOKMARKS
209 #endif
210
211 #if (ODBCVER >= 0x0380)
212 #define SQL_ATTR_ASYNC_STMT_EVENT 29
213 #endif
214
215 #if (ODBCVER < 0x0300)
216 #define SQL_STMT_OPT_MAX SQL_ROW_NUMBER
217 #define SQL_STMT_OPT_MIN SQL_QUERY_TIMEOUT
218 #endif
219
220 #if (ODBCVER >= 0x0300)
221 #define SQL_COL_PRED_CHAR SQL_LIKE_ONLY
222 #define SQL_COL_PRED_BASIC SQL_ALL_EXCEPT_LIKE
223 #endif
224
225 #if (ODBCVER >= 0x0300)
226 #define SQL_IS_POINTER (-4)
227 #define SQL_IS_UINTEGER (-5)
228 #define SQL_IS_INTEGER (-6)
229 #define SQL_IS_USMALLINT (-7)
230 #define SQL_IS_SMALLINT (-8)
231 #endif
232
233 #if (ODBCVER >= 0x0300)
234 #define SQL_PARAM_BIND_BY_COLUMN __MSABI_LONG(0U)
235 #define SQL_PARAM_BIND_TYPE_DEFAULT SQL_PARAM_BIND_BY_COLUMN
236 #endif
237
238 #define SQL_QUERY_TIMEOUT_DEFAULT __MSABI_LONG(0U)
239
240 #define SQL_MAX_ROWS_DEFAULT __MSABI_LONG(0U)
241
242 #define SQL_NOSCAN_OFF __MSABI_LONG(0U)
243 #define SQL_NOSCAN_ON __MSABI_LONG(1U)
244 #define SQL_NOSCAN_DEFAULT SQL_NOSCAN_OFF
245
246 #define SQL_MAX_LENGTH_DEFAULT __MSABI_LONG(0U)
247
248 #define SQL_ASYNC_ENABLE_OFF __MSABI_LONG(0U)
249 #define SQL_ASYNC_ENABLE_ON __MSABI_LONG(1U)
250 #define SQL_ASYNC_ENABLE_DEFAULT SQL_ASYNC_ENABLE_OFF
251
252 #define SQL_BIND_BY_COLUMN __MSABI_LONG(0U)
253 #define SQL_BIND_TYPE_DEFAULT SQL_BIND_BY_COLUMN
254
255 #define SQL_CONCUR_READ_ONLY 1
256 #define SQL_CONCUR_LOCK 2
257 #define SQL_CONCUR_ROWVER 3
258 #define SQL_CONCUR_VALUES 4
259 #define SQL_CONCUR_DEFAULT SQL_CONCUR_READ_ONLY
260
261 #define SQL_CURSOR_FORWARD_ONLY __MSABI_LONG(0U)
262 #define SQL_CURSOR_KEYSET_DRIVEN __MSABI_LONG(1U)
263 #define SQL_CURSOR_DYNAMIC __MSABI_LONG(2U)
264 #define SQL_CURSOR_STATIC __MSABI_LONG(3U)
265 #define SQL_CURSOR_TYPE_DEFAULT SQL_CURSOR_FORWARD_ONLY
266
267 #define SQL_ROWSET_SIZE_DEFAULT __MSABI_LONG(1U)
268
269 #define SQL_KEYSET_SIZE_DEFAULT __MSABI_LONG(0U)
270
271 #define SQL_SC_NON_UNIQUE __MSABI_LONG(0U)
272 #define SQL_SC_TRY_UNIQUE __MSABI_LONG(1U)
273 #define SQL_SC_UNIQUE __MSABI_LONG(2U)
274
275 #define SQL_RD_OFF __MSABI_LONG(0U)
276 #define SQL_RD_ON __MSABI_LONG(1U)
277 #define SQL_RD_DEFAULT SQL_RD_ON
278
279 #define SQL_UB_OFF __MSABI_LONG(0U)
280 #define SQL_UB_ON __MSABI_LONG(01U)
281 #define SQL_UB_DEFAULT SQL_UB_OFF
282
283 #if (ODBCVER >= 0x0300)
284 #define SQL_UB_FIXED SQL_UB_ON
285 #define SQL_UB_VARIABLE __MSABI_LONG(2U)
286 #endif
287
288 #if (ODBCVER >= 0x0300)
289 #define SQL_DESC_ARRAY_SIZE 20
290 #define SQL_DESC_ARRAY_STATUS_PTR 21
291 #define SQL_DESC_AUTO_UNIQUE_VALUE SQL_COLUMN_AUTO_INCREMENT
292 #define SQL_DESC_BASE_COLUMN_NAME 22
293 #define SQL_DESC_BASE_TABLE_NAME 23
294 #define SQL_DESC_BIND_OFFSET_PTR 24
295 #define SQL_DESC_BIND_TYPE 25
296 #define SQL_DESC_CASE_SENSITIVE SQL_COLUMN_CASE_SENSITIVE
297 #define SQL_DESC_CATALOG_NAME SQL_COLUMN_QUALIFIER_NAME
298 #define SQL_DESC_CONCISE_TYPE SQL_COLUMN_TYPE
299 #define SQL_DESC_DATETIME_INTERVAL_PRECISION 26
300 #define SQL_DESC_DISPLAY_SIZE SQL_COLUMN_DISPLAY_SIZE
301 #define SQL_DESC_FIXED_PREC_SCALE SQL_COLUMN_MONEY
302 #define SQL_DESC_LABEL SQL_COLUMN_LABEL
303 #define SQL_DESC_LITERAL_PREFIX 27
304 #define SQL_DESC_LITERAL_SUFFIX 28
305 #define SQL_DESC_LOCAL_TYPE_NAME 29
306 #define SQL_DESC_MAXIMUM_SCALE 30
307 #define SQL_DESC_MINIMUM_SCALE 31
308 #define SQL_DESC_NUM_PREC_RADIX 32
309 #define SQL_DESC_PARAMETER_TYPE 33
310 #define SQL_DESC_ROWS_PROCESSED_PTR 34
311 #if (ODBCVER >= 0x0350)
312 #define SQL_DESC_ROWVER 35
313 #endif
314 #define SQL_DESC_SCHEMA_NAME SQL_COLUMN_OWNER_NAME
315 #define SQL_DESC_SEARCHABLE SQL_COLUMN_SEARCHABLE
316 #define SQL_DESC_TYPE_NAME SQL_COLUMN_TYPE_NAME
317 #define SQL_DESC_TABLE_NAME SQL_COLUMN_TABLE_NAME
318 #define SQL_DESC_UNSIGNED SQL_COLUMN_UNSIGNED
319 #define SQL_DESC_UPDATABLE SQL_COLUMN_UPDATABLE
320 #endif
321
322 #if (ODBCVER >= 0x0300)
323 #define SQL_DIAG_CURSOR_ROW_COUNT (-1249)
324 #define SQL_DIAG_ROW_NUMBER (-1248)
325 #define SQL_DIAG_COLUMN_NUMBER (-1247)
326 #endif
327
328 #define SQL_DATE 9
329 #if (ODBCVER >= 0x0300)
330 #define SQL_INTERVAL 10
331 #endif
332 #define SQL_TIME 10
333 #define SQL_TIMESTAMP 11
334 #define SQL_LONGVARCHAR (-1)
335 #define SQL_BINARY (-2)
336 #define SQL_VARBINARY (-3)
337 #define SQL_LONGVARBINARY (-4)
338 #define SQL_BIGINT (-5)
339 #define SQL_TINYINT (-6)
340 #define SQL_BIT (-7)
341 #if (ODBCVER >= 0x0350)
342 #define SQL_GUID (-11)
343 #endif
344
345 #if (ODBCVER >= 0x0300)
346
347 #define SQL_CODE_YEAR 1
348 #define SQL_CODE_MONTH 2
349 #define SQL_CODE_DAY 3
350 #define SQL_CODE_HOUR 4
351 #define SQL_CODE_MINUTE 5
352 #define SQL_CODE_SECOND 6
353 #define SQL_CODE_YEAR_TO_MONTH 7
354 #define SQL_CODE_DAY_TO_HOUR 8
355 #define SQL_CODE_DAY_TO_MINUTE 9
356 #define SQL_CODE_DAY_TO_SECOND 10
357 #define SQL_CODE_HOUR_TO_MINUTE 11
358 #define SQL_CODE_HOUR_TO_SECOND 12
359 #define SQL_CODE_MINUTE_TO_SECOND 13
360
361 #define SQL_INTERVAL_YEAR (100 + SQL_CODE_YEAR)
362 #define SQL_INTERVAL_MONTH (100 + SQL_CODE_MONTH)
363 #define SQL_INTERVAL_DAY (100 + SQL_CODE_DAY)
364 #define SQL_INTERVAL_HOUR (100 + SQL_CODE_HOUR)
365 #define SQL_INTERVAL_MINUTE (100 + SQL_CODE_MINUTE)
366 #define SQL_INTERVAL_SECOND (100 + SQL_CODE_SECOND)
367 #define SQL_INTERVAL_YEAR_TO_MONTH (100 + SQL_CODE_YEAR_TO_MONTH)
368 #define SQL_INTERVAL_DAY_TO_HOUR (100 + SQL_CODE_DAY_TO_HOUR)
369 #define SQL_INTERVAL_DAY_TO_MINUTE (100 + SQL_CODE_DAY_TO_MINUTE)
370 #define SQL_INTERVAL_DAY_TO_SECOND (100 + SQL_CODE_DAY_TO_SECOND)
371 #define SQL_INTERVAL_HOUR_TO_MINUTE (100 + SQL_CODE_HOUR_TO_MINUTE)
372 #define SQL_INTERVAL_HOUR_TO_SECOND (100 + SQL_CODE_HOUR_TO_SECOND)
373 #define SQL_INTERVAL_MINUTE_TO_SECOND (100 + SQL_CODE_MINUTE_TO_SECOND)
374 #else
375 #define SQL_INTERVAL_YEAR (-80)
376 #define SQL_INTERVAL_MONTH (-81)
377 #define SQL_INTERVAL_YEAR_TO_MONTH (-82)
378 #define SQL_INTERVAL_DAY (-83)
379 #define SQL_INTERVAL_HOUR (-84)
380 #define SQL_INTERVAL_MINUTE (-85)
381 #define SQL_INTERVAL_SECOND (-86)
382 #define SQL_INTERVAL_DAY_TO_HOUR (-87)
383 #define SQL_INTERVAL_DAY_TO_MINUTE (-88)
384 #define SQL_INTERVAL_DAY_TO_SECOND (-89)
385 #define SQL_INTERVAL_HOUR_TO_MINUTE (-90)
386 #define SQL_INTERVAL_HOUR_TO_SECOND (-91)
387 #define SQL_INTERVAL_MINUTE_TO_SECOND (-92)
388 #endif
389
390 #if (ODBCVER <= 0x0300)
391 #define SQL_UNICODE (-95)
392 #define SQL_UNICODE_VARCHAR (-96)
393 #define SQL_UNICODE_LONGVARCHAR (-97)
394 #define SQL_UNICODE_CHAR SQL_UNICODE
395 #else
396
397 #define SQL_UNICODE SQL_WCHAR
398
399 #define SQL_UNICODE_VARCHAR SQL_WVARCHAR
400 #define SQL_UNICODE_LONGVARCHAR SQL_WLONGVARCHAR
401 #define SQL_UNICODE_CHAR SQL_WCHAR
402 #endif
403
404 #if (ODBCVER < 0x0300)
405 #define SQL_TYPE_DRIVER_START SQL_INTERVAL_YEAR
406 #define SQL_TYPE_DRIVER_END SQL_UNICODE_LONGVARCHAR
407 #endif
408
409 #define SQL_C_CHAR SQL_CHAR
410 #define SQL_C_LONG SQL_INTEGER
411 #define SQL_C_SHORT SQL_SMALLINT
412 #define SQL_C_FLOAT SQL_REAL
413 #define SQL_C_DOUBLE SQL_DOUBLE
414 #if (ODBCVER >= 0x0300)
415 #define SQL_C_NUMERIC SQL_NUMERIC
416 #endif
417 #define SQL_C_DEFAULT 99
418
419 #define SQL_SIGNED_OFFSET (-20)
420 #define SQL_UNSIGNED_OFFSET (-22)
421
422 #define SQL_C_DATE SQL_DATE
423 #define SQL_C_TIME SQL_TIME
424 #define SQL_C_TIMESTAMP SQL_TIMESTAMP
425 #if (ODBCVER >= 0x0300)
426 #define SQL_C_TYPE_DATE SQL_TYPE_DATE
427 #define SQL_C_TYPE_TIME SQL_TYPE_TIME
428 #define SQL_C_TYPE_TIMESTAMP SQL_TYPE_TIMESTAMP
429 #define SQL_C_INTERVAL_YEAR SQL_INTERVAL_YEAR
430 #define SQL_C_INTERVAL_MONTH SQL_INTERVAL_MONTH
431 #define SQL_C_INTERVAL_DAY SQL_INTERVAL_DAY
432 #define SQL_C_INTERVAL_HOUR SQL_INTERVAL_HOUR
433 #define SQL_C_INTERVAL_MINUTE SQL_INTERVAL_MINUTE
434 #define SQL_C_INTERVAL_SECOND SQL_INTERVAL_SECOND
435 #define SQL_C_INTERVAL_YEAR_TO_MONTH SQL_INTERVAL_YEAR_TO_MONTH
436 #define SQL_C_INTERVAL_DAY_TO_HOUR SQL_INTERVAL_DAY_TO_HOUR
437 #define SQL_C_INTERVAL_DAY_TO_MINUTE SQL_INTERVAL_DAY_TO_MINUTE
438 #define SQL_C_INTERVAL_DAY_TO_SECOND SQL_INTERVAL_DAY_TO_SECOND
439 #define SQL_C_INTERVAL_HOUR_TO_MINUTE SQL_INTERVAL_HOUR_TO_MINUTE
440 #define SQL_C_INTERVAL_HOUR_TO_SECOND SQL_INTERVAL_HOUR_TO_SECOND
441 #define SQL_C_INTERVAL_MINUTE_TO_SECOND SQL_INTERVAL_MINUTE_TO_SECOND
442 #endif
443 #define SQL_C_BINARY SQL_BINARY
444 #define SQL_C_BIT SQL_BIT
445 #if (ODBCVER >= 0x0300)
446 #define SQL_C_SBIGINT (SQL_BIGINT+SQL_SIGNED_OFFSET)
447 #define SQL_C_UBIGINT (SQL_BIGINT+SQL_UNSIGNED_OFFSET)
448 #endif
449 #define SQL_C_TINYINT SQL_TINYINT
450 #define SQL_C_SLONG (SQL_C_LONG+SQL_SIGNED_OFFSET)
451 #define SQL_C_SSHORT (SQL_C_SHORT+SQL_SIGNED_OFFSET)
452 #define SQL_C_STINYINT (SQL_TINYINT+SQL_SIGNED_OFFSET)
453 #define SQL_C_ULONG (SQL_C_LONG+SQL_UNSIGNED_OFFSET)
454 #define SQL_C_USHORT (SQL_C_SHORT+SQL_UNSIGNED_OFFSET)
455 #define SQL_C_UTINYINT (SQL_TINYINT+SQL_UNSIGNED_OFFSET)
456
457 #ifdef _WIN64
458 #define SQL_C_BOOKMARK SQL_C_UBIGINT
459 #else
460 #define SQL_C_BOOKMARK SQL_C_ULONG
461 #endif
462
463 #if (ODBCVER >= 0x0350)
464 #define SQL_C_GUID SQL_GUID
465 #endif
466
467 #define SQL_TYPE_NULL 0
468 #if (ODBCVER < 0x0300)
469 #define SQL_TYPE_MIN SQL_BIT
470 #define SQL_TYPE_MAX SQL_VARCHAR
471 #endif
472
473 #if (ODBCVER >= 0x380)
474 #define SQL_DRIVER_C_TYPE_BASE 0x4000
475 #endif
476
477 #if (ODBCVER >= 0x380)
478 #define SQL_DRIVER_SQL_TYPE_BASE 0x4000
479 #define SQL_DRIVER_DESC_FIELD_BASE 0x4000
480 #define SQL_DRIVER_DIAG_FIELD_BASE 0x4000
481 #define SQL_DRIVER_INFO_TYPE_BASE 0x4000
482 #define SQL_DRIVER_CONN_ATTR_BASE 0x00004000
483 #define SQL_DRIVER_STMT_ATTR_BASE 0x00004000
484 #endif
485
486 #if (ODBCVER >= 0x0300)
487 #define SQL_C_VARBOOKMARK SQL_C_BINARY
488 #endif
489
490 #if (ODBCVER >= 0x0300)
491 #define SQL_NO_ROW_NUMBER (-1)
492 #define SQL_NO_COLUMN_NUMBER (-1)
493 #define SQL_ROW_NUMBER_UNKNOWN (-2)
494 #define SQL_COLUMN_NUMBER_UNKNOWN (-2)
495 #endif
496
497 #define SQL_DEFAULT_PARAM (-5)
498 #define SQL_IGNORE (-6)
499 #if (ODBCVER >= 0x0300)
500 #define SQL_COLUMN_IGNORE SQL_IGNORE
501 #endif
502 #define SQL_LEN_DATA_AT_EXEC_OFFSET (-100)
503 #define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET)
504
505 #define SQL_LEN_BINARY_ATTR_OFFSET (-100)
506 #define SQL_LEN_BINARY_ATTR(length) (-(length)+SQL_LEN_BINARY_ATTR_OFFSET)
507
508 #define SQL_PARAM_TYPE_DEFAULT SQL_PARAM_INPUT_OUTPUT
509 #define SQL_SETPARAM_VALUE_MAX (__MSABI_LONG(-1))
510
511 #define SQL_COLUMN_COUNT 0
512 #define SQL_COLUMN_NAME 1
513 #define SQL_COLUMN_TYPE 2
514 #define SQL_COLUMN_LENGTH 3
515 #define SQL_COLUMN_PRECISION 4
516 #define SQL_COLUMN_SCALE 5
517 #define SQL_COLUMN_DISPLAY_SIZE 6
518 #define SQL_COLUMN_NULLABLE 7
519 #define SQL_COLUMN_UNSIGNED 8
520 #define SQL_COLUMN_MONEY 9
521 #define SQL_COLUMN_UPDATABLE 10
522 #define SQL_COLUMN_AUTO_INCREMENT 11
523 #define SQL_COLUMN_CASE_SENSITIVE 12
524 #define SQL_COLUMN_SEARCHABLE 13
525 #define SQL_COLUMN_TYPE_NAME 14
526 #define SQL_COLUMN_TABLE_NAME 15
527 #define SQL_COLUMN_OWNER_NAME 16
528 #define SQL_COLUMN_QUALIFIER_NAME 17
529 #define SQL_COLUMN_LABEL 18
530 #define SQL_COLATT_OPT_MAX SQL_COLUMN_LABEL
531 #if (ODBCVER < 0x0300)
532 #define SQL_COLUMN_DRIVER_START 1000
533 #endif
534
535 #define SQL_COLATT_OPT_MIN SQL_COLUMN_COUNT
536
537 #define SQL_ATTR_READONLY 0
538 #define SQL_ATTR_WRITE 1
539 #define SQL_ATTR_READWRITE_UNKNOWN 2
540
541 #define SQL_UNSEARCHABLE 0
542 #define SQL_LIKE_ONLY 1
543 #define SQL_ALL_EXCEPT_LIKE 2
544 #define SQL_SEARCHABLE 3
545 #define SQL_PRED_SEARCHABLE SQL_SEARCHABLE
546
547 #define SQL_NO_TOTAL (-4)
548
549 #if (ODBCVER >= 0x0300)
550 #define SQL_API_SQLALLOCHANDLESTD 73
551 #define SQL_API_SQLBULKOPERATIONS 24
552 #endif
553 #define SQL_API_SQLBINDPARAMETER 72
554 #define SQL_API_SQLBROWSECONNECT 55
555 #define SQL_API_SQLCOLATTRIBUTES 6
556 #define SQL_API_SQLCOLUMNPRIVILEGES 56
557 #define SQL_API_SQLDESCRIBEPARAM 58
558 #define SQL_API_SQLDRIVERCONNECT 41
559 #define SQL_API_SQLDRIVERS 71
560 #define SQL_API_SQLPRIVATEDRIVERS 79
561 #define SQL_API_SQLEXTENDEDFETCH 59
562 #define SQL_API_SQLFOREIGNKEYS 60
563 #define SQL_API_SQLMORERESULTS 61
564 #define SQL_API_SQLNATIVESQL 62
565 #define SQL_API_SQLNUMPARAMS 63
566 #define SQL_API_SQLPARAMOPTIONS 64
567 #define SQL_API_SQLPRIMARYKEYS 65
568 #define SQL_API_SQLPROCEDURECOLUMNS 66
569 #define SQL_API_SQLPROCEDURES 67
570 #define SQL_API_SQLSETPOS 68
571 #define SQL_API_SQLSETSCROLLOPTIONS 69
572 #define SQL_API_SQLTABLEPRIVILEGES 70
573
574 #if (ODBCVER < 0x0300)
575 #define SQL_EXT_API_LAST SQL_API_SQLBINDPARAMETER
576 #define SQL_NUM_FUNCTIONS 23
577 #define SQL_EXT_API_START 40
578 #define SQL_NUM_EXTENSIONS (SQL_EXT_API_LAST-SQL_EXT_API_START+1)
579 #endif
580
581 #define SQL_API_ALL_FUNCTIONS 0
582
583 #define SQL_API_LOADBYORDINAL 199
584
585 #if (ODBCVER >= 0x0300)
586 #define SQL_API_ODBC3_ALL_FUNCTIONS 999
587 #define SQL_API_ODBC3_ALL_FUNCTIONS_SIZE 250
588
589 #define SQL_FUNC_EXISTS(pfExists,uwAPI) ((*(((UWORD*) (pfExists)) + ((uwAPI) >> 4)) & (1 << ((uwAPI) & 0x000F))) ? SQL_TRUE : SQL_FALSE)
590 #endif
591
592 #define SQL_INFO_FIRST 0
593 #define SQL_ACTIVE_CONNECTIONS 0
594 #define SQL_ACTIVE_STATEMENTS 1
595 #define SQL_DRIVER_HDBC 3
596 #define SQL_DRIVER_HENV 4
597 #define SQL_DRIVER_HSTMT 5
598 #define SQL_DRIVER_NAME 6
599 #define SQL_DRIVER_VER 7
600 #define SQL_ODBC_API_CONFORMANCE 9
601 #define SQL_ODBC_VER 10
602 #define SQL_ROW_UPDATES 11
603 #define SQL_ODBC_SAG_CLI_CONFORMANCE 12
604 #define SQL_ODBC_SQL_CONFORMANCE 15
605 #define SQL_PROCEDURES 21
606 #define SQL_CONCAT_NULL_BEHAVIOR 22
607 #define SQL_CURSOR_ROLLBACK_BEHAVIOR 24
608 #define SQL_EXPRESSIONS_IN_ORDERBY 27
609 #define SQL_MAX_OWNER_NAME_LEN 32
610 #define SQL_MAX_PROCEDURE_NAME_LEN 33
611 #define SQL_MAX_QUALIFIER_NAME_LEN 34
612 #define SQL_MULT_RESULT_SETS 36
613 #define SQL_MULTIPLE_ACTIVE_TXN 37
614 #define SQL_OUTER_JOINS 38
615 #define SQL_OWNER_TERM 39
616 #define SQL_PROCEDURE_TERM 40
617 #define SQL_QUALIFIER_NAME_SEPARATOR 41
618 #define SQL_QUALIFIER_TERM 42
619 #define SQL_SCROLL_OPTIONS 44
620 #define SQL_TABLE_TERM 45
621 #define SQL_CONVERT_FUNCTIONS 48
622 #define SQL_NUMERIC_FUNCTIONS 49
623 #define SQL_STRING_FUNCTIONS 50
624 #define SQL_SYSTEM_FUNCTIONS 51
625 #define SQL_TIMEDATE_FUNCTIONS 52
626 #define SQL_CONVERT_BIGINT 53
627 #define SQL_CONVERT_BINARY 54
628 #define SQL_CONVERT_BIT 55
629 #define SQL_CONVERT_CHAR 56
630 #define SQL_CONVERT_DATE 57
631 #define SQL_CONVERT_DECIMAL 58
632 #define SQL_CONVERT_DOUBLE 59
633 #define SQL_CONVERT_FLOAT 60
634 #define SQL_CONVERT_INTEGER 61
635 #define SQL_CONVERT_LONGVARCHAR 62
636 #define SQL_CONVERT_NUMERIC 63
637 #define SQL_CONVERT_REAL 64
638 #define SQL_CONVERT_SMALLINT 65
639 #define SQL_CONVERT_TIME 66
640 #define SQL_CONVERT_TIMESTAMP 67
641 #define SQL_CONVERT_TINYINT 68
642 #define SQL_CONVERT_VARBINARY 69
643 #define SQL_CONVERT_VARCHAR 70
644 #define SQL_CONVERT_LONGVARBINARY 71
645 #define SQL_ODBC_SQL_OPT_IEF 73
646 #define SQL_CORRELATION_NAME 74
647 #define SQL_NON_NULLABLE_COLUMNS 75
648 #define SQL_DRIVER_HLIB 76
649 #define SQL_DRIVER_ODBC_VER 77
650 #define SQL_LOCK_TYPES 78
651 #define SQL_POS_OPERATIONS 79
652 #define SQL_POSITIONED_STATEMENTS 80
653 #define SQL_BOOKMARK_PERSISTENCE 82
654 #define SQL_STATIC_SENSITIVITY 83
655 #define SQL_FILE_USAGE 84
656 #define SQL_COLUMN_ALIAS 87
657 #define SQL_GROUP_BY 88
658 #define SQL_KEYWORDS 89
659 #define SQL_OWNER_USAGE 91
660 #define SQL_QUALIFIER_USAGE 92
661 #define SQL_QUOTED_IDENTIFIER_CASE 93
662 #define SQL_SUBQUERIES 95
663 #define SQL_UNION 96
664 #define SQL_MAX_ROW_SIZE_INCLUDES_LONG 103
665 #define SQL_MAX_CHAR_LITERAL_LEN 108
666 #define SQL_TIMEDATE_ADD_INTERVALS 109
667 #define SQL_TIMEDATE_DIFF_INTERVALS 110
668 #define SQL_NEED_LONG_DATA_LEN 111
669 #define SQL_MAX_BINARY_LITERAL_LEN 112
670 #define SQL_LIKE_ESCAPE_CLAUSE 113
671 #define SQL_QUALIFIER_LOCATION 114
672
673 #if (ODBCVER >= 0x0201 && ODBCVER < 0x0300)
674 #define SQL_OJ_CAPABILITIES 65003
675 #endif
676
677 #if (ODBCVER < 0x0300)
678 #define SQL_INFO_LAST SQL_QUALIFIER_LOCATION
679 #define SQL_INFO_DRIVER_START 1000
680 #endif
681
682 #if (ODBCVER >= 0x0300)
683 #define SQL_ACTIVE_ENVIRONMENTS 116
684 #define SQL_ALTER_DOMAIN 117
685
686 #define SQL_SQL_CONFORMANCE 118
687 #define SQL_DATETIME_LITERALS 119
688
689 #define SQL_ASYNC_MODE 10021
690 #define SQL_BATCH_ROW_COUNT 120
691 #define SQL_BATCH_SUPPORT 121
692 #define SQL_CATALOG_LOCATION SQL_QUALIFIER_LOCATION
693 #define SQL_CATALOG_NAME_SEPARATOR SQL_QUALIFIER_NAME_SEPARATOR
694 #define SQL_CATALOG_TERM SQL_QUALIFIER_TERM
695 #define SQL_CATALOG_USAGE SQL_QUALIFIER_USAGE
696 #define SQL_CONVERT_WCHAR 122
697 #define SQL_CONVERT_INTERVAL_DAY_TIME 123
698 #define SQL_CONVERT_INTERVAL_YEAR_MONTH 124
699 #define SQL_CONVERT_WLONGVARCHAR 125
700 #define SQL_CONVERT_WVARCHAR 126
701 #define SQL_CREATE_ASSERTION 127
702 #define SQL_CREATE_CHARACTER_SET 128
703 #define SQL_CREATE_COLLATION 129
704 #define SQL_CREATE_DOMAIN 130
705 #define SQL_CREATE_SCHEMA 131
706 #define SQL_CREATE_TABLE 132
707 #define SQL_CREATE_TRANSLATION 133
708 #define SQL_CREATE_VIEW 134
709 #define SQL_DRIVER_HDESC 135
710 #define SQL_DROP_ASSERTION 136
711 #define SQL_DROP_CHARACTER_SET 137
712 #define SQL_DROP_COLLATION 138
713 #define SQL_DROP_DOMAIN 139
714 #define SQL_DROP_SCHEMA 140
715 #define SQL_DROP_TABLE 141
716 #define SQL_DROP_TRANSLATION 142
717 #define SQL_DROP_VIEW 143
718 #define SQL_DYNAMIC_CURSOR_ATTRIBUTES1 144
719 #define SQL_DYNAMIC_CURSOR_ATTRIBUTES2 145
720 #define SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1 146
721 #define SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 147
722 #define SQL_INDEX_KEYWORDS 148
723 #define SQL_INFO_SCHEMA_VIEWS 149
724 #define SQL_KEYSET_CURSOR_ATTRIBUTES1 150
725 #define SQL_KEYSET_CURSOR_ATTRIBUTES2 151
726 #define SQL_MAX_ASYNC_CONCURRENT_STATEMENTS 10022
727 #define SQL_ODBC_INTERFACE_CONFORMANCE 152
728 #define SQL_PARAM_ARRAY_ROW_COUNTS 153
729 #define SQL_PARAM_ARRAY_SELECTS 154
730 #define SQL_SCHEMA_TERM SQL_OWNER_TERM
731 #define SQL_SCHEMA_USAGE SQL_OWNER_USAGE
732 #define SQL_SQL92_DATETIME_FUNCTIONS 155
733 #define SQL_SQL92_FOREIGN_KEY_DELETE_RULE 156
734 #define SQL_SQL92_FOREIGN_KEY_UPDATE_RULE 157
735 #define SQL_SQL92_GRANT 158
736 #define SQL_SQL92_NUMERIC_VALUE_FUNCTIONS 159
737 #define SQL_SQL92_PREDICATES 160
738 #define SQL_SQL92_RELATIONAL_JOIN_OPERATORS 161
739 #define SQL_SQL92_REVOKE 162
740 #define SQL_SQL92_ROW_VALUE_CONSTRUCTOR 163
741 #define SQL_SQL92_STRING_FUNCTIONS 164
742 #define SQL_SQL92_VALUE_EXPRESSIONS 165
743 #define SQL_STANDARD_CLI_CONFORMANCE 166
744 #define SQL_STATIC_CURSOR_ATTRIBUTES1 167
745 #define SQL_STATIC_CURSOR_ATTRIBUTES2 168
746
747 #define SQL_AGGREGATE_FUNCTIONS 169
748 #define SQL_DDL_INDEX 170
749 #define SQL_DM_VER 171
750 #define SQL_INSERT_STATEMENT 172
751 #define SQL_CONVERT_GUID 173
752 #define SQL_UNION_STATEMENT SQL_UNION
753
754 #if (ODBCVER >= 0x0380)
755 #define SQL_ASYNC_DBC_FUNCTIONS 10023
756 #endif
757
758 #define SQL_DRIVER_AWARE_POOLING_SUPPORTED 10024
759
760 #if (ODBCVER >= 0x0380)
761 #define SQL_ASYNC_NOTIFICATION 10025
762 #define SQL_ASYNC_NOTIFICATION_NOT_CAPABLE __MSABI_LONG(0x00000000)
763 #define SQL_ASYNC_NOTIFICATION_CAPABLE __MSABI_LONG(0x00000001)
764 #endif
765
766 #endif /* ODBCVER >= 0x0300 */
767
768 #define SQL_DTC_TRANSITION_COST 1750
769
770 #if (ODBCVER >= 0x0300)
771
772 #define SQL_AT_ADD_COLUMN_SINGLE __MSABI_LONG(0x00000020)
773 #define SQL_AT_ADD_COLUMN_DEFAULT __MSABI_LONG(0x00000040)
774 #define SQL_AT_ADD_COLUMN_COLLATION __MSABI_LONG(0x00000080)
775 #define SQL_AT_SET_COLUMN_DEFAULT __MSABI_LONG(0x00000100)
776 #define SQL_AT_DROP_COLUMN_DEFAULT __MSABI_LONG(0x00000200)
777 #define SQL_AT_DROP_COLUMN_CASCADE __MSABI_LONG(0x00000400)
778 #define SQL_AT_DROP_COLUMN_RESTRICT __MSABI_LONG(0x00000800)
779 #define SQL_AT_ADD_TABLE_CONSTRAINT __MSABI_LONG(0x00001000)
780 #define SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE __MSABI_LONG(0x00002000)
781 #define SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT __MSABI_LONG(0x00004000)
782 #define SQL_AT_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00008000)
783 #define SQL_AT_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00010000)
784 #define SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00020000)
785 #define SQL_AT_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00040000)
786 #define SQL_AT_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00080000)
787 #endif
788
789 #define SQL_CVT_CHAR __MSABI_LONG(0x00000001)
790 #define SQL_CVT_NUMERIC __MSABI_LONG(0x00000002)
791 #define SQL_CVT_DECIMAL __MSABI_LONG(0x00000004)
792 #define SQL_CVT_INTEGER __MSABI_LONG(0x00000008)
793 #define SQL_CVT_SMALLINT __MSABI_LONG(0x00000010)
794 #define SQL_CVT_FLOAT __MSABI_LONG(0x00000020)
795 #define SQL_CVT_REAL __MSABI_LONG(0x00000040)
796 #define SQL_CVT_DOUBLE __MSABI_LONG(0x00000080)
797 #define SQL_CVT_VARCHAR __MSABI_LONG(0x00000100)
798 #define SQL_CVT_LONGVARCHAR __MSABI_LONG(0x00000200)
799 #define SQL_CVT_BINARY __MSABI_LONG(0x00000400)
800 #define SQL_CVT_VARBINARY __MSABI_LONG(0x00000800)
801 #define SQL_CVT_BIT __MSABI_LONG(0x00001000)
802 #define SQL_CVT_TINYINT __MSABI_LONG(0x00002000)
803 #define SQL_CVT_BIGINT __MSABI_LONG(0x00004000)
804 #define SQL_CVT_DATE __MSABI_LONG(0x00008000)
805 #define SQL_CVT_TIME __MSABI_LONG(0x00010000)
806 #define SQL_CVT_TIMESTAMP __MSABI_LONG(0x00020000)
807 #define SQL_CVT_LONGVARBINARY __MSABI_LONG(0x00040000)
808 #if (ODBCVER >= 0x0300)
809 #define SQL_CVT_INTERVAL_YEAR_MONTH __MSABI_LONG(0x00080000)
810 #define SQL_CVT_INTERVAL_DAY_TIME __MSABI_LONG(0x00100000)
811 #define SQL_CVT_WCHAR __MSABI_LONG(0x00200000)
812 #define SQL_CVT_WLONGVARCHAR __MSABI_LONG(0x00400000)
813 #define SQL_CVT_WVARCHAR __MSABI_LONG(0x00800000)
814 #define SQL_CVT_GUID __MSABI_LONG(0x01000000)
815 #endif
816
817 #define SQL_FN_CVT_CONVERT __MSABI_LONG(0x00000001)
818 #if (ODBCVER >= 0x0300)
819 #define SQL_FN_CVT_CAST __MSABI_LONG(0x00000002)
820 #endif
821
822 #define SQL_FN_STR_CONCAT __MSABI_LONG(0x00000001)
823 #define SQL_FN_STR_INSERT __MSABI_LONG(0x00000002)
824 #define SQL_FN_STR_LEFT __MSABI_LONG(0x00000004)
825 #define SQL_FN_STR_LTRIM __MSABI_LONG(0x00000008)
826 #define SQL_FN_STR_LENGTH __MSABI_LONG(0x00000010)
827 #define SQL_FN_STR_LOCATE __MSABI_LONG(0x00000020)
828 #define SQL_FN_STR_LCASE __MSABI_LONG(0x00000040)
829 #define SQL_FN_STR_REPEAT __MSABI_LONG(0x00000080)
830 #define SQL_FN_STR_REPLACE __MSABI_LONG(0x00000100)
831 #define SQL_FN_STR_RIGHT __MSABI_LONG(0x00000200)
832 #define SQL_FN_STR_RTRIM __MSABI_LONG(0x00000400)
833 #define SQL_FN_STR_SUBSTRING __MSABI_LONG(0x00000800)
834 #define SQL_FN_STR_UCASE __MSABI_LONG(0x00001000)
835 #define SQL_FN_STR_ASCII __MSABI_LONG(0x00002000)
836 #define SQL_FN_STR_CHAR __MSABI_LONG(0x00004000)
837 #define SQL_FN_STR_DIFFERENCE __MSABI_LONG(0x00008000)
838 #define SQL_FN_STR_LOCATE_2 __MSABI_LONG(0x00010000)
839 #define SQL_FN_STR_SOUNDEX __MSABI_LONG(0x00020000)
840 #define SQL_FN_STR_SPACE __MSABI_LONG(0x00040000)
841 #if (ODBCVER >= 0x0300)
842 #define SQL_FN_STR_BIT_LENGTH __MSABI_LONG(0x00080000)
843 #define SQL_FN_STR_CHAR_LENGTH __MSABI_LONG(0x00100000)
844 #define SQL_FN_STR_CHARACTER_LENGTH __MSABI_LONG(0x00200000)
845 #define SQL_FN_STR_OCTET_LENGTH __MSABI_LONG(0x00400000)
846 #define SQL_FN_STR_POSITION __MSABI_LONG(0x00800000)
847 #endif
848
849 #if (ODBCVER >= 0x0300)
850 #define SQL_SSF_CONVERT __MSABI_LONG(0x00000001)
851 #define SQL_SSF_LOWER __MSABI_LONG(0x00000002)
852 #define SQL_SSF_UPPER __MSABI_LONG(0x00000004)
853 #define SQL_SSF_SUBSTRING __MSABI_LONG(0x00000008)
854 #define SQL_SSF_TRANSLATE __MSABI_LONG(0x00000010)
855 #define SQL_SSF_TRIM_BOTH __MSABI_LONG(0x00000020)
856 #define SQL_SSF_TRIM_LEADING __MSABI_LONG(0x00000040)
857 #define SQL_SSF_TRIM_TRAILING __MSABI_LONG(0x00000080)
858 #endif
859
860 #define SQL_FN_NUM_ABS __MSABI_LONG(0x00000001)
861 #define SQL_FN_NUM_ACOS __MSABI_LONG(0x00000002)
862 #define SQL_FN_NUM_ASIN __MSABI_LONG(0x00000004)
863 #define SQL_FN_NUM_ATAN __MSABI_LONG(0x00000008)
864 #define SQL_FN_NUM_ATAN2 __MSABI_LONG(0x00000010)
865 #define SQL_FN_NUM_CEILING __MSABI_LONG(0x00000020)
866 #define SQL_FN_NUM_COS __MSABI_LONG(0x00000040)
867 #define SQL_FN_NUM_COT __MSABI_LONG(0x00000080)
868 #define SQL_FN_NUM_EXP __MSABI_LONG(0x00000100)
869 #define SQL_FN_NUM_FLOOR __MSABI_LONG(0x00000200)
870 #define SQL_FN_NUM_LOG __MSABI_LONG(0x00000400)
871 #define SQL_FN_NUM_MOD __MSABI_LONG(0x00000800)
872 #define SQL_FN_NUM_SIGN __MSABI_LONG(0x00001000)
873 #define SQL_FN_NUM_SIN __MSABI_LONG(0x00002000)
874 #define SQL_FN_NUM_SQRT __MSABI_LONG(0x00004000)
875 #define SQL_FN_NUM_TAN __MSABI_LONG(0x00008000)
876 #define SQL_FN_NUM_PI __MSABI_LONG(0x00010000)
877 #define SQL_FN_NUM_RAND __MSABI_LONG(0x00020000)
878 #define SQL_FN_NUM_DEGREES __MSABI_LONG(0x00040000)
879 #define SQL_FN_NUM_LOG10 __MSABI_LONG(0x00080000)
880 #define SQL_FN_NUM_POWER __MSABI_LONG(0x00100000)
881 #define SQL_FN_NUM_RADIANS __MSABI_LONG(0x00200000)
882 #define SQL_FN_NUM_ROUND __MSABI_LONG(0x00400000)
883 #define SQL_FN_NUM_TRUNCATE __MSABI_LONG(0x00800000)
884
885 #if (ODBCVER >= 0x0300)
886 #define SQL_SNVF_BIT_LENGTH __MSABI_LONG(0x00000001)
887 #define SQL_SNVF_CHAR_LENGTH __MSABI_LONG(0x00000002)
888 #define SQL_SNVF_CHARACTER_LENGTH __MSABI_LONG(0x00000004)
889 #define SQL_SNVF_EXTRACT __MSABI_LONG(0x00000008)
890 #define SQL_SNVF_OCTET_LENGTH __MSABI_LONG(0x00000010)
891 #define SQL_SNVF_POSITION __MSABI_LONG(0x00000020)
892 #endif
893
894 #define SQL_FN_TD_NOW __MSABI_LONG(0x00000001)
895 #define SQL_FN_TD_CURDATE __MSABI_LONG(0x00000002)
896 #define SQL_FN_TD_DAYOFMONTH __MSABI_LONG(0x00000004)
897 #define SQL_FN_TD_DAYOFWEEK __MSABI_LONG(0x00000008)
898 #define SQL_FN_TD_DAYOFYEAR __MSABI_LONG(0x00000010)
899 #define SQL_FN_TD_MONTH __MSABI_LONG(0x00000020)
900 #define SQL_FN_TD_QUARTER __MSABI_LONG(0x00000040)
901 #define SQL_FN_TD_WEEK __MSABI_LONG(0x00000080)
902 #define SQL_FN_TD_YEAR __MSABI_LONG(0x00000100)
903 #define SQL_FN_TD_CURTIME __MSABI_LONG(0x00000200)
904 #define SQL_FN_TD_HOUR __MSABI_LONG(0x00000400)
905 #define SQL_FN_TD_MINUTE __MSABI_LONG(0x00000800)
906 #define SQL_FN_TD_SECOND __MSABI_LONG(0x00001000)
907 #define SQL_FN_TD_TIMESTAMPADD __MSABI_LONG(0x00002000)
908 #define SQL_FN_TD_TIMESTAMPDIFF __MSABI_LONG(0x00004000)
909 #define SQL_FN_TD_DAYNAME __MSABI_LONG(0x00008000)
910 #define SQL_FN_TD_MONTHNAME __MSABI_LONG(0x00010000)
911 #if (ODBCVER >= 0x0300)
912 #define SQL_FN_TD_CURRENT_DATE __MSABI_LONG(0x00020000)
913 #define SQL_FN_TD_CURRENT_TIME __MSABI_LONG(0x00040000)
914 #define SQL_FN_TD_CURRENT_TIMESTAMP __MSABI_LONG(0x00080000)
915 #define SQL_FN_TD_EXTRACT __MSABI_LONG(0x00100000)
916 #endif
917
918 #if (ODBCVER >= 0x0300)
919 #define SQL_SDF_CURRENT_DATE __MSABI_LONG(0x00000001)
920 #define SQL_SDF_CURRENT_TIME __MSABI_LONG(0x00000002)
921 #define SQL_SDF_CURRENT_TIMESTAMP __MSABI_LONG(0x00000004)
922 #endif
923
924 #define SQL_FN_SYS_USERNAME __MSABI_LONG(0x00000001)
925 #define SQL_FN_SYS_DBNAME __MSABI_LONG(0x00000002)
926 #define SQL_FN_SYS_IFNULL __MSABI_LONG(0x00000004)
927
928 #define SQL_FN_TSI_FRAC_SECOND __MSABI_LONG(0x00000001)
929 #define SQL_FN_TSI_SECOND __MSABI_LONG(0x00000002)
930 #define SQL_FN_TSI_MINUTE __MSABI_LONG(0x00000004)
931 #define SQL_FN_TSI_HOUR __MSABI_LONG(0x00000008)
932 #define SQL_FN_TSI_DAY __MSABI_LONG(0x00000010)
933 #define SQL_FN_TSI_WEEK __MSABI_LONG(0x00000020)
934 #define SQL_FN_TSI_MONTH __MSABI_LONG(0x00000040)
935 #define SQL_FN_TSI_QUARTER __MSABI_LONG(0x00000080)
936 #define SQL_FN_TSI_YEAR __MSABI_LONG(0x00000100)
937
938 #if (ODBCVER >= 0x0300)
939
940 #define SQL_CA1_NEXT __MSABI_LONG(0x00000001)
941 #define SQL_CA1_ABSOLUTE __MSABI_LONG(0x00000002)
942 #define SQL_CA1_RELATIVE __MSABI_LONG(0x00000004)
943 #define SQL_CA1_BOOKMARK __MSABI_LONG(0x00000008)
944
945 #define SQL_CA1_LOCK_NO_CHANGE __MSABI_LONG(0x00000040)
946 #define SQL_CA1_LOCK_EXCLUSIVE __MSABI_LONG(0x00000080)
947 #define SQL_CA1_LOCK_UNLOCK __MSABI_LONG(0x00000100)
948
949 #define SQL_CA1_POS_POSITION __MSABI_LONG(0x00000200)
950 #define SQL_CA1_POS_UPDATE __MSABI_LONG(0x00000400)
951 #define SQL_CA1_POS_DELETE __MSABI_LONG(0x00000800)
952 #define SQL_CA1_POS_REFRESH __MSABI_LONG(0x00001000)
953
954 #define SQL_CA1_POSITIONED_UPDATE __MSABI_LONG(0x00002000)
955 #define SQL_CA1_POSITIONED_DELETE __MSABI_LONG(0x00004000)
956 #define SQL_CA1_SELECT_FOR_UPDATE __MSABI_LONG(0x00008000)
957
958 #define SQL_CA1_BULK_ADD __MSABI_LONG(0x00010000)
959 #define SQL_CA1_BULK_UPDATE_BY_BOOKMARK __MSABI_LONG(0x00020000)
960 #define SQL_CA1_BULK_DELETE_BY_BOOKMARK __MSABI_LONG(0x00040000)
961 #define SQL_CA1_BULK_FETCH_BY_BOOKMARK __MSABI_LONG(0x00080000)
962 #endif
963
964 #if (ODBCVER >= 0x0300)
965
966 #define SQL_CA2_READ_ONLY_CONCURRENCY __MSABI_LONG(0x00000001)
967 #define SQL_CA2_LOCK_CONCURRENCY __MSABI_LONG(0x00000002)
968 #define SQL_CA2_OPT_ROWVER_CONCURRENCY __MSABI_LONG(0x00000004)
969 #define SQL_CA2_OPT_VALUES_CONCURRENCY __MSABI_LONG(0x00000008)
970
971 #define SQL_CA2_SENSITIVITY_ADDITIONS __MSABI_LONG(0x00000010)
972 #define SQL_CA2_SENSITIVITY_DELETIONS __MSABI_LONG(0x00000020)
973 #define SQL_CA2_SENSITIVITY_UPDATES __MSABI_LONG(0x00000040)
974
975 #define SQL_CA2_MAX_ROWS_SELECT __MSABI_LONG(0x00000080)
976 #define SQL_CA2_MAX_ROWS_INSERT __MSABI_LONG(0x00000100)
977 #define SQL_CA2_MAX_ROWS_DELETE __MSABI_LONG(0x00000200)
978 #define SQL_CA2_MAX_ROWS_UPDATE __MSABI_LONG(0x00000400)
979 #define SQL_CA2_MAX_ROWS_CATALOG __MSABI_LONG(0x00000800)
980 #define SQL_CA2_MAX_ROWS_AFFECTS_ALL (SQL_CA2_MAX_ROWS_SELECT | SQL_CA2_MAX_ROWS_INSERT | SQL_CA2_MAX_ROWS_DELETE | SQL_CA2_MAX_ROWS_UPDATE | SQL_CA2_MAX_ROWS_CATALOG)
981
982 #define SQL_CA2_CRC_EXACT __MSABI_LONG(0x00001000)
983 #define SQL_CA2_CRC_APPROXIMATE __MSABI_LONG(0x00002000)
984
985 #define SQL_CA2_SIMULATE_NON_UNIQUE __MSABI_LONG(0x00004000)
986 #define SQL_CA2_SIMULATE_TRY_UNIQUE __MSABI_LONG(0x00008000)
987 #define SQL_CA2_SIMULATE_UNIQUE __MSABI_LONG(0x00010000)
988 #endif
989
990 #define SQL_OAC_NONE 0x0000
991 #define SQL_OAC_LEVEL1 0x0001
992 #define SQL_OAC_LEVEL2 0x0002
993
994 #define SQL_OSCC_NOT_COMPLIANT 0x0000
995 #define SQL_OSCC_COMPLIANT 0x0001
996
997 #define SQL_OSC_MINIMUM 0x0000
998 #define SQL_OSC_CORE 0x0001
999 #define SQL_OSC_EXTENDED 0x0002
1000
1001 #define SQL_CB_NULL 0x0000
1002 #define SQL_CB_NON_NULL 0x0001
1003
1004 #define SQL_SO_FORWARD_ONLY __MSABI_LONG(0x00000001)
1005 #define SQL_SO_KEYSET_DRIVEN __MSABI_LONG(0x00000002)
1006 #define SQL_SO_DYNAMIC __MSABI_LONG(0x00000004)
1007 #define SQL_SO_MIXED __MSABI_LONG(0x00000008)
1008 #define SQL_SO_STATIC __MSABI_LONG(0x00000010)
1009
1010 #define SQL_FD_FETCH_BOOKMARK __MSABI_LONG(0x00000080)
1011
1012 #define SQL_CN_NONE 0x0000
1013 #define SQL_CN_DIFFERENT 0x0001
1014 #define SQL_CN_ANY 0x0002
1015
1016 #define SQL_NNC_NULL 0x0000
1017 #define SQL_NNC_NON_NULL 0x0001
1018
1019 #define SQL_NC_START 0x0002
1020 #define SQL_NC_END 0x0004
1021
1022 #define SQL_FILE_NOT_SUPPORTED 0x0000
1023 #define SQL_FILE_TABLE 0x0001
1024 #define SQL_FILE_QUALIFIER 0x0002
1025 #define SQL_FILE_CATALOG SQL_FILE_QUALIFIER
1026
1027 #define SQL_GD_BLOCK __MSABI_LONG(0x00000004)
1028 #define SQL_GD_BOUND __MSABI_LONG(0x00000008)
1029 #if (ODBCVER >= 0x0380)
1030 #define SQL_GD_OUTPUT_PARAMS __MSABI_LONG(0x00000010)
1031 #endif
1032
1033 #define SQL_PS_POSITIONED_DELETE __MSABI_LONG(0x00000001)
1034 #define SQL_PS_POSITIONED_UPDATE __MSABI_LONG(0x00000002)
1035 #define SQL_PS_SELECT_FOR_UPDATE __MSABI_LONG(0x00000004)
1036
1037 #define SQL_GB_NOT_SUPPORTED 0x0000
1038 #define SQL_GB_GROUP_BY_EQUALS_SELECT 0x0001
1039 #define SQL_GB_GROUP_BY_CONTAINS_SELECT 0x0002
1040 #define SQL_GB_NO_RELATION 0x0003
1041 #if (ODBCVER >= 0x0300)
1042 #define SQL_GB_COLLATE 0x0004
1043 #endif
1044
1045 #define SQL_OU_DML_STATEMENTS __MSABI_LONG(0x00000001)
1046 #define SQL_OU_PROCEDURE_INVOCATION __MSABI_LONG(0x00000002)
1047 #define SQL_OU_TABLE_DEFINITION __MSABI_LONG(0x00000004)
1048 #define SQL_OU_INDEX_DEFINITION __MSABI_LONG(0x00000008)
1049 #define SQL_OU_PRIVILEGE_DEFINITION __MSABI_LONG(0x00000010)
1050
1051 #if (ODBCVER >= 0x0300)
1052 #define SQL_SU_DML_STATEMENTS SQL_OU_DML_STATEMENTS
1053 #define SQL_SU_PROCEDURE_INVOCATION SQL_OU_PROCEDURE_INVOCATION
1054 #define SQL_SU_TABLE_DEFINITION SQL_OU_TABLE_DEFINITION
1055 #define SQL_SU_INDEX_DEFINITION SQL_OU_INDEX_DEFINITION
1056 #define SQL_SU_PRIVILEGE_DEFINITION SQL_OU_PRIVILEGE_DEFINITION
1057 #endif
1058
1059 #define SQL_QU_DML_STATEMENTS __MSABI_LONG(0x00000001)
1060 #define SQL_QU_PROCEDURE_INVOCATION __MSABI_LONG(0x00000002)
1061 #define SQL_QU_TABLE_DEFINITION __MSABI_LONG(0x00000004)
1062 #define SQL_QU_INDEX_DEFINITION __MSABI_LONG(0x00000008)
1063 #define SQL_QU_PRIVILEGE_DEFINITION __MSABI_LONG(0x00000010)
1064
1065 #if (ODBCVER >= 0x0300)
1066
1067 #define SQL_CU_DML_STATEMENTS SQL_QU_DML_STATEMENTS
1068 #define SQL_CU_PROCEDURE_INVOCATION SQL_QU_PROCEDURE_INVOCATION
1069 #define SQL_CU_TABLE_DEFINITION SQL_QU_TABLE_DEFINITION
1070 #define SQL_CU_INDEX_DEFINITION SQL_QU_INDEX_DEFINITION
1071 #define SQL_CU_PRIVILEGE_DEFINITION SQL_QU_PRIVILEGE_DEFINITION
1072 #endif
1073
1074 #define SQL_SQ_COMPARISON __MSABI_LONG(0x00000001)
1075 #define SQL_SQ_EXISTS __MSABI_LONG(0x00000002)
1076 #define SQL_SQ_IN __MSABI_LONG(0x00000004)
1077 #define SQL_SQ_QUANTIFIED __MSABI_LONG(0x00000008)
1078 #define SQL_SQ_CORRELATED_SUBQUERIES __MSABI_LONG(0x00000010)
1079
1080 #define SQL_U_UNION __MSABI_LONG(0x00000001)
1081 #define SQL_U_UNION_ALL __MSABI_LONG(0x00000002)
1082
1083 #define SQL_BP_CLOSE __MSABI_LONG(0x00000001)
1084 #define SQL_BP_DELETE __MSABI_LONG(0x00000002)
1085 #define SQL_BP_DROP __MSABI_LONG(0x00000004)
1086 #define SQL_BP_TRANSACTION __MSABI_LONG(0x00000008)
1087 #define SQL_BP_UPDATE __MSABI_LONG(0x00000010)
1088 #define SQL_BP_OTHER_HSTMT __MSABI_LONG(0x00000020)
1089 #define SQL_BP_SCROLL __MSABI_LONG(0x00000040)
1090
1091 #define SQL_SS_ADDITIONS __MSABI_LONG(0x00000001)
1092 #define SQL_SS_DELETIONS __MSABI_LONG(0x00000002)
1093 #define SQL_SS_UPDATES __MSABI_LONG(0x00000004)
1094
1095 #define SQL_CV_CREATE_VIEW __MSABI_LONG(0x00000001)
1096 #define SQL_CV_CHECK_OPTION __MSABI_LONG(0x00000002)
1097 #define SQL_CV_CASCADED __MSABI_LONG(0x00000004)
1098 #define SQL_CV_LOCAL __MSABI_LONG(0x00000008)
1099
1100 #define SQL_LCK_NO_CHANGE __MSABI_LONG(0x00000001)
1101 #define SQL_LCK_EXCLUSIVE __MSABI_LONG(0x00000002)
1102 #define SQL_LCK_UNLOCK __MSABI_LONG(0x00000004)
1103
1104 #define SQL_POS_POSITION __MSABI_LONG(0x00000001)
1105 #define SQL_POS_REFRESH __MSABI_LONG(0x00000002)
1106 #define SQL_POS_UPDATE __MSABI_LONG(0x00000004)
1107 #define SQL_POS_DELETE __MSABI_LONG(0x00000008)
1108 #define SQL_POS_ADD __MSABI_LONG(0x00000010)
1109
1110 #define SQL_QL_START 0x0001
1111 #define SQL_QL_END 0x0002
1112
1113 #if (ODBCVER >= 0x0300)
1114
1115 #define SQL_AF_AVG __MSABI_LONG(0x00000001)
1116 #define SQL_AF_COUNT __MSABI_LONG(0x00000002)
1117 #define SQL_AF_MAX __MSABI_LONG(0x00000004)
1118 #define SQL_AF_MIN __MSABI_LONG(0x00000008)
1119 #define SQL_AF_SUM __MSABI_LONG(0x00000010)
1120 #define SQL_AF_DISTINCT __MSABI_LONG(0x00000020)
1121 #define SQL_AF_ALL __MSABI_LONG(0x00000040)
1122
1123 #define SQL_SC_SQL92_ENTRY __MSABI_LONG(0x00000001)
1124 #define SQL_SC_FIPS127_2_TRANSITIONAL __MSABI_LONG(0x00000002)
1125 #define SQL_SC_SQL92_INTERMEDIATE __MSABI_LONG(0x00000004)
1126 #define SQL_SC_SQL92_FULL __MSABI_LONG(0x00000008)
1127
1128 #define SQL_DL_SQL92_DATE __MSABI_LONG(0x00000001)
1129 #define SQL_DL_SQL92_TIME __MSABI_LONG(0x00000002)
1130 #define SQL_DL_SQL92_TIMESTAMP __MSABI_LONG(0x00000004)
1131 #define SQL_DL_SQL92_INTERVAL_YEAR __MSABI_LONG(0x00000008)
1132 #define SQL_DL_SQL92_INTERVAL_MONTH __MSABI_LONG(0x00000010)
1133 #define SQL_DL_SQL92_INTERVAL_DAY __MSABI_LONG(0x00000020)
1134 #define SQL_DL_SQL92_INTERVAL_HOUR __MSABI_LONG(0x00000040)
1135 #define SQL_DL_SQL92_INTERVAL_MINUTE __MSABI_LONG(0x00000080)
1136 #define SQL_DL_SQL92_INTERVAL_SECOND __MSABI_LONG(0x00000100)
1137 #define SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH __MSABI_LONG(0x00000200)
1138 #define SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR __MSABI_LONG(0x00000400)
1139 #define SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE __MSABI_LONG(0x00000800)
1140 #define SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND __MSABI_LONG(0x00001000)
1141 #define SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE __MSABI_LONG(0x00002000)
1142 #define SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND __MSABI_LONG(0x00004000)
1143 #define SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND __MSABI_LONG(0x00008000)
1144
1145 #define SQL_CL_START SQL_QL_START
1146 #define SQL_CL_END SQL_QL_END
1147
1148 #define SQL_BRC_PROCEDURES 0x0000001
1149 #define SQL_BRC_EXPLICIT 0x0000002
1150 #define SQL_BRC_ROLLED_UP 0x0000004
1151
1152 #define SQL_BS_SELECT_EXPLICIT __MSABI_LONG(0x00000001)
1153 #define SQL_BS_ROW_COUNT_EXPLICIT __MSABI_LONG(0x00000002)
1154 #define SQL_BS_SELECT_PROC __MSABI_LONG(0x00000004)
1155 #define SQL_BS_ROW_COUNT_PROC __MSABI_LONG(0x00000008)
1156
1157 #define SQL_PARC_BATCH 1
1158 #define SQL_PARC_NO_BATCH 2
1159
1160 #define SQL_PAS_BATCH 1
1161 #define SQL_PAS_NO_BATCH 2
1162 #define SQL_PAS_NO_SELECT 3
1163
1164 #define SQL_IK_NONE __MSABI_LONG(0x00000000)
1165 #define SQL_IK_ASC __MSABI_LONG(0x00000001)
1166 #define SQL_IK_DESC __MSABI_LONG(0x00000002)
1167 #define SQL_IK_ALL (SQL_IK_ASC | SQL_IK_DESC)
1168
1169 #define SQL_ISV_ASSERTIONS __MSABI_LONG(0x00000001)
1170 #define SQL_ISV_CHARACTER_SETS __MSABI_LONG(0x00000002)
1171 #define SQL_ISV_CHECK_CONSTRAINTS __MSABI_LONG(0x00000004)
1172 #define SQL_ISV_COLLATIONS __MSABI_LONG(0x00000008)
1173 #define SQL_ISV_COLUMN_DOMAIN_USAGE __MSABI_LONG(0x00000010)
1174 #define SQL_ISV_COLUMN_PRIVILEGES __MSABI_LONG(0x00000020)
1175 #define SQL_ISV_COLUMNS __MSABI_LONG(0x00000040)
1176 #define SQL_ISV_CONSTRAINT_COLUMN_USAGE __MSABI_LONG(0x00000080)
1177 #define SQL_ISV_CONSTRAINT_TABLE_USAGE __MSABI_LONG(0x00000100)
1178 #define SQL_ISV_DOMAIN_CONSTRAINTS __MSABI_LONG(0x00000200)
1179 #define SQL_ISV_DOMAINS __MSABI_LONG(0x00000400)
1180 #define SQL_ISV_KEY_COLUMN_USAGE __MSABI_LONG(0x00000800)
1181 #define SQL_ISV_REFERENTIAL_CONSTRAINTS __MSABI_LONG(0x00001000)
1182 #define SQL_ISV_SCHEMATA __MSABI_LONG(0x00002000)
1183 #define SQL_ISV_SQL_LANGUAGES __MSABI_LONG(0x00004000)
1184 #define SQL_ISV_TABLE_CONSTRAINTS __MSABI_LONG(0x00008000)
1185 #define SQL_ISV_TABLE_PRIVILEGES __MSABI_LONG(0x00010000)
1186 #define SQL_ISV_TABLES __MSABI_LONG(0x00020000)
1187 #define SQL_ISV_TRANSLATIONS __MSABI_LONG(0x00040000)
1188 #define SQL_ISV_USAGE_PRIVILEGES __MSABI_LONG(0x00080000)
1189 #define SQL_ISV_VIEW_COLUMN_USAGE __MSABI_LONG(0x00100000)
1190 #define SQL_ISV_VIEW_TABLE_USAGE __MSABI_LONG(0x00200000)
1191 #define SQL_ISV_VIEWS __MSABI_LONG(0x00400000)
1192
1193 #define SQL_AM_NONE 0
1194 #define SQL_AM_CONNECTION 1
1195 #define SQL_AM_STATEMENT 2
1196
1197 #define SQL_AD_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00000001)
1198 #define SQL_AD_ADD_DOMAIN_CONSTRAINT __MSABI_LONG(0x00000002)
1199 #define SQL_AD_DROP_DOMAIN_CONSTRAINT __MSABI_LONG(0x00000004)
1200 #define SQL_AD_ADD_DOMAIN_DEFAULT __MSABI_LONG(0x00000008)
1201 #define SQL_AD_DROP_DOMAIN_DEFAULT __MSABI_LONG(0x00000010)
1202 #define SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000020)
1203 #define SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000040)
1204 #define SQL_AD_ADD_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000080)
1205 #define SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000100)
1206
1207 #define SQL_CS_CREATE_SCHEMA __MSABI_LONG(0x00000001)
1208 #define SQL_CS_AUTHORIZATION __MSABI_LONG(0x00000002)
1209 #define SQL_CS_DEFAULT_CHARACTER_SET __MSABI_LONG(0x00000004)
1210
1211 #define SQL_CTR_CREATE_TRANSLATION __MSABI_LONG(0x00000001)
1212
1213 #define SQL_CA_CREATE_ASSERTION __MSABI_LONG(0x00000001)
1214 #define SQL_CA_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000010)
1215 #define SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000020)
1216 #define SQL_CA_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000040)
1217 #define SQL_CA_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000080)
1218
1219 #define SQL_CCS_CREATE_CHARACTER_SET __MSABI_LONG(0x00000001)
1220 #define SQL_CCS_COLLATE_CLAUSE __MSABI_LONG(0x00000002)
1221 #define SQL_CCS_LIMITED_COLLATION __MSABI_LONG(0x00000004)
1222
1223 #define SQL_CCOL_CREATE_COLLATION __MSABI_LONG(0x00000001)
1224
1225 #define SQL_CDO_CREATE_DOMAIN __MSABI_LONG(0x00000001)
1226 #define SQL_CDO_DEFAULT __MSABI_LONG(0x00000002)
1227 #define SQL_CDO_CONSTRAINT __MSABI_LONG(0x00000004)
1228 #define SQL_CDO_COLLATION __MSABI_LONG(0x00000008)
1229 #define SQL_CDO_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00000010)
1230 #define SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000020)
1231 #define SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000040)
1232 #define SQL_CDO_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000080)
1233 #define SQL_CDO_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000100)
1234
1235 #define SQL_CT_CREATE_TABLE __MSABI_LONG(0x00000001)
1236 #define SQL_CT_COMMIT_PRESERVE __MSABI_LONG(0x00000002)
1237 #define SQL_CT_COMMIT_DELETE __MSABI_LONG(0x00000004)
1238 #define SQL_CT_GLOBAL_TEMPORARY __MSABI_LONG(0x00000008)
1239 #define SQL_CT_LOCAL_TEMPORARY __MSABI_LONG(0x00000010)
1240 #define SQL_CT_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000020)
1241 #define SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000040)
1242 #define SQL_CT_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000080)
1243 #define SQL_CT_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000100)
1244 #define SQL_CT_COLUMN_CONSTRAINT __MSABI_LONG(0x00000200)
1245 #define SQL_CT_COLUMN_DEFAULT __MSABI_LONG(0x00000400)
1246 #define SQL_CT_COLUMN_COLLATION __MSABI_LONG(0x00000800)
1247 #define SQL_CT_TABLE_CONSTRAINT __MSABI_LONG(0x00001000)
1248 #define SQL_CT_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00002000)
1249
1250 #define SQL_DI_CREATE_INDEX __MSABI_LONG(0x00000001)
1251 #define SQL_DI_DROP_INDEX __MSABI_LONG(0x00000002)
1252
1253 #define SQL_DC_DROP_COLLATION __MSABI_LONG(0x00000001)
1254
1255 #define SQL_DD_DROP_DOMAIN __MSABI_LONG(0x00000001)
1256 #define SQL_DD_RESTRICT __MSABI_LONG(0x00000002)
1257 #define SQL_DD_CASCADE __MSABI_LONG(0x00000004)
1258
1259 #define SQL_DS_DROP_SCHEMA __MSABI_LONG(0x00000001)
1260 #define SQL_DS_RESTRICT __MSABI_LONG(0x00000002)
1261 #define SQL_DS_CASCADE __MSABI_LONG(0x00000004)
1262
1263 #define SQL_DCS_DROP_CHARACTER_SET __MSABI_LONG(0x00000001)
1264
1265 #define SQL_DA_DROP_ASSERTION __MSABI_LONG(0x00000001)
1266
1267 #define SQL_DT_DROP_TABLE __MSABI_LONG(0x00000001)
1268 #define SQL_DT_RESTRICT __MSABI_LONG(0x00000002)
1269 #define SQL_DT_CASCADE __MSABI_LONG(0x00000004)
1270
1271 #define SQL_DTR_DROP_TRANSLATION __MSABI_LONG(0x00000001)
1272
1273 #define SQL_DV_DROP_VIEW __MSABI_LONG(0x00000001)
1274 #define SQL_DV_RESTRICT __MSABI_LONG(0x00000002)
1275 #define SQL_DV_CASCADE __MSABI_LONG(0x00000004)
1276
1277 #define SQL_IS_INSERT_LITERALS __MSABI_LONG(0x00000001)
1278 #define SQL_IS_INSERT_SEARCHED __MSABI_LONG(0x00000002)
1279 #define SQL_IS_SELECT_INTO __MSABI_LONG(0x00000004)
1280
1281 #define SQL_OIC_CORE __MSABI_LONG(1U)
1282 #define SQL_OIC_LEVEL1 __MSABI_LONG(2U)
1283 #define SQL_OIC_LEVEL2 __MSABI_LONG(3U)
1284
1285 #define SQL_SFKD_CASCADE __MSABI_LONG(0x00000001)
1286 #define SQL_SFKD_NO_ACTION __MSABI_LONG(0x00000002)
1287 #define SQL_SFKD_SET_DEFAULT __MSABI_LONG(0x00000004)
1288 #define SQL_SFKD_SET_NULL __MSABI_LONG(0x00000008)
1289
1290 #define SQL_SFKU_CASCADE __MSABI_LONG(0x00000001)
1291 #define SQL_SFKU_NO_ACTION __MSABI_LONG(0x00000002)
1292 #define SQL_SFKU_SET_DEFAULT __MSABI_LONG(0x00000004)
1293 #define SQL_SFKU_SET_NULL __MSABI_LONG(0x00000008)
1294
1295 #define SQL_SG_USAGE_ON_DOMAIN __MSABI_LONG(0x00000001)
1296 #define SQL_SG_USAGE_ON_CHARACTER_SET __MSABI_LONG(0x00000002)
1297 #define SQL_SG_USAGE_ON_COLLATION __MSABI_LONG(0x00000004)
1298 #define SQL_SG_USAGE_ON_TRANSLATION __MSABI_LONG(0x00000008)
1299 #define SQL_SG_WITH_GRANT_OPTION __MSABI_LONG(0x00000010)
1300 #define SQL_SG_DELETE_TABLE __MSABI_LONG(0x00000020)
1301 #define SQL_SG_INSERT_TABLE __MSABI_LONG(0x00000040)
1302 #define SQL_SG_INSERT_COLUMN __MSABI_LONG(0x00000080)
1303 #define SQL_SG_REFERENCES_TABLE __MSABI_LONG(0x00000100)
1304 #define SQL_SG_REFERENCES_COLUMN __MSABI_LONG(0x00000200)
1305 #define SQL_SG_SELECT_TABLE __MSABI_LONG(0x00000400)
1306 #define SQL_SG_UPDATE_TABLE __MSABI_LONG(0x00000800)
1307 #define SQL_SG_UPDATE_COLUMN __MSABI_LONG(0x00001000)
1308
1309 #define SQL_SP_EXISTS __MSABI_LONG(0x00000001)
1310 #define SQL_SP_ISNOTNULL __MSABI_LONG(0x00000002)
1311 #define SQL_SP_ISNULL __MSABI_LONG(0x00000004)
1312 #define SQL_SP_MATCH_FULL __MSABI_LONG(0x00000008)
1313 #define SQL_SP_MATCH_PARTIAL __MSABI_LONG(0x00000010)
1314 #define SQL_SP_MATCH_UNIQUE_FULL __MSABI_LONG(0x00000020)
1315 #define SQL_SP_MATCH_UNIQUE_PARTIAL __MSABI_LONG(0x00000040)
1316 #define SQL_SP_OVERLAPS __MSABI_LONG(0x00000080)
1317 #define SQL_SP_UNIQUE __MSABI_LONG(0x00000100)
1318 #define SQL_SP_LIKE __MSABI_LONG(0x00000200)
1319 #define SQL_SP_IN __MSABI_LONG(0x00000400)
1320 #define SQL_SP_BETWEEN __MSABI_LONG(0x00000800)
1321 #define SQL_SP_COMPARISON __MSABI_LONG(0x00001000)
1322 #define SQL_SP_QUANTIFIED_COMPARISON __MSABI_LONG(0x00002000)
1323
1324 #define SQL_SRJO_CORRESPONDING_CLAUSE __MSABI_LONG(0x00000001)
1325 #define SQL_SRJO_CROSS_JOIN __MSABI_LONG(0x00000002)
1326 #define SQL_SRJO_EXCEPT_JOIN __MSABI_LONG(0x00000004)
1327 #define SQL_SRJO_FULL_OUTER_JOIN __MSABI_LONG(0x00000008)
1328 #define SQL_SRJO_INNER_JOIN __MSABI_LONG(0x00000010)
1329 #define SQL_SRJO_INTERSECT_JOIN __MSABI_LONG(0x00000020)
1330 #define SQL_SRJO_LEFT_OUTER_JOIN __MSABI_LONG(0x00000040)
1331 #define SQL_SRJO_NATURAL_JOIN __MSABI_LONG(0x00000080)
1332 #define SQL_SRJO_RIGHT_OUTER_JOIN __MSABI_LONG(0x00000100)
1333 #define SQL_SRJO_UNION_JOIN __MSABI_LONG(0x00000200)
1334
1335 #define SQL_SR_USAGE_ON_DOMAIN __MSABI_LONG(0x00000001)
1336 #define SQL_SR_USAGE_ON_CHARACTER_SET __MSABI_LONG(0x00000002)
1337 #define SQL_SR_USAGE_ON_COLLATION __MSABI_LONG(0x00000004)
1338 #define SQL_SR_USAGE_ON_TRANSLATION __MSABI_LONG(0x00000008)
1339 #define SQL_SR_GRANT_OPTION_FOR __MSABI_LONG(0x00000010)
1340 #define SQL_SR_CASCADE __MSABI_LONG(0x00000020)
1341 #define SQL_SR_RESTRICT __MSABI_LONG(0x00000040)
1342 #define SQL_SR_DELETE_TABLE __MSABI_LONG(0x00000080)
1343 #define SQL_SR_INSERT_TABLE __MSABI_LONG(0x00000100)
1344 #define SQL_SR_INSERT_COLUMN __MSABI_LONG(0x00000200)
1345 #define SQL_SR_REFERENCES_TABLE __MSABI_LONG(0x00000400)
1346 #define SQL_SR_REFERENCES_COLUMN __MSABI_LONG(0x00000800)
1347 #define SQL_SR_SELECT_TABLE __MSABI_LONG(0x00001000)
1348 #define SQL_SR_UPDATE_TABLE __MSABI_LONG(0x00002000)
1349 #define SQL_SR_UPDATE_COLUMN __MSABI_LONG(0x00004000)
1350
1351 #define SQL_SRVC_VALUE_EXPRESSION __MSABI_LONG(0x00000001)
1352 #define SQL_SRVC_NULL __MSABI_LONG(0x00000002)
1353 #define SQL_SRVC_DEFAULT __MSABI_LONG(0x00000004)
1354 #define SQL_SRVC_ROW_SUBQUERY __MSABI_LONG(0x00000008)
1355
1356 #define SQL_SVE_CASE __MSABI_LONG(0x00000001)
1357 #define SQL_SVE_CAST __MSABI_LONG(0x00000002)
1358 #define SQL_SVE_COALESCE __MSABI_LONG(0x00000004)
1359 #define SQL_SVE_NULLIF __MSABI_LONG(0x00000008)
1360
1361 #define SQL_SCC_XOPEN_CLI_VERSION1 __MSABI_LONG(0x00000001)
1362 #define SQL_SCC_ISO92_CLI __MSABI_LONG(0x00000002)
1363
1364 #define SQL_US_UNION SQL_U_UNION
1365 #define SQL_US_UNION_ALL SQL_U_UNION_ALL
1366
1367 #define SQL_DRIVER_AWARE_POOLING_NOT_CAPABLE __MSABI_LONG(0x00000000)
1368 #define SQL_DRIVER_AWARE_POOLING_CAPABLE __MSABI_LONG(0x00000001)
1369 #endif
1370
1371 #define SQL_DTC_ENLIST_EXPENSIVE __MSABI_LONG(0x00000001)
1372 #define SQL_DTC_UNENLIST_EXPENSIVE __MSABI_LONG(0x00000002)
1373
1374 #if (ODBCVER >= 0x0380)
1375 #define SQL_ASYNC_DBC_NOT_CAPABLE __MSABI_LONG(0x00000000)
1376 #define SQL_ASYNC_DBC_CAPABLE __MSABI_LONG(0x00000001)
1377 #endif
1378
1379 #if (ODBCVER >= 0x0300)
1380 #define SQL_FETCH_FIRST_USER 31
1381 #define SQL_FETCH_FIRST_SYSTEM 32
1382 #endif
1383
1384 #define SQL_ENTIRE_ROWSET 0
1385
1386 #define SQL_POSITION 0
1387 #define SQL_REFRESH 1
1388 #define SQL_UPDATE 2
1389 #define SQL_DELETE 3
1390
1391 #define SQL_ADD 4
1392 #define SQL_SETPOS_MAX_OPTION_VALUE SQL_ADD
1393 #if (ODBCVER >= 0x0300)
1394 #define SQL_UPDATE_BY_BOOKMARK 5
1395 #define SQL_DELETE_BY_BOOKMARK 6
1396 #define SQL_FETCH_BY_BOOKMARK 7
1397 #endif
1398
1399 #define SQL_LOCK_NO_CHANGE 0
1400 #define SQL_LOCK_EXCLUSIVE 1
1401 #define SQL_LOCK_UNLOCK 2
1402
1403 #define SQL_SETPOS_MAX_LOCK_VALUE SQL_LOCK_UNLOCK
1404
1405 #define SQL_POSITION_TO(hstmt,irow) SQLSetPos(hstmt,irow,SQL_POSITION,SQL_LOCK_NO_CHANGE)
1406 #define SQL_LOCK_RECORD(hstmt,irow,fLock) SQLSetPos(hstmt,irow,SQL_POSITION,fLock)
1407 #define SQL_REFRESH_RECORD(hstmt,irow,fLock) SQLSetPos(hstmt,irow,SQL_REFRESH,fLock)
1408 #define SQL_UPDATE_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_UPDATE,SQL_LOCK_NO_CHANGE)
1409 #define SQL_DELETE_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_DELETE,SQL_LOCK_NO_CHANGE)
1410 #define SQL_ADD_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_ADD,SQL_LOCK_NO_CHANGE)
1411
1412 #define SQL_BEST_ROWID 1
1413 #define SQL_ROWVER 2
1414
1415 #define SQL_PC_NOT_PSEUDO 1
1416
1417 #define SQL_QUICK 0
1418 #define SQL_ENSURE 1
1419
1420 #define SQL_TABLE_STAT 0
1421
1422 #if (ODBCVER >= 0x0300)
1423 #define SQL_ALL_CATALOGS "%"
1424 #define SQL_ALL_SCHEMAS "%"
1425 #define SQL_ALL_TABLE_TYPES "%"
1426 #endif
1427
1428 #define SQL_DRIVER_NOPROMPT 0
1429 #define SQL_DRIVER_COMPLETE 1
1430 #define SQL_DRIVER_PROMPT 2
1431 #define SQL_DRIVER_COMPLETE_REQUIRED 3
1432
1433 #ifndef RC_INVOKED
1434
1435 SQLRETURN SQL_API SQLDriverConnect(SQLHDBC hdbc,SQLHWND hwnd,SQLCHAR *szConnStrIn,SQLSMALLINT cbConnStrIn,SQLCHAR *szConnStrOut,SQLSMALLINT cbConnStrOutMax,SQLSMALLINT *pcbConnStrOut,SQLUSMALLINT fDriverCompletion);
1436 #endif
1437
1438 #define SQL_FETCH_BOOKMARK 8
1439
1440 #define SQL_ROW_SUCCESS 0
1441 #define SQL_ROW_DELETED 1
1442 #define SQL_ROW_UPDATED 2
1443 #define SQL_ROW_NOROW 3
1444 #define SQL_ROW_ADDED 4
1445 #define SQL_ROW_ERROR 5
1446 #if (ODBCVER >= 0x0300)
1447 #define SQL_ROW_SUCCESS_WITH_INFO 6
1448 #define SQL_ROW_PROCEED 0
1449 #define SQL_ROW_IGNORE 1
1450 #endif
1451
1452 #if (ODBCVER >= 0x0300)
1453 #define SQL_PARAM_SUCCESS 0
1454 #define SQL_PARAM_SUCCESS_WITH_INFO 6
1455 #define SQL_PARAM_ERROR 5
1456 #define SQL_PARAM_UNUSED 7
1457 #define SQL_PARAM_DIAG_UNAVAILABLE 1
1458
1459 #define SQL_PARAM_PROCEED 0
1460 #define SQL_PARAM_IGNORE 1
1461 #endif
1462
1463 #define SQL_CASCADE 0
1464 #define SQL_RESTRICT 1
1465 #define SQL_SET_NULL 2
1466 #if (ODBCVER >= 0x0250)
1467 #define SQL_NO_ACTION 3
1468 #define SQL_SET_DEFAULT 4
1469 #endif
1470
1471 #if (ODBCVER >= 0x0300)
1472
1473 #define SQL_INITIALLY_DEFERRED 5
1474 #define SQL_INITIALLY_IMMEDIATE 6
1475 #define SQL_NOT_DEFERRABLE 7
1476 #endif
1477
1478 #define SQL_PARAM_TYPE_UNKNOWN 0
1479 #define SQL_PARAM_INPUT 1
1480 #define SQL_PARAM_INPUT_OUTPUT 2
1481 #define SQL_RESULT_COL 3
1482 #define SQL_PARAM_OUTPUT 4
1483 #define SQL_RETURN_VALUE 5
1484 #if (ODBCVER >= 0x0380)
1485 #define SQL_PARAM_INPUT_OUTPUT_STREAM 8
1486 #define SQL_PARAM_OUTPUT_STREAM 16
1487 #endif
1488
1489 #define SQL_PT_UNKNOWN 0
1490 #define SQL_PT_PROCEDURE 1
1491 #define SQL_PT_FUNCTION 2
1492
1493 #ifndef RC_INVOKED
1494 #define SQL_ODBC_KEYWORDS "ABSOLUTE,ACTION,ADA,ADD,ALL,ALLOCATE,ALTER,AND,ANY,ARE,AS,""ASC,ASSERTION,AT,AUTHORIZATION,AVG,""BEGIN,BETWEEN,BIT,BIT_LENGTH,BOTH,BY,CASCADE,CASCADED,CASE,CAST,CATALOG,""CHAR,CHAR_LENGTH,CHARACTER,CHARACTER_LENGTH,CHECK,CLOSE,COALESCE,""COLLATE,COLLATION,COLUMN,COMMIT,CONNECT,CONNECTION,CONSTRAINT,""CONSTRAINTS,CONTINUE,CONVERT,CORRESPONDING,COUNT,CREATE,CROSS,CURRENT,""CURRENT_DATE,CURRENT_TIME,CURRENT_TIMESTAMP,CURRENT_USER,CURSOR,""DATE,DAY,DEALLOCATE,DEC,DECIMAL,DECLARE,DEFAULT,DEFERRABLE,""DEFERRED,DELETE,DESC,DESCRIBE,DESCRIPTOR,DIAGNOSTICS,DISCONNECT,""DISTINCT,DOMAIN,DOUBLE,DROP,""ELSE,END,END-EXEC,ESCAPE,EXCEPT,EXCEPTION,EXEC,EXECUTE,""EXISTS,EXTERNAL,EXTRACT,""FALSE,FETCH,FIRST,FLOAT,FOR,FOREIGN,FORTRAN,FOUND,FROM,FULL,""GET,GLOBAL,GO,GOTO,GRANT,GROUP,HAVING,HOUR,""IDENTITY,IMMEDIATE,IN,INCLUDE,INDEX,INDICATOR,INITIALLY,INNER,""INPUT,INSENSITIVE,INSERT,INT,INTEGER,INTERSECT,INTERVAL,INTO,IS,ISOLATION,""JOIN,KEY,LANGUAGE,LAST,LEADING,LEFT,LEVEL,LIKE,LOCAL,LOWER,""MATCH,MAX,MIN,MINUTE,MODULE,MONTH,""NAMES,NATIONAL,NATURAL,NCHAR,NEXT,NO,NONE,NOT,NULL,NULLIF,NUMERIC,""OCTET_LENGTH,OF,ON,ONLY,OPEN,OPTION,OR,ORDER,OUTER,OUTPUT,OVERLAPS,""PAD,PARTIAL,PASCAL,PLI,POSITION,PRECISION,PREPARE,PRESERVE,""PRIMARY,PRIOR,PRIVILEGES,PROCEDURE,PUBLIC,""READ,REAL,REFERENCES,RELATIVE,RESTRICT,REVOKE,RIGHT,ROLLBACK,ROWS""SCHEMA,SCROLL,SECOND,SECTION,SELECT,SESSION,SESSION_USER,SET,SIZE,""SMALLINT,SOME,SPACE,SQL,SQLCA,SQLCODE,SQLERROR,SQLSTATE,SQLWARNING,""SUBSTRING,SUM,SYSTEM_USER,""TABLE,TEMPORARY,THEN,TIME,TIMESTAMP,TIMEZONE_HOUR,TIMEZONE_MINUTE,""TO,TRAILING,TRANSACTION,TRANSLATE,TRANSLATION,TRIM,TRUE,""UNION,UNIQUE,UNKNOWN,UPDATE,UPPER,USAGE,USER,USING,""VALUE,VALUES,VARCHAR,VARYING,VIEW,WHEN,WHENEVER,WHERE,WITH,WORK,WRITE,""YEAR,ZONE"
1495
1496 SQLRETURN SQL_API SQLBrowseConnect(SQLHDBC hdbc,SQLCHAR *szConnStrIn,SQLSMALLINT cbConnStrIn,SQLCHAR *szConnStrOut,SQLSMALLINT cbConnStrOutMax,SQLSMALLINT *pcbConnStrOut);
1497 #if (ODBCVER >= 0x0300)
1498 SQLRETURN SQL_API SQLBulkOperations(SQLHSTMT StatementHandle,SQLSMALLINT Operation);
1499 #endif
1500 SQLRETURN SQL_API SQLColAttributes(SQLHSTMT hstmt,SQLUSMALLINT icol,SQLUSMALLINT fDescType,SQLPOINTER rgbDesc,SQLSMALLINT cbDescMax,SQLSMALLINT *pcbDesc,SQLLEN *pfDesc);
1501 SQLRETURN SQL_API SQLColumnPrivileges(SQLHSTMT hstmt,SQLCHAR *szCatalogName,SQLSMALLINT cbCatalogName,SQLCHAR *szSchemaName,SQLSMALLINT cbSchemaName,SQLCHAR *szTableName,SQLSMALLINT cbTableName,SQLCHAR *szColumnName,SQLSMALLINT cbColumnName);
1502 SQLRETURN SQL_API SQLDescribeParam(SQLHSTMT hstmt,SQLUSMALLINT ipar,SQLSMALLINT *pfSqlType,SQLULEN *pcbParamDef,SQLSMALLINT *pibScale,SQLSMALLINT *pfNullable);
1503 SQLRETURN SQL_API SQLExtendedFetch(SQLHSTMT hstmt,SQLUSMALLINT fFetchType,SQLLEN irow,SQLULEN *pcrow,SQLUSMALLINT *rgfRowStatus);
1504 SQLRETURN SQL_API SQLForeignKeys(SQLHSTMT hstmt,SQLCHAR *szPkCatalogName,SQLSMALLINT cbPkCatalogName,SQLCHAR *szPkSchemaName,SQLSMALLINT cbPkSchemaName,SQLCHAR *szPkTableName,SQLSMALLINT cbPkTableName,SQLCHAR *szFkCatalogName,SQLSMALLINT cbFkCatalogName,SQLCHAR *szFkSchemaName,SQLSMALLINT cbFkSchemaName,SQLCHAR *szFkTableName,SQLSMALLINT cbFkTableName);
1505 SQLRETURN SQL_API SQLMoreResults(SQLHSTMT hstmt);
1506 SQLRETURN SQL_API SQLNativeSql(SQLHDBC hdbc,SQLCHAR *szSqlStrIn,SQLINTEGER cbSqlStrIn,SQLCHAR *szSqlStr,SQLINTEGER cbSqlStrMax,SQLINTEGER *pcbSqlStr);
1507 SQLRETURN SQL_API SQLNumParams(SQLHSTMT hstmt,SQLSMALLINT *pcpar);
1508 SQLRETURN SQL_API SQLParamOptions(SQLHSTMT hstmt,SQLULEN crow,SQLULEN *pirow);
1509 SQLRETURN SQL_API SQLPrimaryKeys(SQLHSTMT hstmt,SQLCHAR *szCatalogName,SQLSMALLINT cbCatalogName,SQLCHAR *szSchemaName,SQLSMALLINT cbSchemaName,SQLCHAR *szTableName,SQLSMALLINT cbTableName);
1510 SQLRETURN SQL_API SQLProcedureColumns(SQLHSTMT hstmt,SQLCHAR *szCatalogName,SQLSMALLINT cbCatalogName,SQLCHAR *szSchemaName,SQLSMALLINT cbSchemaName,SQLCHAR *szProcName,SQLSMALLINT cbProcName,SQLCHAR *szColumnName,SQLSMALLINT cbColumnName);
1511 SQLRETURN SQL_API SQLProcedures(SQLHSTMT hstmt,SQLCHAR *szCatalogName,SQLSMALLINT cbCatalogName,SQLCHAR *szSchemaName,SQLSMALLINT cbSchemaName,SQLCHAR *szProcName,SQLSMALLINT cbProcName);
1512 SQLRETURN SQL_API SQLSetPos(SQLHSTMT hstmt,SQLSETPOSIROW irow,SQLUSMALLINT fOption,SQLUSMALLINT fLock);
1513 SQLRETURN SQL_API SQLTablePrivileges(SQLHSTMT hstmt,SQLCHAR *szCatalogName,SQLSMALLINT cbCatalogName,SQLCHAR *szSchemaName,SQLSMALLINT cbSchemaName,SQLCHAR *szTableName,SQLSMALLINT cbTableName);
1514 SQLRETURN SQL_API SQLDrivers(SQLHENV henv,SQLUSMALLINT fDirection,SQLCHAR *szDriverDesc,SQLSMALLINT cbDriverDescMax,SQLSMALLINT *pcbDriverDesc,SQLCHAR *szDriverAttributes,SQLSMALLINT cbDrvrAttrMax,SQLSMALLINT *pcbDrvrAttr);
1515 SQLRETURN SQL_API SQLBindParameter(SQLHSTMT hstmt,SQLUSMALLINT ipar,SQLSMALLINT fParamType,SQLSMALLINT fCType,SQLSMALLINT fSqlType,SQLULEN cbColDef,SQLSMALLINT ibScale,SQLPOINTER rgbValue,SQLLEN cbValueMax,SQLLEN *pcbValue);
1516 #endif
1517
1518 #ifdef ODBC_STD
1519 #define SQLAllocHandle SQLAllocHandleStd
1520 #define SQLAllocEnv(phenv) SQLAllocHandleStd(SQL_HANDLE_ENV,SQL_NULL_HANDLE,phenv)
1521
1522 #define SQL_YEAR SQL_CODE_YEAR
1523 #define SQL_MONTH SQL_CODE_MONTH
1524 #define SQL_DAY SQL_CODE_DAY
1525 #define SQL_HOUR SQL_CODE_HOUR
1526 #define SQL_MINUTE SQL_CODE_MINUTE
1527 #define SQL_SECOND SQL_CODE_SECOND
1528 #define SQL_YEAR_TO_MONTH SQL_CODE_YEAR_TO_MONTH
1529 #define SQL_DAY_TO_HOUR SQL_CODE_DAY_TO_HOUR
1530 #define SQL_DAY_TO_MINUTE SQL_CODE_DAY_TO_MINUTE
1531 #define SQL_DAY_TO_SECOND SQL_CODE_DAY_TO_SECOND
1532 #define SQL_HOUR_TO_MINUTE SQL_CODE_HOUR_TO_MINUTE
1533 #define SQL_HOUR_TO_SECOND SQL_CODE_HOUR_TO_SECOND
1534 #define SQL_MINUTE_TO_SECOND SQL_CODE_MINUTE_TO_SECOND
1535 #endif
1536
1537 #if (ODBCVER >= 0x0300)
1538 #ifndef RC_INVOKED
1539 SQLRETURN SQL_API SQLAllocHandleStd(SQLSMALLINT fHandleType,SQLHANDLE hInput,SQLHANDLE *phOutput);
1540 #endif
1541 #endif
1542
1543 #define SQL_DATABASE_NAME 16
1544 #define SQL_FD_FETCH_PREV SQL_FD_FETCH_PRIOR
1545 #define SQL_FETCH_PREV SQL_FETCH_PRIOR
1546 #define SQL_CONCUR_TIMESTAMP SQL_CONCUR_ROWVER
1547 #define SQL_SCCO_OPT_TIMESTAMP SQL_SCCO_OPT_ROWVER
1548 #define SQL_CC_DELETE SQL_CB_DELETE
1549 #define SQL_CR_DELETE SQL_CB_DELETE
1550 #define SQL_CC_CLOSE SQL_CB_CLOSE
1551 #define SQL_CR_CLOSE SQL_CB_CLOSE
1552 #define SQL_CC_PRESERVE SQL_CB_PRESERVE
1553 #define SQL_CR_PRESERVE SQL_CB_PRESERVE
1554
1555 #define SQL_SCROLL_FORWARD_ONLY __MSABI_LONG(0)
1556 #define SQL_SCROLL_KEYSET_DRIVEN (__MSABI_LONG(-1))
1557 #define SQL_SCROLL_DYNAMIC (__MSABI_LONG(-2))
1558 #define SQL_SCROLL_STATIC (__MSABI_LONG(-3))
1559
1560 #ifndef RC_INVOKED
1561
1562 SQLRETURN SQL_API SQLSetScrollOptions(SQLHSTMT hstmt,SQLUSMALLINT fConcurrency,SQLLEN crowKeyset,SQLUSMALLINT crowRowset);
1563
1564 #define TRACE_VERSION 1000
1565
1566 RETCODE SQL_API TraceOpenLogFile(LPWSTR,LPWSTR,DWORD);
1567 RETCODE SQL_API TraceCloseLogFile();
1568 VOID SQL_API TraceReturn(RETCODE,RETCODE);
1569 DWORD SQL_API TraceVersion();
1570
1571 #define TRACE_ON __MSABI_LONG(0x00000001)
1572 #define TRACE_VS_EVENT_ON __MSABI_LONG(0x00000002)
1573
1574 RETCODE SQL_API TraceVSControl(DWORD);
1575
1576 WINBOOL SQL_API ODBCSetTryWaitValue(DWORD dwValue);
1577 DWORD SQL_API ODBCGetTryWaitValue();
1578
1579 #define ODBC_VS_FLAG_UNICODE_ARG __MSABI_LONG(0x00000001)
1580 #define ODBC_VS_FLAG_UNICODE_COR __MSABI_LONG(0x00000002)
1581 #define ODBC_VS_FLAG_RETCODE __MSABI_LONG(0x00000004)
1582 #define ODBC_VS_FLAG_STOP __MSABI_LONG(0x00000008)
1583
1584 typedef struct tagODBC_VS_ARGS {
1585 const GUID *pguidEvent;
1586 DWORD dwFlags;
1587 __C89_NAMELESS union {
1588 WCHAR *wszArg;
1589 CHAR *szArg;
1590 };
1591 __C89_NAMELESS union {
1592 WCHAR *wszCorrelation;
1593 CHAR *szCorrelation;
1594 };
1595 RETCODE RetCode;
1596 } ODBC_VS_ARGS,*PODBC_VS_ARGS;
1597 VOID SQL_API FireVSDebugEvent(PODBC_VS_ARGS);
1598 #endif
1599
1600 #ifdef __cplusplus
1601 }
1602 #endif
1603
1604 #include "sqlucode.h"
1605 #endif