1 /**
2 $(RED Warning:
3       This binding is out-of-date and does not allow use on non-Windows platforms. Use `etc.c.odbc.sql` instead.)
4 
5  * Windows API header module
6  *
7  * Translated from MinGW Windows headers
8  *
9  * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
10  * Source: $(DRUNTIMESRC core/sys/windows/_sql.d)
11  */
12 
13 module core.sys.windows.sql;
14 version (Windows):
15 
16 public import core.sys.windows.sqltypes;
17 import core.sys.windows.windef;
18 
19 enum ODBCVER = 0x0351;
20 
21 enum SQL_ACCESSIBLE_PROCEDURES=20;
22 enum SQL_ACCESSIBLE_TABLES=19;
23 enum SQL_ALL_TYPES=0;
24 enum SQL_ALTER_TABLE=86;
25 enum SQL_API_SQLALLOCCONNECT=1;
26 enum SQL_API_SQLALLOCENV=2;
27 enum SQL_API_SQLALLOCSTMT=3;
28 enum SQL_API_SQLBINDCOL=4;
29 enum SQL_API_SQLCANCEL=5;
30 enum SQL_API_SQLCOLUMNS=40;
31 enum SQL_API_SQLCONNECT=7;
32 enum SQL_API_SQLDATASOURCES=57;
33 enum SQL_API_SQLDESCRIBECOL=8;
34 enum SQL_API_SQLDISCONNECT=9;
35 enum SQL_API_SQLERROR=10;
36 enum SQL_API_SQLEXECDIRECT=11;
37 enum SQL_API_SQLEXECUTE=12;
38 enum SQL_API_SQLFETCH=13;
39 enum SQL_API_SQLFREECONNECT=14;
40 enum SQL_API_SQLFREEENV=15;
41 enum SQL_API_SQLFREESTMT=16;
42 enum SQL_API_SQLGETCONNECTOPTION=42;
43 enum SQL_API_SQLGETCURSORNAME=17;
44 enum SQL_API_SQLGETDATA=43;
45 enum SQL_API_SQLGETFUNCTIONS=44;
46 enum SQL_API_SQLGETINFO=45;
47 enum SQL_API_SQLGETSTMTOPTION=46;
48 enum SQL_API_SQLGETTYPEINFO=47;
49 enum SQL_API_SQLNUMRESULTCOLS=18;
50 enum SQL_API_SQLPARAMDATA=48;
51 enum SQL_API_SQLPREPARE=19;
52 enum SQL_API_SQLPUTDATA=49;
53 enum SQL_API_SQLROWCOUNT=20;
54 enum SQL_API_SQLSETCONNECTOPTION=50;
55 enum SQL_API_SQLSETCURSORNAME=21;
56 enum SQL_API_SQLSETPARAM=22;
57 enum SQL_API_SQLSETSTMTOPTION=51;
58 enum SQL_API_SQLSPECIALCOLUMNS=52;
59 enum SQL_API_SQLSTATISTICS=53;
60 enum SQL_API_SQLTABLES=54;
61 enum SQL_API_SQLTRANSACT=23;
62 
63 enum SQL_CB_DELETE=0;
64 enum SQL_CB_CLOSE=1;
65 enum SQL_CB_PRESERVE=2;
66 
67 enum SQL_CHAR=1;
68 enum SQL_CLOSE=0;
69 enum SQL_COMMIT=0;
70 enum SQL_CURSOR_COMMIT_BEHAVIOR=23;
71 enum SQL_DATA_AT_EXEC=-2;
72 enum SQL_DATA_SOURCE_NAME=2;
73 enum SQL_DATA_SOURCE_READ_ONLY=25;
74 enum SQL_DBMS_NAME=17;
75 enum SQL_DBMS_VER=18;
76 enum SQL_DECIMAL=3;
77 enum SQL_DEFAULT_TXN_ISOLATION=26;
78 enum SQL_DOUBLE=8;
79 enum SQL_DROP=1;
80 enum SQL_ERROR=-1;
81 
82 enum SQL_FD_FETCH_NEXT=1;
83 enum SQL_FD_FETCH_FIRST=2;
84 enum SQL_FD_FETCH_LAST=4;
85 enum SQL_FD_FETCH_PRIOR=8;
86 enum SQL_FD_FETCH_ABSOLUTE=16;
87 enum SQL_FD_FETCH_RELATIVE=32;
88 
89 enum SQL_FETCH_ABSOLUTE=5;
90 enum SQL_FETCH_DIRECTION=8;
91 enum SQL_FETCH_FIRST=2;
92 enum SQL_FETCH_LAST=3;
93 enum SQL_FETCH_NEXT=1;
94 enum SQL_FETCH_PRIOR=4;
95 enum SQL_FETCH_RELATIVE=6;
96 enum SQL_FLOAT=6;
97 enum SQL_GD_ANY_COLUMN=1;
98 enum SQL_GD_ANY_ORDER=2;
99 enum SQL_GETDATA_EXTENSIONS=81;
100 enum SQL_IC_LOWER=2;
101 enum SQL_IC_MIXED=4;
102 enum SQL_IC_SENSITIVE=3;
103 enum SQL_IC_UPPER=1;
104 enum SQL_IDENTIFIER_CASE=28;
105 enum SQL_IDENTIFIER_QUOTE_CHAR=29;
106 
107 enum SQL_INDEX_ALL=1;
108 enum SQL_INDEX_CLUSTERED=1;
109 enum SQL_INDEX_HASHED=2;
110 enum SQL_INDEX_OTHER=3;
111 enum SQL_INDEX_UNIQUE=0;
112 
113 enum SQL_INTEGER=4;
114 enum SQL_INTEGRITY=73;
115 enum SQL_INVALID_HANDLE=-2;
116 
117 enum SQL_MAX_CATALOG_NAME_LEN=34;
118 enum SQL_MAX_COLUMN_NAME_LEN=30;
119 enum SQL_MAX_COLUMNS_IN_GROUP_BY=97;
120 enum SQL_MAX_COLUMNS_IN_INDEX=98;
121 enum SQL_MAX_COLUMNS_IN_ORDER_BY=99;
122 enum SQL_MAX_COLUMNS_IN_SELECT=100;
123 enum SQL_MAX_COLUMNS_IN_TABLE=101;
124 enum SQL_MAX_CURSOR_NAME_LEN=31;
125 enum SQL_MAX_INDEX_SIZE=102;
126 enum SQL_MAX_MESSAGE_LENGTH=512;
127 enum SQL_MAX_ROW_SIZE=104;
128 enum SQL_MAX_SCHEMA_NAME_LEN=32;
129 enum SQL_MAX_STATEMENT_LEN=105;
130 enum SQL_MAX_TABLE_NAME_LEN=35;
131 enum SQL_MAX_TABLES_IN_SELECT=106;
132 enum SQL_MAX_USER_NAME_LEN=107;
133 
134 enum SQL_MAXIMUM_CATALOG_NAME_LENGTH=SQL_MAX_CATALOG_NAME_LEN;
135 enum SQL_MAXIMUM_COLUMN_NAME_LENGTH=SQL_MAX_COLUMN_NAME_LEN;
136 enum SQL_MAXIMUM_COLUMNS_IN_GROUP_BY=SQL_MAX_COLUMNS_IN_GROUP_BY;
137 enum SQL_MAXIMUM_COLUMNS_IN_INDEX=SQL_MAX_COLUMNS_IN_INDEX;
138 enum SQL_MAXIMUM_COLUMNS_IN_ORDER_BY=SQL_MAX_COLUMNS_IN_ORDER_BY;
139 enum SQL_MAXIMUM_COLUMNS_IN_SELECT=SQL_MAX_COLUMNS_IN_SELECT;
140 enum SQL_MAXIMUM_CURSOR_NAME_LENGTH=SQL_MAX_CURSOR_NAME_LEN;
141 enum SQL_MAXIMUM_INDEX_SIZE=SQL_MAX_INDEX_SIZE;
142 enum SQL_MAXIMUM_ROW_SIZE=SQL_MAX_ROW_SIZE;
143 enum SQL_MAXIMUM_SCHEMA_NAME_LENGTH=SQL_MAX_SCHEMA_NAME_LEN;
144 enum SQL_MAXIMUM_STATEMENT_LENGTH=SQL_MAX_STATEMENT_LEN;
145 enum SQL_MAXIMUM_TABLES_IN_SELECT=SQL_MAX_TABLES_IN_SELECT;
146 enum SQL_MAXIMUM_USER_NAME_LENGTH=SQL_MAX_USER_NAME_LEN;
147 
148 enum SQL_NC_HIGH=0;
149 enum SQL_NC_LOW=1;
150 enum SQL_NEED_DATA=99;
151 enum SQL_NO_NULLS=0;
152 enum SQL_NTS=-3;
153 enum LONG SQL_NTSL=-3;
154 enum SQL_NULL_COLLATION=85;
155 enum SQL_NULL_DATA=-1;
156 enum SQL_NULL_HDBC=0;
157 enum SQL_NULL_HENV=0;
158 enum SQL_NULL_HSTMT=0;
159 enum SQL_NULLABLE=1;
160 enum SQL_NULLABLE_UNKNOWN=2;
161 enum SQL_NUMERIC=2;
162 enum SQL_ORDER_BY_COLUMNS_IN_SELECT=90;
163 enum SQL_PC_PSEUDO=2;
164 enum SQL_PC_UNKNOWN=0;
165 enum SQL_REAL=7;
166 enum SQL_RESET_PARAMS=3;
167 enum SQL_ROLLBACK=1;
168 enum SQL_SCCO_LOCK=2;
169 enum SQL_SCCO_OPT_ROWVER=4;
170 enum SQL_SCCO_OPT_VALUES=8;
171 enum SQL_SCCO_READ_ONLY=1;
172 enum SQL_SCOPE_CURROW=0;
173 enum SQL_SCOPE_SESSION=2;
174 enum SQL_SCOPE_TRANSACTION=1;
175 enum SQL_SCROLL_CONCURRENCY=43;
176 enum SQL_SEARCH_PATTERN_ESCAPE=14;
177 enum SQL_SERVER_NAME=13;
178 enum SQL_SMALLINT=5;
179 enum SQL_SPECIAL_CHARACTERS=94;
180 enum SQL_STILL_EXECUTING=2;
181 //MACRO #define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
182 
183 enum SQL_SUCCESS=0;
184 enum SQL_SUCCESS_WITH_INFO=1;
185 
186 enum SQL_TC_ALL=2;
187 enum SQL_TC_DDL_COMMIT=3;
188 enum SQL_TC_DDL_IGNORE=4;
189 enum SQL_TC_DML=1;
190 enum SQL_TC_NONE=0;
191 
192 
193 enum SQL_TXN_CAPABLE=46;
194 enum SQL_TXN_ISOLATION_OPTION=72;
195 enum SQL_TXN_READ_COMMITTED=2;
196 enum SQL_TXN_READ_UNCOMMITTED=1;
197 enum SQL_TXN_REPEATABLE_READ=4;
198 enum SQL_TXN_SERIALIZABLE=8;
199 
200 enum SQL_TRANSACTION_CAPABLE=SQL_TXN_CAPABLE;
201 enum SQL_TRANSACTION_ISOLATION_OPTION=SQL_TXN_ISOLATION_OPTION;
202 enum SQL_TRANSACTION_READ_COMMITTED=SQL_TXN_READ_COMMITTED;
203 enum SQL_TRANSACTION_READ_UNCOMMITTED=SQL_TXN_READ_UNCOMMITTED;
204 enum SQL_TRANSACTION_REPEATABLE_READ=SQL_TXN_REPEATABLE_READ;
205 enum SQL_TRANSACTION_SERIALIZABLE=SQL_TXN_SERIALIZABLE;
206 
207 enum SQL_UNBIND=2;
208 enum SQL_UNKNOWN_TYPE=0;
209 enum SQL_USER_NAME=47;
210 enum SQL_VARCHAR=12;
211 
212 static if (ODBCVER >= 0x0200) {
213 enum SQL_AT_ADD_COLUMN  = 1;
214 enum SQL_AT_DROP_COLUMN = 2;
215 }
216 
217 static if (ODBCVER >= 0x0201) {
218 enum SQL_OJ_LEFT               =  1;
219 enum SQL_OJ_RIGHT              =  2;
220 enum SQL_OJ_FULL               =  4;
221 enum SQL_OJ_NESTED             =  8;
222 enum SQL_OJ_NOT_ORDERED        = 16;
223 enum SQL_OJ_INNER              = 32;
224 enum SQL_OJ_ALL_COMPARISON_OPS = 64;
225 }
226 
227 static if (ODBCVER >= 0x0300) {
228 enum SQL_AM_CONNECTION=1;
229 enum SQL_AM_NONE=0;
230 enum SQL_AM_STATEMENT=2;
231 enum SQL_API_SQLALLOCHANDLE=1001;
232 enum SQL_API_SQLBINDPARAM=1002;
233 enum SQL_API_SQLCLOSECURSOR=1003;
234 enum SQL_API_SQLCOLATTRIBUTE=6;
235 enum SQL_API_SQLCOPYDESC=1004;
236 enum SQL_API_SQLENDTRAN=1005;
237 enum SQL_API_SQLFETCHSCROLL=1021;
238 enum SQL_API_SQLFREEHANDLE=1006;
239 enum SQL_API_SQLGETCONNECTATTR=1007;
240 enum SQL_API_SQLGETDESCFIELD=1008;
241 enum SQL_API_SQLGETDESCREC=1009;
242 enum SQL_API_SQLGETDIAGFIELD=1010;
243 enum SQL_API_SQLGETDIAGREC=1011;
244 enum SQL_API_SQLGETENVATTR=1012;
245 enum SQL_API_SQLGETSTMTATTR=1014;
246 enum SQL_API_SQLSETCONNECTATTR=1016;
247 enum SQL_API_SQLSETDESCFIELD=1017;
248 enum SQL_API_SQLSETDESCREC=1018;
249 enum SQL_API_SQLSETENVATTR=1019;
250 enum SQL_API_SQLSETSTMTATTR=1020;
251 enum SQL_ARD_TYPE=-99;
252 enum SQL_AT_ADD_CONSTRAINT=8;
253 enum SQL_ATTR_APP_PARAM_DESC=10011;
254 enum SQL_ATTR_APP_ROW_DESC=10010;
255 enum SQL_ATTR_AUTO_IPD=10001;
256 enum SQL_ATTR_CURSOR_SCROLLABLE=-1;
257 enum SQL_ATTR_CURSOR_SENSITIVITY=-2;
258 enum SQL_ATTR_IMP_PARAM_DESC=10013;
259 enum SQL_ATTR_IMP_ROW_DESC=10012;
260 enum SQL_ATTR_METADATA_ID=10014;
261 enum SQL_ATTR_OUTPUT_NTS=10001;
262 enum SQL_CATALOG_NAME=10003;
263 enum SQL_CODE_DATE=1;
264 enum SQL_CODE_TIME=2;
265 enum SQL_CODE_TIMESTAMP=3;
266 enum SQL_COLLATION_SEQ=10004;
267 enum SQL_CURSOR_SENSITIVITY=10001;
268 enum SQL_DATE_LEN=10;
269 enum SQL_DATETIME=9;
270 enum SQL_DEFAULT=99;
271 
272 enum SQL_DESC_ALLOC_AUTO=1;
273 enum SQL_DESC_ALLOC_USER=2;
274 enum SQL_DESC_ALLOC_TYPE=1099;
275 enum SQL_DESC_COUNT=1001;
276 enum SQL_DESC_TYPE=1002;
277 enum SQL_DESC_LENGTH=1003;
278 enum SQL_DESC_OCTET_LENGTH_PTR=1004;
279 enum SQL_DESC_PRECISION=1005;
280 enum SQL_DESC_SCALE=1006;
281 enum SQL_DESC_DATETIME_INTERVAL_CODE=1007;
282 enum SQL_DESC_NULLABLE=1008;
283 enum SQL_DESC_INDICATOR_PTR=1009;
284 enum SQL_DESC_DATA_PTR=1010;
285 enum SQL_DESC_NAME=1011;
286 enum SQL_DESC_UNNAMED=1012;
287 enum SQL_DESC_OCTET_LENGTH=1013;
288 
289 enum SQL_DESCRIBE_PARAMETER=10002;
290 
291 enum SQL_DIAG_ALTER_DOMAIN=3;
292 enum SQL_DIAG_ALTER_TABLE=4;
293 enum SQL_DIAG_CALL=7;
294 enum SQL_DIAG_CLASS_ORIGIN=8;
295 enum SQL_DIAG_CONNECTION_NAME=10;
296 enum SQL_DIAG_CREATE_ASSERTION=6;
297 enum SQL_DIAG_CREATE_CHARACTER_SET=8;
298 enum SQL_DIAG_CREATE_COLLATION=10;
299 enum SQL_DIAG_CREATE_DOMAIN=23;
300 enum SQL_DIAG_CREATE_INDEX=-1;
301 enum SQL_DIAG_CREATE_SCHEMA=64;
302 enum SQL_DIAG_CREATE_TABLE=77;
303 enum SQL_DIAG_CREATE_TRANSLATION=79;
304 enum SQL_DIAG_CREATE_VIEW=84;
305 enum SQL_DIAG_DELETE_WHERE=19;
306 enum SQL_DIAG_DROP_ASSERTION=24;
307 enum SQL_DIAG_DROP_CHARACTER_SET=25;
308 enum SQL_DIAG_DROP_COLLATION=26;
309 enum SQL_DIAG_DROP_DOMAIN=27;
310 enum SQL_DIAG_DROP_INDEX=(-2);
311 enum SQL_DIAG_DROP_SCHEMA=31;
312 enum SQL_DIAG_DROP_TABLE=32;
313 enum SQL_DIAG_DROP_TRANSLATION=33;
314 enum SQL_DIAG_DROP_VIEW=36;
315 enum SQL_DIAG_DYNAMIC_DELETE_CURSOR=38;
316 enum SQL_DIAG_DYNAMIC_FUNCTION=7;
317 enum SQL_DIAG_DYNAMIC_FUNCTION_CODE=12;
318 enum SQL_DIAG_DYNAMIC_UPDATE_CURSOR=81;
319 enum SQL_DIAG_GRANT=48;
320 enum SQL_DIAG_INSERT=50;
321 enum SQL_DIAG_MESSAGE_TEXT=6;
322 enum SQL_DIAG_NATIVE=5;
323 enum SQL_DIAG_NUMBER=2;
324 enum SQL_DIAG_RETURNCODE=1;
325 enum SQL_DIAG_REVOKE=59;
326 enum SQL_DIAG_ROW_COUNT=3;
327 enum SQL_DIAG_SELECT_CURSOR=85;
328 enum SQL_DIAG_SERVER_NAME=11;
329 enum SQL_DIAG_SQLSTATE=4;
330 enum SQL_DIAG_SUBCLASS_ORIGIN=9;
331 enum SQL_DIAG_UNKNOWN_STATEMENT=0;
332 enum SQL_DIAG_UPDATE_WHERE=82;
333 
334 enum SQL_FALSE=0;
335 enum SQL_HANDLE_DBC=2;
336 enum SQL_HANDLE_DESC=4;
337 enum SQL_HANDLE_ENV=1;
338 enum SQL_HANDLE_STMT=3;
339 enum SQL_INSENSITIVE=1;
340 enum SQL_MAX_CONCURRENT_ACTIVITIES=1;
341 enum SQL_MAX_DRIVER_CONNECTIONS=0;
342 enum SQL_MAX_IDENTIFIER_LEN=10005;
343 enum SQL_MAXIMUM_CONCURRENT_ACTIVITIES=SQL_MAX_CONCURRENT_ACTIVITIES;
344 enum SQL_MAXIMUM_DRIVER_CONNECTIONS=SQL_MAX_DRIVER_CONNECTIONS;
345 enum SQL_MAXIMUM_IDENTIFIER_LENGTH=SQL_MAX_IDENTIFIER_LEN;
346 enum SQL_NAMED=0;
347 enum SQL_NO_DATA=100;
348 enum SQL_NONSCROLLABLE=0;
349 enum SQL_NULL_HANDLE=0L;
350 enum SQL_NULL_HDESC=0;
351 enum SQL_OJ_CAPABILITIES=115;
352 enum SQL_OUTER_JOIN_CAPABILITIES=SQL_OJ_CAPABILITIES;
353 enum SQL_PC_NON_PSEUDO=1;
354 
355 enum SQL_PRED_NONE=0;
356 enum SQL_PRED_CHAR=1;
357 enum SQL_PRED_BASIC=2;
358 
359 enum SQL_ROW_IDENTIFIER=1;
360 enum SQL_SCROLLABLE=1;
361 enum SQL_SENSITIVE=2;
362 enum SQL_TIME_LEN=8;
363 enum SQL_TIMESTAMP_LEN=19;
364 enum SQL_TRUE=1;
365 enum SQL_TYPE_DATE=91;
366 enum SQL_TYPE_TIME=92;
367 enum SQL_TYPE_TIMESTAMP=93;
368 enum SQL_UNNAMED=1;
369 enum SQL_UNSPECIFIED=0;
370 enum SQL_XOPEN_CLI_YEAR=10000;
371 }//#endif /* ODBCVER >= 0x0300 */
372 
373 extern (Windows) {
374     deprecated {
375         SQLRETURN SQLAllocConnect(SQLHENV, SQLHDBC*);
376         SQLRETURN SQLAllocEnv(SQLHENV*);
377         SQLRETURN SQLAllocStmt(SQLHDBC, SQLHSTMT*);
378         SQLRETURN SQLError(SQLHENV, SQLHDBC, SQLHSTMT, SQLCHAR*, SQLINTEGER*, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*);
379         SQLRETURN SQLFreeConnect(SQLHDBC);
380         SQLRETURN SQLFreeEnv(SQLHENV);
381         SQLRETURN SQLSetParam(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN*);
382         SQLRETURN SQLGetConnectOption(SQLHDBC, SQLUSMALLINT, SQLPOINTER);
383         SQLRETURN SQLGetStmtOption(SQLHSTMT, SQLUSMALLINT, SQLPOINTER);
384         SQLRETURN SQLSetConnectOption(SQLHDBC, SQLUSMALLINT, SQLULEN);
385         SQLRETURN SQLSetStmtOption(SQLHSTMT, SQLUSMALLINT, SQLROWCOUNT);
386     }
387     SQLRETURN SQLBindCol(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*);
388     SQLRETURN SQLCancel(SQLHSTMT);
389     SQLRETURN SQLConnect(SQLHDBC, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT);
390     SQLRETURN SQLDescribeCol(SQLHSTMT, SQLUSMALLINT, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*, SQLSMALLINT*, SQLULEN*, SQLSMALLINT*, SQLSMALLINT*);
391     SQLRETURN SQLDisconnect(SQLHDBC);
392     SQLRETURN SQLExecDirect(SQLHSTMT, SQLCHAR*, SQLINTEGER);
393     SQLRETURN SQLExecute(SQLHSTMT);
394     SQLRETURN SQLFetch(SQLHSTMT);
395     SQLRETURN SQLFreeStmt(SQLHSTMT, SQLUSMALLINT);
396     SQLRETURN SQLGetCursorName(SQLHSTMT, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*);
397     SQLRETURN SQLNumResultCols(SQLHSTMT, SQLSMALLINT*);
398     SQLRETURN SQLPrepare(SQLHSTMT, SQLCHAR*, SQLINTEGER);
399     SQLRETURN SQLRowCount(SQLHSTMT, SQLLEN*);
400     SQLRETURN SQLSetCursorName(SQLHSTMT, SQLCHAR*, SQLSMALLINT);
401     SQLRETURN SQLTransact(SQLHENV, SQLHDBC, SQLUSMALLINT);
402     SQLRETURN SQLColumns(SQLHSTMT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT);
403     SQLRETURN SQLGetData(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*);
404     SQLRETURN SQLGetFunctions(SQLHDBC, SQLUSMALLINT, SQLUSMALLINT*);
405     SQLRETURN SQLGetInfo(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT*);
406     SQLRETURN SQLGetTypeInfo(SQLHSTMT, SQLSMALLINT);
407     SQLRETURN SQLParamData(SQLHSTMT, SQLPOINTER*);
408     SQLRETURN SQLPutData(SQLHSTMT, SQLPOINTER, SQLLEN);
409     SQLRETURN SQLSpecialColumns(SQLHSTMT, SQLUSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT);
410     SQLRETURN SQLStatistics(SQLHSTMT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT);
411     SQLRETURN SQLTables(SQLHSTMT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLCHAR*, SQLSMALLINT);
412     SQLRETURN SQLDataSources(SQLHENV, SQLUSMALLINT, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*);
413 
414     static if (ODBCVER >= 0x0300) {
415         SQLRETURN SQLAllocHandle(SQLSMALLINT, SQLHANDLE, SQLHANDLE*);
416         SQLRETURN SQLBindParam(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN*);
417         SQLRETURN SQLCloseCursor(SQLHSTMT);
418         SQLRETURN SQLColAttribute(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT*, SQLPOINTER);
419         SQLRETURN SQLCopyDesc(SQLHDESC, SQLHDESC);
420         SQLRETURN SQLEndTran(SQLSMALLINT, SQLHANDLE, SQLSMALLINT);
421         SQLRETURN SQLFetchScroll(SQLHSTMT, SQLSMALLINT, SQLROWOFFSET);
422         SQLRETURN SQLFreeHandle(SQLSMALLINT, SQLHANDLE);
423         SQLRETURN SQLGetConnectAttr(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER*);
424         SQLRETURN SQLGetDescField(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER, SQLINTEGER*);
425         SQLRETURN SQLGetDescRec(SQLHDESC, SQLSMALLINT, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*,
426           SQLSMALLINT*, SQLSMALLINT*, SQLLEN*, SQLSMALLINT*, SQLSMALLINT*, SQLSMALLINT*);
427         SQLRETURN SQLGetDiagField(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT*);
428         SQLRETURN SQLGetDiagRec(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLCHAR*, SQLINTEGER*, SQLCHAR*, SQLSMALLINT, SQLSMALLINT*);
429         SQLRETURN SQLGetEnvAttr(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER*);
430         SQLRETURN SQLGetStmtAttr(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER*);
431         SQLRETURN SQLSetConnectAttr(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER);
432         SQLRETURN SQLSetDescField(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER);
433         SQLRETURN SQLSetDescRec(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLLEN, SQLSMALLINT,
434             SQLSMALLINT, SQLPOINTER, SQLLEN*, SQLLEN*);
435         SQLRETURN SQLSetEnvAttr(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER);
436         SQLRETURN SQLSetStmtAttr(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER);
437     }/* (ODBCVER >= 0x0300) */
438 }