7 #define SQL_SPEC_MAJOR 3
8 #define SQL_SPEC_MINOR 51
9 #define SQL_SPEC_STRING "03.51"
10 #define SQL_ACCESS_MODE 101
11 #define SQL_ACTIVE_CONNECTIONS 0
12 #define SQL_ACTIVE_STATEMENTS 1
14 #define SQL_ALL_EXCEPT_LIKE 2
15 #define SQL_API_ALL_FUNCTIONS 0
16 #define SQL_API_LOADBYORDINAL 199
17 #define SQL_API_SQLBINDPARAMETER 72
18 #define SQL_API_SQLBROWSECONNECT 55
19 #define SQL_API_SQLCOLATTRIBUTES 6
20 #define SQL_API_SQLCOLUMNPRIVILEGES 56
21 #define SQL_API_SQLDESCRIBEPARAM 58
22 #define SQL_API_SQLDRIVERCONNECT 41
23 #define SQL_API_SQLDRIVERS 71
24 #define SQL_API_SQLEXTENDEDFETCH 59
25 #define SQL_API_SQLFOREIGNKEYS 60
26 #define SQL_API_SQLMORERESULTS 61
27 #define SQL_API_SQLNATIVESQL 62
28 #define SQL_API_SQLNUMPARAMS 63
29 #define SQL_API_SQLPARAMOPTIONS 64
30 #define SQL_API_SQLPRIMARYKEYS 65
31 #define SQL_API_SQLPROCEDURECOLUMNS 66
32 #define SQL_API_SQLPROCEDURES 67
33 #define SQL_API_SQLSETPOS 68
34 #define SQL_API_SQLSETSCROLLOPTIONS 69
35 #define SQL_API_SQLTABLEPRIVILEGES 70
36 #define SQL_ASYNC_ENABLE 4
37 #define SQL_ASYNC_ENABLE_DEFAULT SQL_ASYNC_ENABLE_OFF
38 #define SQL_ASYNC_ENABLE_OFF 0UL
39 #define SQL_ASYNC_ENABLE_ON 1UL
40 #define SQL_ATTR_CONNECTION_DEAD 1209
41 #define SQL_ATTR_READONLY 0
42 #define SQL_ATTR_READWRITE_UNKNOWN 2
43 #define SQL_ATTR_WRITE 1
44 #define SQL_AUTOCOMMIT 102
45 #define SQL_AUTOCOMMIT_DEFAULT SQL_AUTOCOMMIT_ON
46 #define SQL_AUTOCOMMIT_OFF 0UL
47 #define SQL_AUTOCOMMIT_ON 1UL
48 #define SQL_BEST_ROWID 1
49 #define SQL_BIGINT (-5)
50 #define SQL_BINARY (-2)
51 #define SQL_BIND_BY_COLUMN 0UL
52 #define SQL_BIND_TYPE 5
53 #define SQL_BIND_TYPE_DEFAULT SQL_BIND_BY_COLUMN
55 #define SQL_BOOKMARK_PERSISTENCE 82
56 #define SQL_BP_CLOSE 1
57 #define SQL_BP_DELETE 2
59 #define SQL_BP_OTHER_HSTMT 32
60 #define SQL_BP_SCROLL 64
61 #define SQL_BP_TRANSACTION 8
62 #define SQL_BP_UPDATE 16
63 #define SQL_C_BINARY SQL_BINARY
64 #define SQL_C_BIT SQL_BIT
65 #define SQL_C_BOOKMARK SQL_C_ULONG
66 #define SQL_C_CHAR SQL_CHAR
67 #define SQL_C_DATE SQL_DATE
68 #define SQL_C_DEFAULT 99
69 #define SQL_C_DOUBLE SQL_DOUBLE
70 #define SQL_C_FLOAT SQL_REAL
71 #define SQL_C_LONG SQL_INTEGER
72 #define SQL_C_SHORT SQL_SMALLINT
73 #define SQL_C_SLONG (SQL_C_LONG+SQL_SIGNED_OFFSET)
74 #define SQL_C_SSHORT (SQL_C_SHORT+SQL_SIGNED_OFFSET)
75 #define SQL_C_STINYINT (SQL_TINYINT+SQL_SIGNED_OFFSET)
76 #define SQL_C_TIME SQL_TIME
77 #define SQL_C_TIMESTAMP SQL_TIMESTAMP
78 #define SQL_C_TINYINT SQL_TINYINT
79 #define SQL_C_ULONG (SQL_C_LONG+SQL_UNSIGNED_OFFSET)
80 #define SQL_C_USHORT (SQL_C_SHORT+SQL_UNSIGNED_OFFSET)
81 #define SQL_C_UTINYINT (SQL_TINYINT+SQL_UNSIGNED_OFFSET)
83 #define SQL_CB_NON_NULL 1
85 #define SQL_CC_CLOSE SQL_CB_CLOSE /* deprecated */
86 #define SQL_CC_DELETE SQL_CB_DELETE /* deprecated */
87 #define SQL_CC_PRESERVE SQL_CB_PRESERVE /* deprecated */
88 #define SQL_CD_FALSE 0L
89 #define SQL_CD_TRUE 1L
91 #define SQL_CN_DIFFERENT 1
93 #define SQL_COLATT_OPT_MAX SQL_COLUMN_LABEL
94 #define SQL_COLATT_OPT_MIN SQL_COLUMN_COUNT
95 #define SQL_COLUMN_ALIAS 87
96 #define SQL_COLUMN_AUTO_INCREMENT 11
97 #define SQL_COLUMN_CASE_SENSITIVE 12
98 #define SQL_COLUMN_COUNT 0
99 #define SQL_COLUMN_DISPLAY_SIZE 6
100 #define SQL_COLUMN_LABEL 18
101 #define SQL_COLUMN_LENGTH 3
102 #define SQL_COLUMN_MONEY 9
103 #define SQL_COLUMN_NAME 1
104 #define SQL_COLUMN_NULLABLE 7
105 #define SQL_COLUMN_OWNER_NAME 16
106 #define SQL_COLUMN_PRECISION 4
107 #define SQL_COLUMN_QUALIFIER_NAME 17
108 #define SQL_COLUMN_SCALE 5
109 #define SQL_COLUMN_SEARCHABLE 13
110 #define SQL_COLUMN_TABLE_NAME 15
111 #define SQL_COLUMN_TYPE 2
112 #define SQL_COLUMN_TYPE_NAME 14
113 #define SQL_COLUMN_UNSIGNED 8
114 #define SQL_COLUMN_UPDATABLE 10
115 #define SQL_CONCAT_NULL_BEHAVIOR 22
116 #define SQL_CONCUR_DEFAULT SQL_CONCUR_READ_ONLY
117 #define SQL_CONCUR_LOCK 2
118 #define SQL_CONCUR_READ_ONLY 1
119 #define SQL_CONCUR_ROWVER 3
120 #define SQL_CONCUR_TIMESTAMP SQL_CONCUR_ROWVER /* deprecated */
121 #define SQL_CONCUR_VALUES 4
122 #define SQL_CONCURRENCY 7
123 #define SQL_CONVERT_BIGINT 53
124 #define SQL_CONVERT_BINARY 54
125 #define SQL_CONVERT_BIT 55
126 #define SQL_CONVERT_CHAR 56
127 #define SQL_CONVERT_DATE 57
128 #define SQL_CONVERT_DECIMAL 58
129 #define SQL_CONVERT_DOUBLE 59
130 #define SQL_CONVERT_FLOAT 60
131 #define SQL_CONVERT_FUNCTIONS 48
132 #define SQL_CONVERT_INTEGER 61
133 #define SQL_CONVERT_LONGVARBINARY 71
134 #define SQL_CONVERT_LONGVARCHAR 62
135 #define SQL_CONVERT_NUMERIC 63
136 #define SQL_CONVERT_REAL 64
137 #define SQL_CONVERT_SMALLINT 65
138 #define SQL_CONVERT_TIME 66
139 #define SQL_CONVERT_TIMESTAMP 67
140 #define SQL_CONVERT_TINYINT 68
141 #define SQL_CONVERT_VARBINARY 69
142 #define SQL_CONVERT_VARCHAR 70
143 #define SQL_CORRELATION_NAME 74
144 #define SQL_CR_CLOSE SQL_CB_CLOSE /* deprecated */
145 #define SQL_CR_DELETE SQL_CB_DELETE /* deprecated */
146 #define SQL_CR_PRESERVE SQL_CB_PRESERVE /* deprecated */
147 #define SQL_CUR_DEFAULT SQL_CUR_USE_DRIVER
148 #define SQL_CUR_USE_DRIVER 2UL
149 #define SQL_CUR_USE_IF_NEEDED 0UL
150 #define SQL_CUR_USE_ODBC 1UL
151 #define SQL_CURRENT_QUALIFIER 109
152 #define SQL_CURSOR_DYNAMIC 2UL
153 #define SQL_CURSOR_FORWARD_ONLY 0UL
154 #define SQL_CURSOR_KEYSET_DRIVEN 1UL
155 #define SQL_CURSOR_ROLLBACK_BEHAVIOR 24
156 #define SQL_CURSOR_STATIC 3UL
157 #define SQL_CURSOR_TYPE 6
158 #define SQL_CURSOR_TYPE_DEFAULT SQL_CURSOR_FORWARD_ONLY
159 #define SQL_CV_CASCADED 0x00000004L
160 #define SQL_CV_CHECK_OPTION 0x00000002L
161 #define SQL_CV_CREATE_VIEW 0x00000001L
162 #define SQL_CV_LOCAL 0x00000008L
163 #define SQL_CVT_BIGINT 0x00004000L
164 #define SQL_CVT_BINARY 0x00000400L
165 #define SQL_CVT_BIT 0x00001000L
166 #define SQL_CVT_CHAR 0x00000001L
167 #define SQL_CVT_DATE 0x00008000L
168 #define SQL_CVT_DECIMAL 0x00000004L
169 #define SQL_CVT_DOUBLE 0x00000080L
170 #define SQL_CVT_FLOAT 0x00000020L
171 #define SQL_CVT_INTEGER 0x00000008L
172 #define SQL_CVT_LONGVARBINARY 0x00040000L
173 #define SQL_CVT_LONGVARCHAR 0x00000200L
174 #define SQL_CVT_NUMERIC 0x00000002L
175 #define SQL_CVT_REAL 0x00000040L
176 #define SQL_CVT_SMALLINT 0x00000010L
177 #define SQL_CVT_TIME 0x00010000L
178 #define SQL_CVT_TIMESTAMP 0x00020000L
179 #define SQL_CVT_TINYINT 0x00002000L
180 #define SQL_CVT_VARBINARY 0x00000800L
181 #define SQL_CVT_VARCHAR 0x00000100L
182 #define SQL_DATABASE_NAME 16 /* deprecated */
184 #define SQL_DEFAULT_PARAM (-5)
186 #define SQL_DRIVER_COMPLETE 1
187 #define SQL_DRIVER_COMPLETE_REQUIRED 3
188 #define SQL_DRIVER_HDBC 3
189 #define SQL_DRIVER_HENV 4
190 #define SQL_DRIVER_HLIB 76
191 #define SQL_DRIVER_HSTMT 5
192 #define SQL_DRIVER_NAME 6
193 #define SQL_DRIVER_NOPROMPT 0
194 #define SQL_DRIVER_ODBC_VER 77
195 #define SQL_DRIVER_PROMPT 2
196 #define SQL_DRIVER_VER 7
197 #define SQL_DTC_ENLIST_EXPENSIVE 1
198 #define SQL_DTC_TRANSITION_COST 1750
199 #define SQL_DTC_UNENLIST_EXPENSIVE 2
201 #define SQL_ENTIRE_ROWSET 0
202 #define SQL_EXPRESSIONS_IN_ORDERBY 27
203 #define SQL_FD_FETCH_BOOKMARK 128
204 #define SQL_FD_FETCH_PREV SQL_FD_FETCH_PRIOR /* deprecated */
205 #define SQL_FD_FETCH_RESUME 64
206 #define SQL_FETCH_BOOKMARK 8
207 #define SQL_FETCH_PREV SQL_FETCH_PRIOR /* deprecated */
208 #define SQL_FETCH_RESUME 7 /* deprecated */
209 #define SQL_FILE_CATALOG SQL_FILE_QUALIFIER
210 #define SQL_FILE_NOT_SUPPORTED 0x0000
211 #define SQL_FILE_QUALIFIER 0x0002
212 #define SQL_FILE_TABLE 0x0001
213 #define SQL_FILE_USAGE 84
214 #define SQL_FN_CVT_CONVERT 0x00000001L
215 #define SQL_FN_NUM_ABS 0x00000001L
216 #define SQL_FN_NUM_ACOS 0x00000002L
217 #define SQL_FN_NUM_ASIN 0x00000004L
218 #define SQL_FN_NUM_ATAN 0x00000008L
219 #define SQL_FN_NUM_ATAN2 0x00000010L
220 #define SQL_FN_NUM_CEILING 0x00000020L
221 #define SQL_FN_NUM_COS 0x00000040L
222 #define SQL_FN_NUM_COT 0x00000080L
223 #define SQL_FN_NUM_DEGREES 0x00040000L
224 #define SQL_FN_NUM_EXP 0x00000100L
225 #define SQL_FN_NUM_FLOOR 0x00000200L
226 #define SQL_FN_NUM_LOG 0x00000400L
227 #define SQL_FN_NUM_LOG10 0x00080000L
228 #define SQL_FN_NUM_MOD 0x00000800L
229 #define SQL_FN_NUM_PI 0x00010000L
230 #define SQL_FN_NUM_POWER 0x00100000L
231 #define SQL_FN_NUM_RADIANS 0x00200000L
232 #define SQL_FN_NUM_RAND 0x00020000L
233 #define SQL_FN_NUM_ROUND 0x00400000L
234 #define SQL_FN_NUM_SIGN 0x00001000L
235 #define SQL_FN_NUM_SIN 0x00002000L
236 #define SQL_FN_NUM_SQRT 0x00004000L
237 #define SQL_FN_NUM_TAN 0x00008000L
238 #define SQL_FN_NUM_TRUNCATE 0x00800000L
239 #define SQL_FN_STR_ASCII 0x00002000L
240 #define SQL_FN_STR_CHAR 0x00004000L
241 #define SQL_FN_STR_CONCAT 0x00000001L
242 #define SQL_FN_STR_DIFFERENCE 0x00008000L
243 #define SQL_FN_STR_INSERT 0x00000002L
244 #define SQL_FN_STR_LCASE 0x00000040L
245 #define SQL_FN_STR_LEFT 0x00000004L
246 #define SQL_FN_STR_LENGTH 0x00000010L
247 #define SQL_FN_STR_LOCATE 0x00000020L
248 #define SQL_FN_STR_LOCATE_2 0x00010000L
249 #define SQL_FN_STR_LTRIM 0x00000008L
250 #define SQL_FN_STR_REPEAT 0x00000080L
251 #define SQL_FN_STR_REPLACE 0x00000100L
252 #define SQL_FN_STR_RIGHT 0x00000200L
253 #define SQL_FN_STR_RTRIM 0x00000400L
254 #define SQL_FN_STR_SOUNDEX 0x00020000L
255 #define SQL_FN_STR_SPACE 0x00040000L
256 #define SQL_FN_STR_SUBSTRING 0x00000800L
257 #define SQL_FN_STR_UCASE 0x00001000L
258 #define SQL_FN_SYS_DBNAME 0x00000002L
259 #define SQL_FN_SYS_IFNULL 0x00000004L
260 #define SQL_FN_SYS_USERNAME 0x00000001L
261 #define SQL_FN_TD_CURDATE 0x00000002L
262 #define SQL_FN_TD_CURTIME 0x00000200L
263 #define SQL_FN_TD_DAYNAME 0x00008000L
264 #define SQL_FN_TD_DAYOFMONTH 0x00000004L
265 #define SQL_FN_TD_DAYOFWEEK 0x00000008L
266 #define SQL_FN_TD_DAYOFYEAR 0x00000010L
267 #define SQL_FN_TD_HOUR 0x00000400L
268 #define SQL_FN_TD_MINUTE 0x00000800L
269 #define SQL_FN_TD_MONTH 0x00000020L
270 #define SQL_FN_TD_MONTHNAME 0x00010000L
271 #define SQL_FN_TD_NOW 0x00000001L
272 #define SQL_FN_TD_QUARTER 0x00000040L
273 #define SQL_FN_TD_SECOND 0x00001000L
274 #define SQL_FN_TD_TIMESTAMPADD 0x00002000L
275 #define SQL_FN_TD_TIMESTAMPDIFF 0x00004000L
276 #define SQL_FN_TD_WEEK 0x00000080L
277 #define SQL_FN_TD_YEAR 0x00000100L
278 #define SQL_FN_TSI_DAY 0x00000010L
279 #define SQL_FN_TSI_FRAC_SECOND 0x00000001L
280 #define SQL_FN_TSI_HOUR 0x00000008L
281 #define SQL_FN_TSI_MINUTE 0x00000004L
282 #define SQL_FN_TSI_MONTH 0x00000040L
283 #define SQL_FN_TSI_QUARTER 0x00000080L
284 #define SQL_FN_TSI_SECOND 0x00000002L
285 #define SQL_FN_TSI_WEEK 0x00000020L
286 #define SQL_FN_TSI_YEAR 0x00000100L
287 #define SQL_GB_GROUP_BY_CONTAINS_SELECT 2
288 #define SQL_GB_GROUP_BY_EQUALS_SELECT 1
289 #define SQL_GB_NO_RELATION 3
290 #define SQL_GB_NOT_SUPPORTED 0
291 #define SQL_GD_BLOCK 4
292 #define SQL_GD_BOUND 8
293 #define SQL_GET_BOOKMARK 13
294 #define SQL_GROUP_BY 88
295 #define SQL_IGNORE (-6)
296 #define SQL_INFO_FIRST 0
297 #define SQL_KEYSET_SIZE 8
298 #define SQL_KEYSET_SIZE_DEFAULT 0UL
299 #define SQL_KEYWORDS 89
300 #define SQL_LCK_EXCLUSIVE 2
301 #define SQL_LCK_NO_CHANGE 1
302 #define SQL_LCK_UNLOCK 4
303 #define SQL_LEN_BINARY_ATTR(length) (-(length)+SQL_LEN_BINARY_ATTR_OFFSET)
304 #define SQL_LEN_BINARY_ATTR_OFFSET (-100)
305 #define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET)
306 #define SQL_LEN_DATA_AT_EXEC_OFFSET (-100)
307 #define SQL_LIKE_ESCAPE_CLAUSE 113
308 #define SQL_LIKE_ONLY 1
309 #define SQL_LOCK_EXCLUSIVE 1
310 #define SQL_LOCK_NO_CHANGE 0
311 #define SQL_LOCK_TYPES 78
312 #define SQL_LOCK_UNLOCK 2
313 #define SQL_LOGIN_TIMEOUT 103
314 #define SQL_LOGIN_TIMEOUT_DEFAULT 15UL
315 #define SQL_LONGVARBINARY (-4)
316 #define SQL_LONGVARCHAR (-1)
317 #define SQL_MAX_BINARY_LITERAL_LEN 112
318 #define SQL_MAX_CHAR_LITERAL_LEN 108
319 #define SQL_MAX_DSN_LENGTH 32
320 #define SQL_MAX_LENGTH 3
321 #define SQL_MAX_LENGTH_DEFAULT 0UL
322 #define SQL_MAX_OPTION_STRING_LENGTH 256
323 #define SQL_MAX_OWNER_NAME_LEN 32
324 #define SQL_MAX_PROCEDURE_NAME_LEN 33
325 #define SQL_MAX_QUALIFIER_NAME_LEN 34
326 #define SQL_MAX_ROW_SIZE_INCLUDES_LONG 103
327 #define SQL_MAX_ROWS 1
328 #define SQL_MAX_ROWS_DEFAULT 0UL
329 #define SQL_MODE_DEFAULT SQL_MODE_READ_WRITE
330 #define SQL_MODE_READ_ONLY 1UL
331 #define SQL_MODE_READ_WRITE 0UL
332 #define SQL_MULT_RESULT_SETS 36
333 #define SQL_MULTIPLE_ACTIVE_TXN 37
334 #define SQL_NC_END 0x0004
335 #define SQL_NC_START 0x0002
336 #define SQL_NEED_LONG_DATA_LEN 111
337 #define SQL_NNC_NON_NULL 0x0001
338 #define SQL_NNC_NULL 0x0000
339 #define SQL_NO_TOTAL (-4)
340 #define SQL_NON_NULLABLE_COLUMNS 75
342 #define SQL_NOSCAN_DEFAULT SQL_NOSCAN_OFF
343 #define SQL_NOSCAN_OFF 0UL
344 #define SQL_NOSCAN_ON 1UL
345 #define SQL_NUMERIC_FUNCTIONS 49
346 #define SQL_OAC_LEVEL1 0x0001
347 #define SQL_OAC_LEVEL2 0x0002
348 #define SQL_OAC_NONE 0x0000
349 #define SQL_ODBC_API_CONFORMANCE 9
350 #define SQL_ODBC_CURSORS 110
351 #define SQL_ODBC_SAG_CLI_CONFORMANCE 12
352 #define SQL_ODBC_SQL_CONFORMANCE 15
353 #define SQL_ODBC_SQL_OPT_IEF 73
354 #define SQL_ODBC_VER 10
355 #define SQL_OPT_TRACE 104
356 #define SQL_OPT_TRACE_DEFAULT SQL_OPT_TRACE_OFF
357 #define SQL_OPT_TRACE_FILE_DEFAULT "\\SQL.LOG"
358 #define SQL_OPT_TRACE_OFF 0UL
359 #define SQL_OPT_TRACE_ON 1UL
360 #define SQL_OPT_TRACEFILE 105
361 #define SQL_OSC_CORE 1
362 #define SQL_OSC_EXTENDED 2
363 #define SQL_OSC_MINIMUM 0
364 #define SQL_OSCC_COMPLIANT 1
365 #define SQL_OSCC_NOT_COMPLIANT 0
366 #define SQL_OU_DML_STATEMENTS 1
367 #define SQL_OU_INDEX_DEFINITION 8
368 #define SQL_OU_PRIVILEGE_DEFINITION 16
369 #define SQL_OU_PROCEDURE_INVOCATION 2
370 #define SQL_OU_TABLE_DEFINITION 4
371 #define SQL_OUTER_JOINS 38
372 #define SQL_OWNER_TERM 39
373 #define SQL_OWNER_USAGE 91
374 #define SQL_PACKET_SIZE 112
375 #define SQL_PARAM_INPUT 1
376 #define SQL_PARAM_INPUT_OUTPUT 2
377 #define SQL_PARAM_OUTPUT 4
378 #define SQL_PARAM_TYPE_DEFAULT SQL_PARAM_INPUT_OUTPUT
379 #define SQL_PARAM_TYPE_UNKNOWN 0
380 #define SQL_PC_NOT_PSEUDO 1
381 #define SQL_POS_ADD 16
382 #define SQL_POS_DELETE 8
383 #define SQL_POS_OPERATIONS 79
384 #define SQL_POS_POSITION 1
385 #define SQL_POS_REFRESH 2
386 #define SQL_POS_UPDATE 4
387 #define SQL_POSITION 0
388 #define SQL_POSITIONED_STATEMENTS 80
389 #define SQL_PRED_SEARCHABLE SQL_SEARCHABLE
390 #define SQL_PROCEDURE_TERM 40
391 #define SQL_PROCEDURES 21
392 #define SQL_PS_POSITIONED_DELETE 1
393 #define SQL_PS_POSITIONED_UPDATE 2
394 #define SQL_PS_SELECT_FOR_UPDATE 4
395 #define SQL_PT_FUNCTION 2
396 #define SQL_PT_PROCEDURE 1
397 #define SQL_PT_UNKNOWN 0
398 #define SQL_QL_END 0x0002
399 #define SQL_QL_START 0x0001
400 #define SQL_QU_DML_STATEMENTS 1
401 #define SQL_QU_INDEX_DEFINITION 8
402 #define SQL_QU_PRIVILEGE_DEFINITION 16
403 #define SQL_QU_PROCEDURE_INVOCATION 2
404 #define SQL_QU_TABLE_DEFINITION 4
405 #define SQL_QUALIFIER_LOCATION 114
406 #define SQL_QUALIFIER_NAME_SEPARATOR 41
407 #define SQL_QUALIFIER_TERM 42
408 #define SQL_QUALIFIER_USAGE 92
409 #define SQL_QUERY_TIMEOUT 0
410 #define SQL_QUERY_TIMEOUT_DEFAULT 0UL
412 #define SQL_QUIET_MODE 111
413 #define SQL_QUOTED_IDENTIFIER_CASE 93
414 #define SQL_RD_DEFAULT SQL_RD_ON
415 #define SQL_RD_OFF 0UL
416 #define SQL_RD_ON 1UL
417 #define SQL_REFRESH 1
418 #define SQL_RESTRICT 1
419 #define SQL_RESULT_COL 3
420 #define SQL_RETRIEVE_DATA 11
421 #define SQL_RETURN_VALUE 5
422 #define SQL_ROW_ADDED 4
423 #define SQL_ROW_DELETED 1
424 #define SQL_ROW_ERROR 5
425 #define SQL_ROW_NOROW 3
426 #define SQL_ROW_NUMBER 14
427 #define SQL_ROW_SUCCESS 0
428 #define SQL_ROW_UPDATED 2
429 #define SQL_ROW_UPDATES 11
430 #define SQL_ROWSET_SIZE 9
431 #define SQL_ROWSET_SIZE_DEFAULT 1UL
433 #define SQL_SC_NON_UNIQUE 0UL
434 #define SQL_SC_TRY_UNIQUE 1UL
435 #define SQL_SC_UNIQUE 2UL
436 #define SQL_SCCO_OPT_TIMESTAMP SQL_SCCO_OPT_ROWVER /* deprecated */
437 #define SQL_SCROLL_DYNAMIC (-2L) /* deprecated */
438 #define SQL_SCROLL_FORWARD_ONLY 0L /* deprecated */
439 #define SQL_SCROLL_KEYSET_DRIVEN (-1L) /* deprecated */
440 #define SQL_SCROLL_OPTIONS 44
441 #define SQL_SCROLL_STATIC (-3L) /* deprecated */
442 #define SQL_SEARCHABLE 3
443 #define SQL_SET_NULL 2
444 #define SQL_SETPARAM_VALUE_MAX (-1L)
445 #define SQL_SETPOS_MAX_LOCK_VALUE SQL_LOCK_UNLOCK
446 #define SQL_SETPOS_MAX_OPTION_VALUE SQL_ADD
447 #define SQL_SIGNED_OFFSET (-20)
448 #define SQL_SIMULATE_CURSOR 10
449 #define SQL_SO_DYNAMIC 4
450 #define SQL_SO_FORWARD_ONLY 1
451 #define SQL_SO_KEYSET_DRIVEN 2
452 #define SQL_SO_MIXED 8
453 #define SQL_SO_STATIC 16
454 #define SQL_SQ_COMPARISON 1
455 #define SQL_SQ_CORRELATED_SUBQUERIES 16
456 #define SQL_SQ_EXISTS 2
458 #define SQL_SQ_QUANTIFIED 8
459 #define SQL_SQLSTATE_SIZE 5
460 #define SQL_SS_ADDITIONS 1
461 #define SQL_SS_DELETIONS 2
462 #define SQL_SS_UPDATES 4
463 #define SQL_STATIC_SENSITIVITY 83
464 #define SQL_STRING_FUNCTIONS 50
465 #define SQL_SUBQUERIES 95
466 #define SQL_SYSTEM_FUNCTIONS 51
467 #define SQL_TABLE_STAT 0
468 #define SQL_TABLE_TERM 45
470 #define SQL_TIMEDATE_ADD_INTERVALS 109
471 #define SQL_TIMEDATE_DIFF_INTERVALS 110
472 #define SQL_TIMEDATE_FUNCTIONS 52
473 #define SQL_TIMESTAMP 11
474 #define SQL_TINYINT (-6)
475 #define SQL_TRANSLATE_DLL 106
476 #define SQL_TRANSLATE_OPTION 107
477 #define SQL_TXN_ISOLATION 108
478 #define SQL_TXN_VERSIONING 16
479 #define SQL_TYPE_NULL 0
480 #define SQL_U_UNION 1
481 #define SQL_U_UNION_ALL 2
482 #define SQL_UB_DEFAULT SQL_UB_OFF
483 #define SQL_UB_OFF 0UL
484 #define SQL_UB_ON 01UL
486 #define SQL_UNSEARCHABLE 0
487 #define SQL_UNSIGNED_OFFSET (-22)
489 #define SQL_USE_BOOKMARKS 12
490 #define SQL_VARBINARY (-3)
491 #define SQL_POSITION_TO(s,r) SQLSetPos(s,r,SQL_POSITION,SQL_LOCK_NO_CHANGE)
492 #define SQL_LOCK_RECORD(s,r,l) SQLSetPos(s,r,SQL_POSITION,l)
493 #define SQL_REFRESH_RECORD(s,r,l) SQLSetPos(s,r,SQL_REFRESH,l)
494 #define SQL_UPDATE_RECORD(s,r) SQLSetPos(s,r,SQL_UPDATE,SQL_LOCK_NO_CHANGE)
495 #define SQL_DELETE_RECORD(s,r) SQLSetPos(s,r,SQL_DELETE,SQL_LOCK_NO_CHANGE)
496 #define SQL_ADD_RECORD(s,r) SQLSetPos(s,r,SQL_ADD,SQL_LOCK_NO_CHANGE)
498 #if (ODBCVER < 0x0300)
499 #define SQL_CONNECT_OPT_DRVR_START 1000
500 #define SQL_CONN_OPT_MAX SQL_PACKET_SIZE
501 #define SQL_CONN_OPT_MIN SQL_ACCESS_MODE
502 #define SQL_STMT_OPT_MAX SQL_ROW_NUMBER
503 #define SQL_STMT_OPT_MIN SQL_QUERY_TIMEOUT
504 #define SQL_TYPE_DRIVER_START SQL_INTERVAL_YEAR
505 #define SQL_TYPE_DRIVER_END SQL_UNICODE_LONGVARCHAR
506 #define SQL_TYPE_MIN SQL_BIT
507 #define SQL_TYPE_MAX SQL_VARCHAR
510 #if (ODBCVER < 0x0300)
511 #define SQL_NO_DATA_FOUND 100
512 #define SQL_INTERVAL_YEAR (-80)
513 #define SQL_INTERVAL_MONTH (-81)
514 #define SQL_INTERVAL_YEAR_TO_MONTH (-82)
515 #define SQL_INTERVAL_DAY (-83)
516 #define SQL_INTERVAL_HOUR (-84)
517 #define SQL_INTERVAL_MINUTE (-85)
518 #define SQL_INTERVAL_SECOND (-86)
519 #define SQL_INTERVAL_DAY_TO_HOUR (-87)
520 #define SQL_INTERVAL_DAY_TO_MINUTE (-88)
521 #define SQL_INTERVAL_DAY_TO_SECOND (-89)
522 #define SQL_INTERVAL_HOUR_TO_MINUTE (-90)
523 #define SQL_INTERVAL_HOUR_TO_SECOND (-91)
524 #define SQL_INTERVAL_MINUTE_TO_SECOND (-92)
526 #define SQL_NO_DATA_FOUND SQL_NO_DATA
527 #define SQL_CODE_YEAR 1
528 #define SQL_CODE_MONTH 2
529 #define SQL_CODE_DAY 3
530 #define SQL_CODE_HOUR 4
531 #define SQL_CODE_MINUTE 5
532 #define SQL_CODE_SECOND 6
533 #define SQL_CODE_YEAR_TO_MONTH 7
534 #define SQL_CODE_DAY_TO_HOUR 8
535 #define SQL_CODE_DAY_TO_MINUTE 9
536 #define SQL_CODE_DAY_TO_SECOND 10
537 #define SQL_CODE_HOUR_TO_MINUTE 11
538 #define SQL_CODE_HOUR_TO_SECOND 12
539 #define SQL_CODE_MINUTE_TO_SECOND 13
540 #define SQL_INTERVAL_YEAR (100 + SQL_CODE_SECOND)
541 #define SQL_INTERVAL_MONTH (100 + SQL_CODE_YEAR_TO_MONTH)
542 #define SQL_INTERVAL_DAY (100 + SQL_CODE_DAY_TO_HOUR)
543 #define SQL_INTERVAL_HOUR (100 + SQL_CODE_DAY_TO_MINUTE)
544 #define SQL_INTERVAL_MINUTE (100 + SQL_CODE_DAY_TO_SECOND)
545 #define SQL_INTERVAL_SECOND (100 + SQL_CODE_HOUR_TO_MINUTE)
546 #define SQL_INTERVAL_YEAR_TO_MONTH (100 + SQL_CODE_HOUR_TO_SECOND)
547 #define SQL_INTERVAL_DAY_TO_HOUR (100 + SQL_CODE_MINUTE_TO_SECOND)
548 #define SQL_INTERVAL_DAY_TO_MINUTE (100 + SQL_CODE_DAY_TO_MINUTE)
549 #define SQL_INTERVAL_DAY_TO_SECOND (100 + SQL_CODE_DAY_TO_SECOND)
550 #define SQL_INTERVAL_HOUR_TO_MINUTE (100 + SQL_CODE_HOUR_TO_MINUTE)
551 #define SQL_INTERVAL_HOUR_TO_SECOND (100 + SQL_CODE_HOUR_TO_SECOND)
552 #define SQL_INTERVAL_MINUTE_TO_SECOND (100 + SQL_CODE_MINUTE_TO_SECOND)
555 #if (ODBCVER <= 0x0300)
556 #define SQL_UNICODE (-95)
557 #define SQL_UNICODE_VARCHAR (-96)
558 #define SQL_UNICODE_LONGVARCHAR (-97)
559 #define SQL_UNICODE_CHAR SQL_UNICODE
561 #define SQL_UNICODE SQL_WCHAR
562 #define SQL_UNICODE_VARCHAR SQL_WVARCHAR
563 #define SQL_UNICODE_LONGVARCHAR SQL_WLONGVARCHAR
564 #define SQL_UNICODE_CHAR SQL_WCHAR
567 #if (ODBCVER >= 0x0201) && (ODBCVER < 0x0300)
568 #define SQL_OJ_CAPABILITIES 65003
569 #endif /* ODBCVER < 0x0300 */
571 #if (ODBCVER >= 0x0250)
572 #define SQL_NO_ACTION 3
573 #define SQL_SET_DEFAULT 4
574 #endif /* ODBCVER >= 0x0250 */
576 #if (ODBCVER >= 0x0300)
577 #define SQL_ACTIVE_ENVIRONMENTS 116
578 #define SQL_AD_ADD_CONSTRAINT_DEFERRABLE 0x00000080L
579 #define SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED 0x00000020L
580 #define SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE 0x00000040L
581 #define SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE 0x00000100L
582 #define SQL_AD_ADD_DOMAIN_CONSTRAINT 0x00000002L
583 #define SQL_AD_ADD_DOMAIN_DEFAULT 0x00000008L
584 #define SQL_AD_CONSTRAINT_NAME_DEFINITION 0x00000001L
585 #define SQL_AD_DROP_DOMAIN_CONSTRAINT 0x00000004L
586 #define SQL_AD_DROP_DOMAIN_DEFAULT 0x00000010L
587 #define SQL_AF_ALL 0x00000040L
588 #define SQL_AF_AVG 0x00000001L
589 #define SQL_AF_COUNT 0x00000002L
590 #define SQL_AF_DISTINCT 0x00000020L
591 #define SQL_AF_MAX 0x00000004L
592 #define SQL_AF_MIN 0x00000008L
593 #define SQL_AF_SUM 0x00000010L
594 #define SQL_AGGREGATE_FUNCTIONS 169
595 #define SQL_ALL_CATALOGS "%"
596 #define SQL_ALL_SCHEMAS "%"
597 #define SQL_ALL_TABLE_TYPES "%"
598 #define SQL_ALTER_DOMAIN 117
599 #define SQL_AM_CONNECTION 1
600 #define SQL_AM_NONE 0
601 #define SQL_AM_STATEMENT 2
602 #define SQL_API_ODBC3_ALL_FUNCTIONS 999
603 #define SQL_API_ODBC3_ALL_FUNCTIONS_SIZE 250
604 #define SQL_API_SQLALLOCHANDLESTD 73
605 #define SQL_API_SQLBULKOPERATIONS 24
606 #define SQL_ASYNC_MODE 10021
607 #define SQL_AT_ADD_COLUMN_COLLATION 0x00000080L
608 #define SQL_AT_ADD_COLUMN_DEFAULT 0x00000040L
609 #define SQL_AT_ADD_COLUMN_SINGLE 0x00000020L
610 #define SQL_AT_ADD_TABLE_CONSTRAINT 0x00001000L
611 #define SQL_AT_CONSTRAINT_DEFERRABLE 0x00040000L
612 #define SQL_AT_CONSTRAINT_INITIALLY_DEFERRED 0x00010000L
613 #define SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE 0x00020000L
614 #define SQL_AT_CONSTRAINT_NAME_DEFINITION 0x00008000L
615 #define SQL_AT_CONSTRAINT_NON_DEFERRABLE 0x00080000L
616 #define SQL_AT_DROP_COLUMN_CASCADE 0x00000400L
617 #define SQL_AT_DROP_COLUMN_DEFAULT 0x00000200L
618 #define SQL_AT_DROP_COLUMN_RESTRICT 0x00000800L
619 #define SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE 0x00002000L
620 #define SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT 0x00004000L
621 #define SQL_AT_SET_COLUMN_DEFAULT 0x00000100L
622 #define SQL_ATTR_ACCESS_MODE SQL_ACCESS_MODE
623 #define SQL_ATTR_ASYNC_ENABLE 4
624 #define SQL_ATTR_AUTOCOMMIT SQL_AUTOCOMMIT
625 #define SQL_ATTR_CONCURRENCY SQL_CONCURRENCY
626 #define SQL_ATTR_CONNECTION_POOLING 201
627 #define SQL_ATTR_CONNECTION_TIMEOUT 113
628 #define SQL_ATTR_CP_MATCH 202
629 #define SQL_ATTR_CURRENT_CATALOG SQL_CURRENT_QUALIFIER
630 #define SQL_ATTR_CURSOR_TYPE SQL_CURSOR_TYPE
631 #define SQL_ATTR_DISCONNECT_BEHAVIOR 114
632 #define SQL_ATTR_ENABLE_AUTO_IPD 15
633 #define SQL_ATTR_ENLIST_IN_DTC 1207
634 #define SQL_ATTR_ENLIST_IN_XA 1208
635 #define SQL_ATTR_FETCH_BOOKMARK_PTR 16
636 #define SQL_ATTR_KEYSET_SIZE SQL_KEYSET_SIZE
637 #define SQL_ATTR_LOGIN_TIMEOUT SQL_LOGIN_TIMEOUT
638 #define SQL_ATTR_MAX_LENGTH SQL_MAX_LENGTH
639 #define SQL_ATTR_MAX_ROWS SQL_MAX_ROWS
640 #define SQL_ATTR_NOSCAN SQL_NOSCAN
641 #define SQL_ATTR_ODBC_CURSORS SQL_ODBC_CURSORS
642 #define SQL_ATTR_ODBC_VERSION 200
643 #define SQL_ATTR_PACKET_SIZE SQL_PACKET_SIZE
644 #define SQL_ATTR_PARAM_BIND_OFFSET_PTR 17
645 #define SQL_ATTR_PARAM_BIND_TYPE 18
646 #define SQL_ATTR_PARAM_OPERATION_PTR 19
647 #define SQL_ATTR_PARAM_STATUS_PTR 20
648 #define SQL_ATTR_PARAMS_PROCESSED_PTR 21
649 #define SQL_ATTR_PARAMSET_SIZE 22
650 #define SQL_ATTR_QUERY_TIMEOUT SQL_QUERY_TIMEOUT
651 #define SQL_ATTR_QUIET_MODE SQL_QUIET_MODE
652 #define SQL_ATTR_RETRIEVE_DATA SQL_RETRIEVE_DATA
653 #define SQL_ATTR_ROW_ARRAY_SIZE 27
654 #define SQL_ATTR_ROW_BIND_OFFSET_PTR 23
655 #define SQL_ATTR_ROW_BIND_TYPE SQL_BIND_TYPE
656 #define SQL_ATTR_ROW_NUMBER SQL_ROW_NUMBER
657 #define SQL_ATTR_ROW_OPERATION_PTR 24
658 #define SQL_ATTR_ROW_STATUS_PTR 25
659 #define SQL_ATTR_ROWS_FETCHED_PTR 26
660 #define SQL_ATTR_SIMULATE_CURSOR SQL_SIMULATE_CURSOR
661 #define SQL_ATTR_TRACE SQL_OPT_TRACE
662 #define SQL_ATTR_TRACEFILE SQL_OPT_TRACEFILE
663 #define SQL_ATTR_TRANSLATE_LIB SQL_TRANSLATE_DLL
664 #define SQL_ATTR_TRANSLATE_OPTION SQL_TRANSLATE_OPTION
665 #define SQL_ATTR_TXN_ISOLATION SQL_TXN_ISOLATION
666 #define SQL_ATTR_USE_BOOKMARKS SQL_USE_BOOKMARKS
667 #define SQL_BATCH_ROW_COUNT 120
668 #define SQL_BATCH_SUPPORT 121
669 #define SQL_BRC_EXPLICIT 0x0000002
670 #define SQL_BRC_PROCEDURES 0x0000001
671 #define SQL_BRC_ROLLED_UP 0x0000004
672 #define SQL_BS_ROW_COUNT_EXPLICIT 0x00000002L
673 #define SQL_BS_ROW_COUNT_PROC 0x00000008L
674 #define SQL_BS_SELECT_EXPLICIT 0x00000001L
675 #define SQL_BS_SELECT_PROC 0x00000004L
676 #define SQL_C_INTERVAL_DAY SQL_INTERVAL_DAY
677 #define SQL_C_INTERVAL_DAY_TO_HOUR SQL_INTERVAL_DAY_TO_HOUR
678 #define SQL_C_INTERVAL_DAY_TO_MINUTE SQL_INTERVAL_DAY_TO_MINUTE
679 #define SQL_C_INTERVAL_DAY_TO_SECOND SQL_INTERVAL_DAY_TO_SECOND
680 #define SQL_C_INTERVAL_HOUR SQL_INTERVAL_HOUR
681 #define SQL_C_INTERVAL_HOUR_TO_MINUTE SQL_INTERVAL_HOUR_TO_MINUTE
682 #define SQL_C_INTERVAL_HOUR_TO_SECOND SQL_INTERVAL_HOUR_TO_SECOND
683 #define SQL_C_INTERVAL_MINUTE SQL_INTERVAL_MINUTE
684 #define SQL_C_INTERVAL_MINUTE_TO_SECOND SQL_INTERVAL_MINUTE_TO_SECOND
685 #define SQL_C_INTERVAL_MONTH SQL_INTERVAL_MONTH
686 #define SQL_C_INTERVAL_SECOND SQL_INTERVAL_SECOND
687 #define SQL_C_INTERVAL_YEAR SQL_INTERVAL_YEAR
688 #define SQL_C_INTERVAL_YEAR_TO_MONTH SQL_INTERVAL_YEAR_TO_MONTH
689 #define SQL_C_NUMERIC SQL_NUMERIC
690 #define SQL_C_SBIGINT (SQL_BIGINT+SQL_SIGNED_OFFSET)
691 #define SQL_C_TYPE_DATE SQL_TYPE_DATE
692 #define SQL_C_TYPE_TIME SQL_TYPE_TIME
693 #define SQL_C_TYPE_TIMESTAMP SQL_TYPE_TIMESTAMP
694 #define SQL_C_UBIGINT (SQL_BIGINT+SQL_UNSIGNED_OFFSET)
695 #define SQL_C_VARBOOKMARK SQL_C_BINARY
696 #define SQL_CA_CONSTRAINT_DEFERRABLE 0x00000040L
697 #define SQL_CA_CONSTRAINT_INITIALLY_DEFERRED 0x00000010L
698 #define SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE 0x00000020L
699 #define SQL_CA_CONSTRAINT_NON_DEFERRABLE 0x00000080L
700 #define SQL_CA_CREATE_ASSERTION 0x00000001L
701 #define SQL_CA1_ABSOLUTE 0x00000002L
702 #define SQL_CA1_BOOKMARK 0x00000008L
703 #define SQL_CA1_BULK_ADD 0x00010000L
704 #define SQL_CA1_BULK_DELETE_BY_BOOKMARK 0x00040000L
705 #define SQL_CA1_BULK_FETCH_BY_BOOKMARK 0x00080000L
706 #define SQL_CA1_BULK_UPDATE_BY_BOOKMARK 0x00020000L
707 #define SQL_CA1_LOCK_EXCLUSIVE 0x00000080L
708 #define SQL_CA1_LOCK_NO_CHANGE 0x00000040L
709 #define SQL_CA1_LOCK_UNLOCK 0x00000100L
710 #define SQL_CA1_NEXT 0x00000001L
711 #define SQL_CA1_POS_DELETE 0x00000800L
712 #define SQL_CA1_POS_POSITION 0x00000200L
713 #define SQL_CA1_POS_REFRESH 0x00001000L
714 #define SQL_CA1_POS_UPDATE 0x00000400L
715 #define SQL_CA1_POSITIONED_DELETE 0x00004000L
716 #define SQL_CA1_POSITIONED_UPDATE 0x00002000L
717 #define SQL_CA1_RELATIVE 0x00000004L
718 #define SQL_CA1_SELECT_FOR_UPDATE 0x00008000L
719 #define SQL_CA2_CRC_APPROXIMATE 0x00002000L
720 #define SQL_CA2_CRC_EXACT 0x00001000L
721 #define SQL_CA2_LOCK_CONCURRENCY 0x00000002L
722 #define SQL_CA2_MAX_ROWS_AFFECTS_ALL (SQL_CA2_MAX_ROWS_SELECT | SQL_CA2_MAX_ROWS_INSERT | \
723 SQL_CA2_MAX_ROWS_DELETE | SQL_CA2_MAX_ROWS_UPDATE | SQL_CA2_MAX_ROWS_CATALOG)
724 #define SQL_CA2_MAX_ROWS_CATALOG 0x00000800L
725 #define SQL_CA2_MAX_ROWS_DELETE 0x00000200L
726 #define SQL_CA2_MAX_ROWS_INSERT 0x00000100L
727 #define SQL_CA2_MAX_ROWS_SELECT 0x00000080L
728 #define SQL_CA2_MAX_ROWS_UPDATE 0x00000400L
729 #define SQL_CA2_OPT_ROWVER_CONCURRENCY 0x00000004L
730 #define SQL_CA2_OPT_VALUES_CONCURRENCY 0x00000008L
731 #define SQL_CA2_READ_ONLY_CONCURRENCY 0x00000001L
732 #define SQL_CA2_SENSITIVITY_ADDITIONS 0x00000010L
733 #define SQL_CA2_SENSITIVITY_DELETIONS 0x00000020L
734 #define SQL_CA2_SENSITIVITY_UPDATES 0x00000040L
735 #define SQL_CA2_SIMULATE_NON_UNIQUE 0x00004000L
736 #define SQL_CA2_SIMULATE_TRY_UNIQUE 0x00008000L
737 #define SQL_CA2_SIMULATE_UNIQUE 0x00010000L
738 #define SQL_CATALOG_LOCATION SQL_QUALIFIER_LOCATION
739 #define SQL_CATALOG_NAME_SEPARATOR SQL_QUALIFIER_NAME_SEPARATOR
740 #define SQL_CATALOG_TERM SQL_QUALIFIER_TERM
741 #define SQL_CATALOG_USAGE SQL_QUALIFIER_USAGE
742 #define SQL_CCOL_CREATE_COLLATION 0x00000001L
743 #define SQL_CCS_COLLATE_CLAUSE 0x00000002L
744 #define SQL_CCS_CREATE_CHARACTER_SET 0x00000001L
745 #define SQL_CCS_LIMITED_COLLATION 0x00000004L
746 #define SQL_CDO_COLLATION 0x00000008L
747 #define SQL_CDO_CONSTRAINT 0x00000004L
748 #define SQL_CDO_CONSTRAINT_DEFERRABLE 0x00000080L
749 #define SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED 0x00000020L
750 #define SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE 0x00000040L
751 #define SQL_CDO_CONSTRAINT_NAME_DEFINITION 0x00000010L
752 #define SQL_CDO_CONSTRAINT_NON_DEFERRABLE 0x00000100L
753 #define SQL_CDO_CREATE_DOMAIN 0x00000001L
754 #define SQL_CDO_DEFAULT 0x00000002L
755 #define SQL_CL_END SQL_QL_END
756 #define SQL_CL_START SQL_QL_START
757 #define SQL_COL_PRED_BASIC SQL_ALL_EXCEPT_LIKE
758 #define SQL_COL_PRED_CHAR SQL_LIKE_ONLY
759 #define SQL_COLUMN_DRIVER_START 1000
760 #define SQL_COLUMN_IGNORE SQL_IGNORE
761 #define SQL_COLUMN_NUMBER_UNKNOWN (-2)
762 #define SQL_CONVERT_GUID 173
763 #define SQL_CONVERT_INTERVAL_DAY_TIME 123
764 #define SQL_CONVERT_INTERVAL_YEAR_MONTH 124
765 #define SQL_CONVERT_WCHAR 122
766 #define SQL_CONVERT_WLONGVARCHAR 125
767 #define SQL_CONVERT_WVARCHAR 126
768 #define SQL_CP_DEFAULT SQL_CP_OFF
769 #define SQL_CP_MATCH_DEFAULT SQL_CP_STRICT_MATCH
770 #define SQL_CP_OFF 0UL
771 #define SQL_CP_ONE_PER_DRIVER 1UL
772 #define SQL_CP_ONE_PER_HENV 2UL
773 #define SQL_CP_RELAXED_MATCH 1UL
774 #define SQL_CP_STRICT_MATCH 0UL
775 #define SQL_CREATE_ASSERTION 127
776 #define SQL_CREATE_CHARACTER_SET 128
777 #define SQL_CREATE_COLLATION 129
778 #define SQL_CREATE_DOMAIN 130
779 #define SQL_CREATE_SCHEMA 131
780 #define SQL_CREATE_TABLE 132
781 #define SQL_CREATE_TRANSLATION 133
782 #define SQL_CREATE_VIEW 134
783 #define SQL_CS_AUTHORIZATION 0x00000002L
784 #define SQL_CS_CREATE_SCHEMA 0x00000001L
785 #define SQL_CS_DEFAULT_CHARACTER_SET 0x00000004L
786 #define SQL_CT_COLUMN_COLLATION 0x00000800L
787 #define SQL_CT_COLUMN_CONSTRAINT 0x00000200L
788 #define SQL_CT_COLUMN_DEFAULT 0x00000400L
789 #define SQL_CT_COMMIT_DELETE 0x00000004L
790 #define SQL_CT_COMMIT_PRESERVE 0x00000002L
791 #define SQL_CT_CONSTRAINT_DEFERRABLE 0x00000080L
792 #define SQL_CT_CONSTRAINT_INITIALLY_DEFERRED 0x00000020L
793 #define SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE 0x00000040L
794 #define SQL_CT_CONSTRAINT_NAME_DEFINITION 0x00002000L
795 #define SQL_CT_CONSTRAINT_NON_DEFERRABLE 0x00000100L
796 #define SQL_CT_CREATE_TABLE 0x00000001L
797 #define SQL_CT_GLOBAL_TEMPORARY 0x00000008L
798 #define SQL_CT_LOCAL_TEMPORARY 0x00000010L
799 #define SQL_CT_TABLE_CONSTRAINT 0x00001000L
800 #define SQL_CTR_CREATE_TRANSLATION 0x00000001L
801 #define SQL_CU_DML_STATEMENTS SQL_QU_DML_STATEMENTS
802 #define SQL_CU_INDEX_DEFINITION SQL_QU_INDEX_DEFINITION
803 #define SQL_CU_PRIVILEGE_DEFINITION SQL_QU_PRIVILEGE_DEFINITION
804 #define SQL_CU_PROCEDURE_INVOCATION SQL_QU_PROCEDURE_INVOCATION
805 #define SQL_CU_TABLE_DEFINITION SQL_QU_TABLE_DEFINITION
806 #define SQL_CVT_GUID 0x1000000L
807 #define SQL_CVT_INTERVAL_DAY_TIME 0x00100000L
808 #define SQL_CVT_INTERVAL_YEAR_MONTH 0x00080000L
809 #define SQL_CVT_WCHAR 0x00200000L
810 #define SQL_CVT_WLONGVARCHAR 0x00400000L
811 #define SQL_CVT_WVARCHAR 0x00800000L
812 #define SQL_DA_DROP_ASSERTION 0x00000001L
813 #define SQL_DATETIME_LITERALS 119
814 #define SQL_DB_DEFAULT SQL_DB_RETURN_TO_POOL
815 #define SQL_DB_DISCONNECT 1UL
816 #define SQL_DB_RETURN_TO_POOL 0UL
817 #define SQL_DC_DROP_COLLATION 0x00000001L
818 #define SQL_DCS_DROP_CHARACTER_SET 0x00000001L
819 #define SQL_DD_CASCADE 0x00000004L
820 #define SQL_DD_DROP_DOMAIN 0x00000001L
821 #define SQL_DD_RESTRICT 0x00000002L
822 #define SQL_DDL_INDEX 170
823 #define SQL_DELETE_BY_BOOKMARK 6
824 #define SQL_DESC_ARRAY_SIZE 20
825 #define SQL_DESC_ARRAY_STATUS_PTR 21
826 #define SQL_DESC_AUTO_UNIQUE_VALUE SQL_COLUMN_AUTO_INCREMENT
827 #define SQL_DESC_BASE_COLUMN_NAME 22
828 #define SQL_DESC_BASE_TABLE_NAME 23
829 #define SQL_DESC_BIND_OFFSET_PTR 24
830 #define SQL_DESC_BIND_TYPE 25
831 #define SQL_DESC_CASE_SENSITIVE SQL_COLUMN_CASE_SENSITIVE
832 #define SQL_DESC_CATALOG_NAME SQL_COLUMN_QUALIFIER_NAME
833 #define SQL_DESC_CONCISE_TYPE SQL_COLUMN_TYPE
834 #define SQL_DESC_DATETIME_INTERVAL_PRECISION 26
835 #define SQL_DESC_DISPLAY_SIZE SQL_COLUMN_DISPLAY_SIZE
836 #define SQL_DESC_FIXED_PREC_SCALE SQL_COLUMN_MONEY
837 #define SQL_DESC_LABEL SQL_COLUMN_LABEL
838 #define SQL_DESC_LITERAL_PREFIX 27
839 #define SQL_DESC_LITERAL_SUFFIX 28
840 #define SQL_DESC_LOCAL_TYPE_NAME 29
841 #define SQL_DESC_MAXIMUM_SCALE 30
842 #define SQL_DESC_MINIMUM_SCALE 31
843 #define SQL_DESC_NUM_PREC_RADIX 32
844 #define SQL_DESC_PARAMETER_TYPE 33
845 #define SQL_DESC_ROWS_PROCESSED_PTR 34
846 #define SQL_DESC_SCHEMA_NAME SQL_COLUMN_OWNER_NAME
847 #define SQL_DESC_SEARCHABLE SQL_COLUMN_SEARCHABLE
848 #define SQL_DESC_TABLE_NAME SQL_COLUMN_TABLE_NAME
849 #define SQL_DESC_TYPE_NAME SQL_COLUMN_TYPE_NAME
850 #define SQL_DESC_UNSIGNED SQL_COLUMN_UNSIGNED
851 #define SQL_DESC_UPDATABLE SQL_COLUMN_UPDATABLE
852 #define SQL_DI_CREATE_INDEX 0x00000001L
853 #define SQL_DI_DROP_INDEX 0x00000002L
854 #define SQL_DIAG_COLUMN_NUMBER (-1247)
855 #define SQL_DIAG_CURSOR_ROW_COUNT (-1249)
856 #define SQL_DIAG_ROW_NUMBER (-1248)
857 #define SQL_DL_SQL92_DATE 0x00000001L
858 #define SQL_DL_SQL92_INTERVAL_DAY 0x00000020L
859 #define SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR 0x00000400L
860 #define SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE 0x00000800L
861 #define SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND 0x00001000L
862 #define SQL_DL_SQL92_INTERVAL_HOUR 0x00000040L
863 #define SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE 0x00002000L
864 #define SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND 0x00004000L
865 #define SQL_DL_SQL92_INTERVAL_MINUTE 0x00000080L
866 #define SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND 0x00008000L
867 #define SQL_DL_SQL92_INTERVAL_MONTH 0x00000010L
868 #define SQL_DL_SQL92_INTERVAL_SECOND 0x00000100L
869 #define SQL_DL_SQL92_INTERVAL_YEAR 0x00000008L
870 #define SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH 0x00000200L
871 #define SQL_DL_SQL92_TIME 0x00000002L
872 #define SQL_DL_SQL92_TIMESTAMP 0x00000004L
873 #define SQL_DM_VER 171
874 #define SQL_DRIVER_HDESC 135
875 #define SQL_DROP_ASSERTION 136
876 #define SQL_DROP_CHARACTER_SET 137
877 #define SQL_DROP_COLLATION 138
878 #define SQL_DROP_DOMAIN 139
879 #define SQL_DROP_SCHEMA 140
880 #define SQL_DROP_TABLE 141
881 #define SQL_DROP_TRANSLATION 142
882 #define SQL_DROP_VIEW 143
883 #define SQL_DS_CASCADE 0x00000004L
884 #define SQL_DS_DROP_SCHEMA 0x00000001L
885 #define SQL_DS_RESTRICT 0x00000002L
886 #define SQL_DT_CASCADE 0x00000004L
887 #define SQL_DT_DROP_TABLE 0x00000001L
888 #define SQL_DT_RESTRICT 0x00000002L
889 #define SQL_DTC_DONE 0L
890 #define SQL_DTR_DROP_TRANSLATION 0x00000001L
891 #define SQL_DV_CASCADE 0x00000004L
892 #define SQL_DV_DROP_VIEW 0x00000001L
893 #define SQL_DV_RESTRICT 0x00000002L
894 #define SQL_DYNAMIC_CURSOR_ATTRIBUTES1 144
895 #define SQL_DYNAMIC_CURSOR_ATTRIBUTES2 145
896 #define SQL_EXT_API_LAST SQL_API_SQLBINDPARAMETER
897 #define SQL_EXT_API_START 40
898 #define SQL_FETCH_BY_BOOKMARK 7
899 #define SQL_FETCH_FIRST_SYSTEM 32
900 #define SQL_FETCH_FIRST_USER 31
901 #define SQL_FN_CVT_CAST 0x00000002L
902 #define SQL_FN_STR_BIT_LENGTH 0x00080000L
903 #define SQL_FN_STR_CHAR_LENGTH 0x00100000L
904 #define SQL_FN_STR_CHARACTER_LENGTH 0x00200000L
905 #define SQL_FN_STR_OCTET_LENGTH 0x00400000L
906 #define SQL_FN_STR_POSITION 0x00800000L
907 #define SQL_FN_TD_CURRENT_DATE 0x00020000L
908 #define SQL_FN_TD_CURRENT_TIME 0x00040000L
909 #define SQL_FN_TD_CURRENT_TIMESTAMP 0x00080000L
910 #define SQL_FN_TD_EXTRACT 0x00100000L
911 #define SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1 146
912 #define SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 147
913 #define SQL_FUNC_EXISTS(exists, api) \
914 ((*(((UWORD*) (exists)) + ((api) >> 4)) & (1 << ((api) & 15)) ) ? \
915 SQL_TRUE : SQL_FALSE )
916 #define SQL_GB_COLLATE 0x0004
917 #define SQL_HANDLE_SENV 5
918 #define SQL_IK_ALL (SQL_IK_ASC | SQL_IK_DESC)
920 #define SQL_IK_DESC 2
921 #define SQL_IK_NONE 0
922 #define SQL_INDEX_KEYWORDS 148
923 #define SQL_INFO_DRIVER_START 1000
924 #define SQL_INFO_LAST SQL_QUALIFIER_LOCATION
925 #define SQL_INFO_SCHEMA_VIEWS 149
926 #define SQL_INITIALLY_DEFERRED 5
927 #define SQL_INITIALLY_IMMEDIATE 6
928 #define SQL_INSERT_STATEMENT 172
929 #define SQL_INTERVAL 10
930 #define SQL_IS_INSERT_LITERALS 0x00000001L
931 #define SQL_IS_INSERT_SEARCHED 0x00000002L
932 #define SQL_IS_INTEGER (-6)
933 #define SQL_IS_POINTER (-4)
934 #define SQL_IS_SELECT_INTO 0x00000004L
935 #define SQL_IS_SMALLINT (-8)
936 #define SQL_IS_UINTEGER (-5)
937 #define SQL_IS_USMALLINT (-7)
938 #define SQL_ISV_ASSERTIONS 0x00000001L
939 #define SQL_ISV_CHARACTER_SETS 0x00000002L
940 #define SQL_ISV_CHECK_CONSTRAINTS 0x00000004L
941 #define SQL_ISV_COLLATIONS 0x00000008L
942 #define SQL_ISV_COLUMN_DOMAIN_USAGE 0x00000010L
943 #define SQL_ISV_COLUMN_PRIVILEGES 0x00000020L
944 #define SQL_ISV_COLUMNS 0x00000040L
945 #define SQL_ISV_CONSTRAINT_COLUMN_USAGE 0x00000080L
946 #define SQL_ISV_CONSTRAINT_TABLE_USAGE 0x00000100L
947 #define SQL_ISV_DOMAIN_CONSTRAINTS 0x00000200L
948 #define SQL_ISV_DOMAINS 0x00000400L
949 #define SQL_ISV_KEY_COLUMN_USAGE 0x00000800L
950 #define SQL_ISV_REFERENTIAL_CONSTRAINTS 0x00001000L
951 #define SQL_ISV_SCHEMATA 0x00002000L
952 #define SQL_ISV_SQL_LANGUAGES 0x00004000L
953 #define SQL_ISV_TABLE_CONSTRAINTS 0x00008000L
954 #define SQL_ISV_TABLE_PRIVILEGES 0x00010000L
955 #define SQL_ISV_TABLES 0x00020000L
956 #define SQL_ISV_TRANSLATIONS 0x00040000L
957 #define SQL_ISV_USAGE_PRIVILEGES 0x00080000L
958 #define SQL_ISV_VIEW_COLUMN_USAGE 0x00100000L
959 #define SQL_ISV_VIEW_TABLE_USAGE 0x00200000L
960 #define SQL_ISV_VIEWS 0x00400000L
961 #define SQL_KEYSET_CURSOR_ATTRIBUTES1 150
962 #define SQL_KEYSET_CURSOR_ATTRIBUTES2 151
963 #define SQL_MAX_ASYNC_CONCURRENT_STATEMENTS 10022
964 #define SQL_NO_COLUMN_NUMBER (-1)
965 #define SQL_NO_ROW_NUMBER (-1)
966 #define SQL_NOT_DEFERRABLE 7
967 #define SQL_NUM_EXTENSIONS (SQL_EXT_API_LAST-SQL_EXT_API_START+1)
968 #define SQL_NUM_FUNCTIONS 23
969 #define SQL_ODBC_INTERFACE_CONFORMANCE 152
970 #define SQL_OIC_CORE 1UL
971 #define SQL_OIC_LEVEL1 2UL
972 #define SQL_OIC_LEVEL2 3UL
973 #define SQL_OV_ODBC2 2UL
974 #define SQL_OV_ODBC3 3UL
975 #define SQL_PARAM_ARRAY_ROW_COUNTS 153
976 #define SQL_PARAM_ARRAY_SELECTS 154
977 #define SQL_PARAM_BIND_BY_COLUMN 0UL
978 #define SQL_PARAM_BIND_TYPE_DEFAULT SQL_PARAM_BIND_BY_COLUMN
979 #define SQL_PARAM_DIAG_UNAVAILABLE 1
980 #define SQL_PARAM_ERROR 5
981 #define SQL_PARAM_IGNORE 1
982 #define SQL_PARAM_PROCEED 0
983 #define SQL_PARAM_SUCCESS 0
984 #define SQL_PARAM_SUCCESS_WITH_INFO 6
985 #define SQL_PARAM_UNUSED 7
986 #define SQL_PARC_BATCH 1
987 #define SQL_PARC_NO_BATCH 2
988 #define SQL_PAS_BATCH 1
989 #define SQL_PAS_NO_BATCH 2
990 #define SQL_PAS_NO_SELECT 3
991 #define SQL_ROW_IGNORE 1
992 #define SQL_ROW_NUMBER_UNKNOWN (-2)
993 #define SQL_ROW_PROCEED 0
994 #define SQL_ROW_SUCCESS_WITH_INFO 6
995 #define SQL_SC_FIPS127_2_TRANSITIONAL 0x00000002L
996 #define SQL_SC_SQL92_ENTRY 0x00000001L
997 #define SQL_SC_SQL92_FULL 0x00000008L
998 #define SQL_SC_SQL92_INTERMEDIATE 0x00000004L
999 #define SQL_SCC_ISO92_CLI 0x00000002L
1000 #define SQL_SCC_XOPEN_CLI_VERSION1 0x00000001L
1001 #define SQL_SCHEMA_TERM SQL_OWNER_TERM
1002 #define SQL_SCHEMA_USAGE SQL_OWNER_USAGE
1003 #define SQL_SDF_CURRENT_DATE 0x00000001L
1004 #define SQL_SDF_CURRENT_TIME 0x00000002L
1005 #define SQL_SDF_CURRENT_TIMESTAMP 0x00000004L
1006 #define SQL_SFKD_CASCADE 0x00000001L
1007 #define SQL_SFKD_NO_ACTION 0x00000002L
1008 #define SQL_SFKD_SET_DEFAULT 0x00000004L
1009 #define SQL_SFKD_SET_NULL 0x00000008L
1010 #define SQL_SFKU_CASCADE 0x00000001L
1011 #define SQL_SFKU_NO_ACTION 0x00000002L
1012 #define SQL_SFKU_SET_DEFAULT 0x00000004L
1013 #define SQL_SFKU_SET_NULL 0x00000008L
1014 #define SQL_SG_DELETE_TABLE 0x00000020L
1015 #define SQL_SG_INSERT_COLUMN 0x00000080L
1016 #define SQL_SG_INSERT_TABLE 0x00000040L
1017 #define SQL_SG_REFERENCES_COLUMN 0x00000200L
1018 #define SQL_SG_REFERENCES_TABLE 0x00000100L
1019 #define SQL_SG_SELECT_TABLE 0x00000400L
1020 #define SQL_SG_UPDATE_COLUMN 0x00001000L
1021 #define SQL_SG_UPDATE_TABLE 0x00000800L
1022 #define SQL_SG_USAGE_ON_CHARACTER_SET 0x00000002L
1023 #define SQL_SG_USAGE_ON_COLLATION 0x00000004L
1024 #define SQL_SG_USAGE_ON_DOMAIN 0x00000001L
1025 #define SQL_SG_USAGE_ON_TRANSLATION 0x00000008L
1026 #define SQL_SG_WITH_GRANT_OPTION 0x00000010L
1027 #define SQL_SNVF_BIT_LENGTH 0x00000001L
1028 #define SQL_SNVF_CHAR_LENGTH 0x00000002L
1029 #define SQL_SNVF_CHARACTER_LENGTH 0x00000004L
1030 #define SQL_SNVF_EXTRACT 0x00000008L
1031 #define SQL_SNVF_OCTET_LENGTH 0x00000010L
1032 #define SQL_SNVF_POSITION 0x00000020L
1033 #define SQL_SP_BETWEEN 0x00000800L
1034 #define SQL_SP_COMPARISON 0x00001000L
1035 #define SQL_SP_EXISTS 0x00000001L
1036 #define SQL_SP_IN 0x00000400L
1037 #define SQL_SP_ISNOTNULL 0x00000002L
1038 #define SQL_SP_ISNULL 0x00000004L
1039 #define SQL_SP_LIKE 0x00000200L
1040 #define SQL_SP_MATCH_FULL 0x00000008L
1041 #define SQL_SP_MATCH_PARTIAL 0x00000010L
1042 #define SQL_SP_MATCH_UNIQUE_FULL 0x00000020L
1043 #define SQL_SP_MATCH_UNIQUE_PARTIAL 0x00000040L
1044 #define SQL_SP_OVERLAPS 0x00000080L
1045 #define SQL_SP_QUANTIFIED_COMPARISON 0x00002000L
1046 #define SQL_SP_UNIQUE 0x00000100L
1047 #define SQL_SQL_CONFORMANCE 118
1048 #define SQL_SQL92_DATETIME_FUNCTIONS 155
1049 #define SQL_SQL92_FOREIGN_KEY_DELETE_RULE 156
1050 #define SQL_SQL92_FOREIGN_KEY_UPDATE_RULE 157
1051 #define SQL_SQL92_GRANT 158
1052 #define SQL_SQL92_NUMERIC_VALUE_FUNCTIONS 159
1053 #define SQL_SQL92_PREDICATES 160
1054 #define SQL_SQL92_RELATIONAL_JOIN_OPERATORS 161
1055 #define SQL_SQL92_REVOKE 162
1056 #define SQL_SQL92_ROW_VALUE_CONSTRUCTOR 163
1057 #define SQL_SQL92_STRING_FUNCTIONS 164
1058 #define SQL_SQL92_VALUE_EXPRESSIONS 165
1059 #define SQL_SR_CASCADE 0x00000020L
1060 #define SQL_SR_DELETE_TABLE 0x00000080L
1061 #define SQL_SR_GRANT_OPTION_FOR 0x00000010L
1062 #define SQL_SR_INSERT_COLUMN 0x00000200L
1063 #define SQL_SR_INSERT_TABLE 0x00000100L
1064 #define SQL_SR_REFERENCES_COLUMN 0x00000800L
1065 #define SQL_SR_REFERENCES_TABLE 0x00000400L
1066 #define SQL_SR_RESTRICT 0x00000040L
1067 #define SQL_SR_SELECT_TABLE 0x00001000L
1068 #define SQL_SR_UPDATE_COLUMN 0x00004000L
1069 #define SQL_SR_UPDATE_TABLE 0x00002000L
1070 #define SQL_SR_USAGE_ON_CHARACTER_SET 0x00000002L
1071 #define SQL_SR_USAGE_ON_COLLATION 0x00000004L
1072 #define SQL_SR_USAGE_ON_DOMAIN 0x00000001L
1073 #define SQL_SR_USAGE_ON_TRANSLATION 0x00000008L
1074 #define SQL_SRJO_CORRESPONDING_CLAUSE 0x00000001L
1075 #define SQL_SRJO_CROSS_JOIN 0x00000002L
1076 #define SQL_SRJO_EXCEPT_JOIN 0x00000004L
1077 #define SQL_SRJO_FULL_OUTER_JOIN 0x00000008L
1078 #define SQL_SRJO_INNER_JOIN 0x00000010L
1079 #define SQL_SRJO_INTERSECT_JOIN 0x00000020L
1080 #define SQL_SRJO_LEFT_OUTER_JOIN 0x00000040L
1081 #define SQL_SRJO_NATURAL_JOIN 0x00000080L
1082 #define SQL_SRJO_RIGHT_OUTER_JOIN 0x00000100L
1083 #define SQL_SRJO_UNION_JOIN 0x00000200L
1084 #define SQL_SRVC_DEFAULT 0x00000004L
1085 #define SQL_SRVC_NULL 0x00000002L
1086 #define SQL_SRVC_ROW_SUBQUERY 0x00000008L
1087 #define SQL_SRVC_VALUE_EXPRESSION 0x00000001L
1088 #define SQL_SSF_CONVERT 0x00000001L
1089 #define SQL_SSF_LOWER 0x00000002L
1090 #define SQL_SSF_SUBSTRING 0x00000008L
1091 #define SQL_SSF_TRANSLATE 0x00000010L
1092 #define SQL_SSF_TRIM_BOTH 0x00000020L
1093 #define SQL_SSF_TRIM_LEADING 0x00000040L
1094 #define SQL_SSF_TRIM_TRAILING 0x00000080L
1095 #define SQL_SSF_UPPER 0x00000004L
1096 #define SQL_STANDARD_CLI_CONFORMANCE 166
1097 #define SQL_STATIC_CURSOR_ATTRIBUTES1 167
1098 #define SQL_STATIC_CURSOR_ATTRIBUTES2 168
1099 #define SQL_SU_DML_STATEMENTS SQL_OU_DML_STATEMENTS
1100 #define SQL_SU_INDEX_DEFINITION SQL_OU_INDEX_DEFINITION
1101 #define SQL_SU_PRIVILEGE_DEFINITION SQL_OU_PRIVILEGE_DEFINITION
1102 #define SQL_SU_PROCEDURE_INVOCATION SQL_OU_PROCEDURE_INVOCATION
1103 #define SQL_SU_TABLE_DEFINITION SQL_OU_TABLE_DEFINITION
1104 #define SQL_SVE_CASE 0x00000001L
1105 #define SQL_SVE_CAST 0x00000002L
1106 #define SQL_SVE_COALESCE 0x00000004L
1107 #define SQL_SVE_NULLIF 0x00000008L
1108 #define SQL_UB_FIXED SQL_UB_ON
1109 #define SQL_UB_VARIABLE 2UL
1110 #define SQL_UNION_STATEMENT SQL_UNION
1111 #define SQL_UPDATE_BY_BOOKMARK 5
1112 #define SQL_US_UNION SQL_U_UNION
1113 #define SQL_US_UNION_ALL SQL_U_UNION_ALL
1114 #endif /* ODBCVER >= 0x300 */
1115 #if (ODBCVER >= 0x0350)
1116 #define SQL_DESC_ROWVER 35
1117 #define SQL_GUID (-11)
1118 #define SQL_C_GUID SQL_GUID
1120 #define SQLAllocHandle SQLAllocHandleStd
1121 #define SQLAllocEnv(p) SQLAllocHandleStd(SQL_HANDLE_ENV,SQL_NULL_HANDLE,p)
1122 #define SQL_YEAR SQL_CODE_YEAR
1123 #define SQL_MONTH SQL_CODE_MONTH
1124 #define SQL_DAY SQL_CODE_DAY
1125 #define SQL_HOUR SQL_CODE_HOUR
1126 #define SQL_MINUTE SQL_CODE_MINUTE
1127 #define SQL_SECOND SQL_CODE_SECOND
1128 #define SQL_YEAR_TO_MONTH SQL_CODE_YEAR_TO_MONTH
1129 #define SQL_DAY_TO_HOUR SQL_CODE_DAY_TO_HOUR
1130 #define SQL_DAY_TO_MINUTE SQL_CODE_DAY_TO_MINUTE
1131 #define SQL_DAY_TO_SECOND SQL_CODE_DAY_TO_SECOND
1132 #define SQL_HOUR_TO_MINUTE SQL_CODE_HOUR_TO_MINUTE
1133 #define SQL_HOUR_TO_SECOND SQL_CODE_HOUR_TO_SECOND
1134 #define SQL_MINUTE_TO_SECOND SQL_CODE_MINUTE_TO_SECOND
1135 #endif /* ODBC_STD */
1136 #endif /* ODBCVER >= 0x0350 */
1137 #if (ODBCVER >= 0x0351)
1138 #define SQL_ATTR_ANSI_APP 115
1139 #define SQL_AA_TRUE 1L
1140 #define SQL_AA_FALSE 0L
1143 #define TRACE_VERSION 1000
1147 #define SQL_ODBC_KEYWORDS \
1148 "ABSOLUTE,ACTION,ADA,ADD,ALL,ALLOCATE,ALTER,AND,ANY,ARE,AS,"\
1149 "ASC,ASSERTION,AT,AUTHORIZATION,AVG,"\
1150 "BEGIN,BETWEEN,BIT,BIT_LENGTH,BOTH,BY,CASCADE,CASCADED,CASE,CAST,CATALOG,"\
1151 "CHAR,CHAR_LENGTH,CHARACTER,CHARACTER_LENGTH,CHECK,CLOSE,COALESCE,"\
1152 "COLLATE,COLLATION,COLUMN,COMMIT,CONNECT,CONNECTION,CONSTRAINT,"\
1153 "CONSTRAINTS,CONTINUE,CONVERT,CORRESPONDING,COUNT,CREATE,CROSS,CURRENT,"\
1154 "CURRENT_DATE,CURRENT_TIME,CURRENT_TIMESTAMP,CURRENT_USER,CURSOR,"\
1155 "DATE,DAY,DEALLOCATE,DEC,DECIMAL,DECLARE,DEFAULT,DEFERRABLE,"\
1156 "DEFERRED,DELETE,DESC,DESCRIBE,DESCRIPTOR,DIAGNOSTICS,DISCONNECT,"\
1157 "DISTINCT,DOMAIN,DOUBLE,DROP,"\
1158 "ELSE,END,END-EXEC,ESCAPE,EXCEPT,EXCEPTION,EXEC,EXECUTE,"\
1159 "EXISTS,EXTERNAL,EXTRACT,"\
1160 "FALSE,FETCH,FIRST,FLOAT,FOR,FOREIGN,FORTRAN,FOUND,FROM,FULL,"\
1161 "GET,GLOBAL,GO,GOTO,GRANT,GROUP,HAVING,HOUR,"\
1162 "IDENTITY,IMMEDIATE,IN,INCLUDE,INDEX,INDICATOR,INITIALLY,INNER,"\
1163 "INPUT,INSENSITIVE,INSERT,INT,INTEGER,INTERSECT,INTERVAL,INTO,IS,ISOLATION,"\
1164 "JOIN,KEY,LANGUAGE,LAST,LEADING,LEFT,LEVEL,LIKE,LOCAL,LOWER,"\
1165 "MATCH,MAX,MIN,MINUTE,MODULE,MONTH,"\
1166 "NAMES,NATIONAL,NATURAL,NCHAR,NEXT,NO,NONE,NOT,NULL,NULLIF,NUMERIC,"\
1167 "OCTET_LENGTH,OF,ON,ONLY,OPEN,OPTION,OR,ORDER,OUTER,OUTPUT,OVERLAPS,"\
1168 "PAD,PARTIAL,PASCAL,PLI,POSITION,PRECISION,PREPARE,PRESERVE,"\
1169 "PRIMARY,PRIOR,PRIVILEGES,PROCEDURE,PUBLIC,"\
1170 "READ,REAL,REFERENCES,RELATIVE,RESTRICT,REVOKE,RIGHT,ROLLBACK,ROWS"\
1171 "SCHEMA,SCROLL,SECOND,SECTION,SELECT,SESSION,SESSION_USER,SET,SIZE,"\
1172 "SMALLINT,SOME,SPACE,SQL,SQLCA,SQLCODE,SQLERROR,SQLSTATE,SQLWARNING,"\
1173 "SUBSTRING,SUM,SYSTEM_USER,"\
1174 "TABLE,TEMPORARY,THEN,TIME,TIMESTAMP,TIMEZONE_HOUR,TIMEZONE_MINUTE,"\
1175 "TO,TRAILING,TRANSACTION,TRANSLATE,TRANSLATION,TRIM,TRUE,"\
1176 "UNION,UNIQUE,UNKNOWN,UPDATE,UPPER,USAGE,USER,USING,"\
1177 "VALUE,VALUES,VARCHAR,VARYING,VIEW,WHEN,WHENEVER,WHERE,WITH,WORK,WRITE,"\
1180 SQLRETURN SQL_API
SQLDriverConnect(SQLHDBC
,SQLHWND
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLSMALLINT
*,SQLUSMALLINT
);
1181 SQLRETURN SQL_API
SQLBrowseConnect(SQLHDBC
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLSMALLINT
*);
1182 SQLRETURN SQL_API
SQLColumnPrivileges(SQLHSTMT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
);
1183 SQLRETURN SQL_API
SQLColAttributes(SQLHSTMT
,SQLUSMALLINT
, SQLUSMALLINT
, SQLPOINTER
, SQLSMALLINT
, SQLSMALLINT
*, SQLLEN
*);
1184 SQLRETURN SQL_API
SQLDescribeParam(SQLHSTMT
,SQLUSMALLINT
,SQLSMALLINT
*,SQLULEN
*,SQLSMALLINT
*,SQLSMALLINT
*);
1185 SQLRETURN SQL_API
SQLExtendedFetch(SQLHSTMT
,SQLUSMALLINT
,SQLINTEGER
,SQLUINTEGER
*,SQLUSMALLINT
*);
1186 SQLRETURN SQL_API
SQLForeignKeys(SQLHSTMT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
);
1187 SQLRETURN SQL_API
SQLMoreResults(SQLHSTMT
);
1188 SQLRETURN SQL_API
SQLNativeSql(SQLHDBC
,SQLCHAR
*,SQLINTEGER
,SQLCHAR
*,SQLINTEGER
,SQLINTEGER
*);
1189 SQLRETURN SQL_API
SQLNumParams(SQLHSTMT
,SQLSMALLINT
*);
1190 SQLRETURN SQL_API
SQLParamOptions(SQLHSTMT
,SQLUINTEGER
,SQLUINTEGER
*);
1191 SQLRETURN SQL_API
SQLPrimaryKeys(SQLHSTMT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
);
1192 SQLRETURN SQL_API
SQLProcedureColumns(SQLHSTMT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
);
1193 SQLRETURN SQL_API
SQLProcedures(SQLHSTMT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
);
1194 SQLRETURN SQL_API
SQLSetPos(SQLHSTMT
,SQLUSMALLINT
,SQLUSMALLINT
,SQLUSMALLINT
);
1195 SQLRETURN SQL_API
SQLTablePrivileges(SQLHSTMT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLCHAR
*,SQLSMALLINT
);
1196 SQLRETURN SQL_API
SQLDrivers(SQLHENV
,SQLUSMALLINT
,SQLCHAR
*,SQLSMALLINT
,SQLSMALLINT
*,SQLCHAR
*,SQLSMALLINT
,SQLSMALLINT
*);
1197 SQLRETURN SQL_API
SQLBindParameter(SQLHSTMT
,SQLUSMALLINT
,SQLSMALLINT
,SQLSMALLINT
,SQLSMALLINT
,SQLULEN
,SQLSMALLINT
,SQLPOINTER
,SQLLEN
,SQLLEN
*);
1198 SQLRETURN SQL_API
SQLSetScrollOptions(SQLHSTMT
,SQLUSMALLINT
,SQLLEN
,SQLUSMALLINT
); /* deprecated */
1199 DWORD SQL_API
ODBCGetTryWaitValue(void);
1200 BOOL SQL_API
ODBCSetTryWaitValue(DWORD
);
1201 RETCODE SQL_API
TraceOpenLogFile(LPWSTR
,LPWSTR
,DWORD
);
1202 RETCODE SQL_API
TraceCloseLogFile(void);
1203 VOID SQL_API
TraceReturn(RETCODE
,RETCODE
);
1204 DWORD SQL_API
TraceVersion(void);
1205 #if (ODBCVER >= 0x0300)
1206 SQLRETURN SQL_API
SQLBulkOperations(SQLHSTMT
,SQLSMALLINT
);
1207 SQLRETURN SQL_API
SQLAllocHandleStd( SQLSMALLINT
,SQLHANDLE
,SQLHANDLE
*);
1209 #endif /* ndef RC_INVOKED */
1210 #include <sqlucode.h>