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