VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/sql.h@ 33223

Last change on this file since 33223 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 25.6 KB
Line 
1/*
2 * ODBC definitions
3 *
4 * Copyright (C) 1999 Xiang Li
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/*
22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef __SQL_H
31#define __SQL_H
32
33#ifndef ODBCVER
34#define ODBCVER 0x0351
35#endif
36
37#include <sqltypes.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43#define SQL_NULL_DATA (-1)
44#define SQL_DATA_AT_EXEC (-2)
45#define SQL_SUCCESS 0
46#define SQL_SUCCESS_WITH_INFO 1
47#if (ODBCVER >= 0x0300)
48#define SQL_NO_DATA 100
49#endif
50#define SQL_ERROR (-1)
51#define SQL_INVALID_HANDLE (-2)
52#define SQL_STILL_EXECUTING 2
53#define SQL_NEED_DATA 99
54#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
55
56#define SQL_NTS (-3)
57#define SQL_NTSL (-3L)
58
59#define SQL_MAX_MESSAGE_LENGTH 512
60
61#if (ODBCVER >= 0x0300)
62#define SQL_DATE_LEN 10
63#define SQL_TIME_LEN 8
64#define SQL_TIMESTAMP_LEN 19
65#endif
66
67#if (ODBCVER >= 0x0300)
68#define SQL_HANDLE_ENV 1
69#define SQL_HANDLE_DBC 2
70#define SQL_HANDLE_STMT 3
71#define SQL_HANDLE_DESC 4
72#endif
73
74#if (ODBCVER >= 0x0300)
75#define SQL_ATTR_OUTPUT_NTS 10001
76#endif
77
78#if (ODBCVER >= 0x0300)
79#define SQL_ATTR_AUTO_IPD 10001
80#define SQL_ATTR_METADATA_ID 10014
81#endif
82
83#if (ODBCVER >= 0x0300)
84#define SQL_ATTR_APP_ROW_DESC 10010
85#define SQL_ATTR_APP_PARAM_DESC 10011
86#define SQL_ATTR_IMP_ROW_DESC 10012
87#define SQL_ATTR_IMP_PARAM_DESC 10013
88#define SQL_ATTR_CURSOR_SCROLLABLE (-1)
89#define SQL_ATTR_CURSOR_SENSITIVITY (-2)
90#endif
91
92#if (ODBCVER >= 0x0300)
93#define SQL_NONSCROLLABLE 0
94#define SQL_SCROLLABLE 1
95#endif
96
97#if (ODBCVER >= 0x0300)
98#define SQL_DESC_COUNT 1001
99#define SQL_DESC_TYPE 1002
100#define SQL_DESC_LENGTH 1003
101#define SQL_DESC_OCTET_LENGTH_PTR 1004
102#define SQL_DESC_PRECISION 1005
103#define SQL_DESC_SCALE 1006
104#define SQL_DESC_DATETIME_INTERVAL_CODE 1007
105#define SQL_DESC_NULLABLE 1008
106#define SQL_DESC_INDICATOR_PTR 1009
107#define SQL_DESC_DATA_PTR 1010
108#define SQL_DESC_NAME 1011
109#define SQL_DESC_UNNAMED 1012
110#define SQL_DESC_OCTET_LENGTH 1013
111#define SQL_DESC_ALLOC_TYPE 1099
112#endif
113
114#if (ODBCVER >= 0x0300)
115#define SQL_DIAG_RETURNCODE 1
116#define SQL_DIAG_NUMBER 2
117#define SQL_DIAG_ROW_COUNT 3
118#define SQL_DIAG_SQLSTATE 4
119#define SQL_DIAG_NATIVE 5
120#define SQL_DIAG_MESSAGE_TEXT 6
121#define SQL_DIAG_DYNAMIC_FUNCTION 7
122#define SQL_DIAG_CLASS_ORIGIN 8
123#define SQL_DIAG_SUBCLASS_ORIGIN 9
124#define SQL_DIAG_CONNECTION_NAME 10
125#define SQL_DIAG_SERVER_NAME 11
126#define SQL_DIAG_DYNAMIC_FUNCTION_CODE 12
127#endif
128
129#if (ODBCVER >= 0x0300)
130#define SQL_DIAG_ALTER_DOMAIN 3
131#define SQL_DIAG_ALTER_TABLE 4
132#define SQL_DIAG_CALL 7
133#define SQL_DIAG_CREATE_ASSERTION 6
134#define SQL_DIAG_CREATE_CHARACTER_SET 8
135#define SQL_DIAG_CREATE_COLLATION 10
136#define SQL_DIAG_CREATE_DOMAIN 23
137#define SQL_DIAG_CREATE_INDEX (-1)
138#define SQL_DIAG_CREATE_SCHEMA 64
139#define SQL_DIAG_CREATE_TABLE 77
140#define SQL_DIAG_CREATE_TRANSLATION 79
141#define SQL_DIAG_CREATE_VIEW 84
142#define SQL_DIAG_DELETE_WHERE 19
143#define SQL_DIAG_DROP_ASSERTION 24
144#define SQL_DIAG_DROP_CHARACTER_SET 25
145#define SQL_DIAG_DROP_COLLATION 26
146#define SQL_DIAG_DROP_DOMAIN 27
147#define SQL_DIAG_DROP_INDEX (-2)
148#define SQL_DIAG_DROP_SCHEMA 31
149#define SQL_DIAG_DROP_TABLE 32
150#define SQL_DIAG_DROP_TRANSLATION 33
151#define SQL_DIAG_DROP_VIEW 36
152#define SQL_DIAG_DYNAMIC_DELETE_CURSOR 38
153#define SQL_DIAG_DYNAMIC_UPDATE_CURSOR 81
154#define SQL_DIAG_GRANT 48
155#define SQL_DIAG_INSERT 50
156#define SQL_DIAG_REVOKE 59
157#define SQL_DIAG_SELECT_CURSOR 85
158#define SQL_DIAG_UNKNOWN_STATEMENT 0
159#define SQL_DIAG_UPDATE_WHERE 82
160#endif
161
162#define SQL_UNKNOWN_TYPE 0
163#define SQL_CHAR 1
164#define SQL_NUMERIC 2
165#define SQL_DECIMAL 3
166#define SQL_INTEGER 4
167#define SQL_SMALLINT 5
168#define SQL_FLOAT 6
169#define SQL_REAL 7
170#define SQL_DOUBLE 8
171#if (ODBCVER >= 0x0300)
172#define SQL_DATETIME 9
173#endif
174#define SQL_VARCHAR 12
175
176#if (ODBCVER >= 0x0300)
177#define SQL_TYPE_DATE 91
178#define SQL_TYPE_TIME 92
179#define SQL_TYPE_TIMESTAMP 93
180#endif
181
182#if (ODBCVER >= 0x0300)
183#define SQL_UNSPECIFIED 0
184#define SQL_INSENSITIVE 1
185#define SQL_SENSITIVE 2
186#endif
187
188#define SQL_ALL_TYPES 0
189
190#if (ODBCVER >= 0x0300)
191#define SQL_DEFAULT 99
192#endif
193
194#if (ODBCVER >= 0x0300)
195#define SQL_ARD_TYPE (-99)
196#endif
197
198#if (ODBCVER >= 0x0300)
199#define SQL_CODE_DATE 1
200#define SQL_CODE_TIME 2
201#define SQL_CODE_TIMESTAMP 3
202#endif
203
204#if (ODBCVER >= 0x0300)
205#define SQL_FALSE 0
206#define SQL_TRUE 1
207#endif
208
209#define SQL_NO_NULLS 0
210#define SQL_NULLABLE 1
211
212#define SQL_NULLABLE_UNKNOWN 2
213
214#if (ODBCVER >= 0x0300)
215#define SQL_PRED_NONE 0
216#define SQL_PRED_CHAR 1
217#define SQL_PRED_BASIC 2
218#endif
219
220#if (ODBCVER >= 0x0300)
221#define SQL_NAMED 0
222#define SQL_UNNAMED 1
223#endif
224
225#if (ODBCVER >= 0x0300)
226#define SQL_DESC_ALLOC_AUTO 1
227#define SQL_DESC_ALLOC_USER 2
228#endif
229
230#define SQL_CLOSE 0
231#define SQL_DROP 1
232#define SQL_UNBIND 2
233#define SQL_RESET_PARAMS 3
234#define SQL_FETCH_NEXT 1
235#define SQL_FETCH_FIRST 2
236#define SQL_FETCH_LAST 3
237#define SQL_FETCH_PRIOR 4
238#define SQL_FETCH_ABSOLUTE 5
239#define SQL_FETCH_RELATIVE 6
240
241#define SQL_COMMIT 0
242#define SQL_ROLLBACK 1
243
244#define SQL_NULL_HENV 0
245#define SQL_NULL_HDBC 0
246#define SQL_NULL_HSTMT 0
247#if (ODBCVER >= 0x0300)
248#define SQL_NULL_HDESC 0
249#endif
250
251#if (ODBCVER >= 0x0300)
252#define SQL_NULL_HANDLE 0L
253#endif
254
255#define SQL_SCOPE_CURROW 0
256#define SQL_SCOPE_TRANSACTION 1
257#define SQL_SCOPE_SESSION 2
258
259#define SQL_PC_UNKNOWN 0
260#if (ODBCVER >= 0x0300)
261#define SQL_PC_NON_PSEUDO 1
262#endif
263#define SQL_PC_PSEUDO 2
264
265#if (ODBCVER >= 0x0300)
266#define SQL_ROW_IDENTIFIER 1
267#endif
268
269#define SQL_INDEX_UNIQUE 0
270#define SQL_INDEX_ALL 1
271
272#define SQL_INDEX_CLUSTERED 1
273#define SQL_INDEX_HASHED 2
274#define SQL_INDEX_OTHER 3
275
276#define SQL_API_SQLALLOCCONNECT 1
277#define SQL_API_SQLALLOCENV 2
278#if (ODBCVER >= 0x0300)
279#define SQL_API_SQLALLOCHANDLE 1001
280#endif
281#define SQL_API_SQLALLOCSTMT 3
282#define SQL_API_SQLBINDCOL 4
283#if (ODBCVER >= 0x0300)
284#define SQL_API_SQLBINDPARAM 1002
285#endif
286#define SQL_API_SQLCANCEL 5
287#if (ODBCVER >= 0x0300)
288#define SQL_API_SQLCLOSECURSOR 1003
289#define SQL_API_SQLCOLATTRIBUTE 6
290#endif
291#define SQL_API_SQLCOLUMNS 40
292#define SQL_API_SQLCONNECT 7
293#if (ODBCVER >= 0x0300)
294#define SQL_API_SQLCOPYDESC 1004
295#endif
296#define SQL_API_SQLDATASOURCES 57
297#define SQL_API_SQLDESCRIBECOL 8
298#define SQL_API_SQLDISCONNECT 9
299#if (ODBCVER >= 0x0300)
300#define SQL_API_SQLENDTRAN 1005
301#endif
302#define SQL_API_SQLERROR 10
303#define SQL_API_SQLEXECDIRECT 11
304#define SQL_API_SQLEXECUTE 12
305#define SQL_API_SQLFETCH 13
306#if (ODBCVER >= 0x0300)
307#define SQL_API_SQLFETCHSCROLL 1021
308#endif
309#define SQL_API_SQLFREECONNECT 14
310#define SQL_API_SQLFREEENV 15
311#if (ODBCVER >= 0x0300)
312#define SQL_API_SQLFREEHANDLE 1006
313#endif
314#define SQL_API_SQLFREESTMT 16
315#if (ODBCVER >= 0x0300)
316#define SQL_API_SQLGETCONNECTATTR 1007
317#endif
318#define SQL_API_SQLGETCONNECTOPTION 42
319#define SQL_API_SQLGETCURSORNAME 17
320#define SQL_API_SQLGETDATA 43
321#if (ODBCVER >= 0x0300)
322#define SQL_API_SQLGETDESCFIELD 1008
323#define SQL_API_SQLGETDESCREC 1009
324#define SQL_API_SQLGETDIAGFIELD 1010
325#define SQL_API_SQLGETDIAGREC 1011
326#define SQL_API_SQLGETENVATTR 1012
327#endif
328#define SQL_API_SQLGETFUNCTIONS 44
329#define SQL_API_SQLGETINFO 45
330#if (ODBCVER >= 0x0300)
331#define SQL_API_SQLGETSTMTATTR 1014
332#endif
333#define SQL_API_SQLGETSTMTOPTION 46
334#define SQL_API_SQLGETTYPEINFO 47
335#define SQL_API_SQLNUMRESULTCOLS 18
336#define SQL_API_SQLPARAMDATA 48
337#define SQL_API_SQLPREPARE 19
338#define SQL_API_SQLPUTDATA 49
339#define SQL_API_SQLROWCOUNT 20
340#if (ODBCVER >= 0x0300)
341#define SQL_API_SQLSETCONNECTATTR 1016
342#endif
343#define SQL_API_SQLSETCONNECTOPTION 50
344#define SQL_API_SQLSETCURSORNAME 21
345#if (ODBCVER >= 0x0300)
346#define SQL_API_SQLSETDESCFIELD 1017
347#define SQL_API_SQLSETDESCREC 1018
348#define SQL_API_SQLSETENVATTR 1019
349#endif
350#define SQL_API_SQLSETPARAM 22
351#if (ODBCVER >= 0x0300)
352#define SQL_API_SQLSETSTMTATTR 1020
353#endif
354#define SQL_API_SQLSETSTMTOPTION 51
355#define SQL_API_SQLSPECIALCOLUMNS 52
356#define SQL_API_SQLSTATISTICS 53
357#define SQL_API_SQLTABLES 54
358#define SQL_API_SQLTRANSACT 23
359
360#if (ODBCVER >= 0x0300)
361#define SQL_MAX_DRIVER_CONNECTIONS 0
362#define SQL_MAXIMUM_DRIVER_CONNECTIONS SQL_MAX_DRIVER_CONNECTIONS
363#define SQL_MAX_CONCURRENT_ACTIVITIES 1
364#define SQL_MAXIMUM_CONCURRENT_ACTIVITIES SQL_MAX_CONCURRENT_ACTIVITIES
365#endif
366#define SQL_DATA_SOURCE_NAME 2
367#define SQL_FETCH_DIRECTION 8
368#define SQL_SERVER_NAME 13
369#define SQL_SEARCH_PATTERN_ESCAPE 14
370#define SQL_DBMS_NAME 17
371#define SQL_DBMS_VER 18
372#define SQL_ACCESSIBLE_TABLES 19
373#define SQL_ACCESSIBLE_PROCEDURES 20
374#define SQL_CURSOR_COMMIT_BEHAVIOR 23
375#define SQL_DATA_SOURCE_READ_ONLY 25
376#define SQL_DEFAULT_TXN_ISOLATION 26
377#define SQL_IDENTIFIER_CASE 28
378#define SQL_IDENTIFIER_QUOTE_CHAR 29
379#define SQL_MAX_COLUMN_NAME_LEN 30
380#define SQL_MAXIMUM_COLUMN_NAME_LENGTH SQL_MAX_COLUMN_NAME_LEN
381#define SQL_MAX_CURSOR_NAME_LEN 31
382#define SQL_MAXIMUM_CURSOR_NAME_LENGTH SQL_MAX_CURSOR_NAME_LEN
383#define SQL_MAX_SCHEMA_NAME_LEN 32
384#define SQL_MAXIMUM_SCHEMA_NAME_LENGTH SQL_MAX_SCHEMA_NAME_LEN
385#define SQL_MAX_CATALOG_NAME_LEN 34
386#define SQL_MAXIMUM_CATALOG_NAME_LENGTH SQL_MAX_CATALOG_NAME_LEN
387#define SQL_MAX_TABLE_NAME_LEN 35
388#define SQL_SCROLL_CONCURRENCY 43
389#define SQL_TXN_CAPABLE 46
390#define SQL_TRANSACTION_CAPABLE SQL_TXN_CAPABLE
391#define SQL_USER_NAME 47
392#define SQL_TXN_ISOLATION_OPTION 72
393#define SQL_TRANSACTION_ISOLATION_OPTION SQL_TXN_ISOLATION_OPTION
394#define SQL_INTEGRITY 73
395#define SQL_GETDATA_EXTENSIONS 81
396#define SQL_NULL_COLLATION 85
397#define SQL_ALTER_TABLE 86
398#define SQL_ORDER_BY_COLUMNS_IN_SELECT 90
399#define SQL_SPECIAL_CHARACTERS 94
400#define SQL_MAX_COLUMNS_IN_GROUP_BY 97
401#define SQL_MAXIMUM_COLUMNS_IN_GROUP_BY SQL_MAX_COLUMNS_IN_GROUP_BY
402#define SQL_MAX_COLUMNS_IN_INDEX 98
403#define SQL_MAXIMUM_COLUMNS_IN_INDEX SQL_MAX_COLUMNS_IN_INDEX
404#define SQL_MAX_COLUMNS_IN_ORDER_BY 99
405#define SQL_MAXIMUM_COLUMNS_IN_ORDER_BY SQL_MAX_COLUMNS_IN_ORDER_BY
406#define SQL_MAX_COLUMNS_IN_SELECT 100
407#define SQL_MAXIMUM_COLUMNS_IN_SELECT SQL_MAX_COLUMNS_IN_SELECT
408#define SQL_MAX_COLUMNS_IN_TABLE 101
409#define SQL_MAX_INDEX_SIZE 102
410#define SQL_MAXIMUM_INDEX_SIZE SQL_MAX_INDEX_SIZE
411#define SQL_MAX_ROW_SIZE 104
412#define SQL_MAXIMUM_ROW_SIZE SQL_MAX_ROW_SIZE
413#define SQL_MAX_STATEMENT_LEN 105
414#define SQL_MAXIMUM_STATEMENT_LENGTH SQL_MAX_STATEMENT_LEN
415#define SQL_MAX_TABLES_IN_SELECT 106
416#define SQL_MAXIMUM_TABLES_IN_SELECT SQL_MAX_TABLES_IN_SELECT
417#define SQL_MAX_USER_NAME_LEN 107
418#define SQL_MAXIMUM_USER_NAME_LENGTH SQL_MAX_USER_NAME_LEN
419#if (ODBCVER >= 0x0300)
420#define SQL_OJ_CAPABILITIES 115
421#define SQL_OUTER_JOIN_CAPABILITIES SQL_OJ_CAPABILITIES
422#endif
423
424#if (ODBCVER >= 0x0300)
425#define SQL_XOPEN_CLI_YEAR 10000
426#define SQL_CURSOR_SENSITIVITY 10001
427#define SQL_DESCRIBE_PARAMETER 10002
428#define SQL_CATALOG_NAME 10003
429#define SQL_COLLATION_SEQ 10004
430#define SQL_MAX_IDENTIFIER_LEN 10005
431#define SQL_MAXIMUM_IDENTIFIER_LENGTH SQL_MAX_IDENTIFIER_LEN
432#endif
433
434#if (ODBCVER >= 0x0200)
435#define SQL_AT_ADD_COLUMN 0x00000001L
436#define SQL_AT_DROP_COLUMN 0x00000002L
437#endif
438
439#if (ODBCVER >= 0x0300)
440#define SQL_AT_ADD_CONSTRAINT 0x00000008L
441
442#endif /* ODBCVER >= 0x0300 */
443
444
445#if (ODBCVER >= 0x0300)
446#define SQL_AM_NONE 0
447#define SQL_AM_CONNECTION 1
448#define SQL_AM_STATEMENT 2
449#endif
450
451#define SQL_CB_DELETE 0
452#define SQL_CB_CLOSE 1
453#define SQL_CB_PRESERVE 2
454
455#define SQL_FD_FETCH_NEXT 0x00000001L
456#define SQL_FD_FETCH_FIRST 0x00000002L
457#define SQL_FD_FETCH_LAST 0x00000004L
458#define SQL_FD_FETCH_PRIOR 0x00000008L
459#define SQL_FD_FETCH_ABSOLUTE 0x00000010L
460#define SQL_FD_FETCH_RELATIVE 0x00000020L
461
462#define SQL_GD_ANY_COLUMN 0x00000001L
463#define SQL_GD_ANY_ORDER 0x00000002L
464
465#define SQL_IC_UPPER 1
466#define SQL_IC_LOWER 2
467#define SQL_IC_SENSITIVE 3
468#define SQL_IC_MIXED 4
469
470#if (ODBCVER >= 0x0201)
471#define SQL_OJ_LEFT 0x00000001L
472#define SQL_OJ_RIGHT 0x00000002L
473#define SQL_OJ_FULL 0x00000004L
474#define SQL_OJ_NESTED 0x00000008L
475#define SQL_OJ_NOT_ORDERED 0x00000010L
476#define SQL_OJ_INNER 0x00000020L
477#define SQL_OJ_ALL_COMPARISON_OPS 0x00000040L
478#endif
479
480#define SQL_SCCO_READ_ONLY 0x00000001L
481#define SQL_SCCO_LOCK 0x00000002L
482#define SQL_SCCO_OPT_ROWVER 0x00000004L
483#define SQL_SCCO_OPT_VALUES 0x00000008L
484
485#define SQL_TC_NONE 0
486#define SQL_TC_DML 1
487#define SQL_TC_ALL 2
488#define SQL_TC_DDL_COMMIT 3
489#define SQL_TC_DDL_IGNORE 4
490
491#define SQL_TXN_READ_UNCOMMITTED 0x00000001L
492#define SQL_TRANSACTION_READ_UNCOMMITTED SQL_TXN_READ_UNCOMMITTED
493#define SQL_TXN_READ_COMMITTED 0x00000002L
494#define SQL_TRANSACTION_READ_COMMITTED SQL_TXN_READ_COMMITTED
495#define SQL_TXN_REPEATABLE_READ 0x00000004L
496#define SQL_TRANSACTION_REPEATABLE_READ SQL_TXN_REPEATABLE_READ
497#define SQL_TXN_SERIALIZABLE 0x00000008L
498#define SQL_TRANSACTION_SERIALIZABLE SQL_TXN_SERIALIZABLE
499
500#define SQL_NC_HIGH 0
501#define SQL_NC_LOW 1
502
503SQLRETURN WINAPI SQLAllocConnect(SQLHENV EnvironmentHandle,
504 SQLHDBC *ConnectionHandle);
505
506SQLRETURN WINAPI SQLAllocEnv(SQLHENV *EnvironmentHandle);
507
508#if (ODBCVER >= 0x0300)
509SQLRETURN WINAPI SQLAllocHandle(SQLSMALLINT HandleType,
510 SQLHANDLE InputHandle, SQLHANDLE *OutputHandle);
511#endif
512
513SQLRETURN WINAPI SQLAllocStmt(SQLHDBC ConnectionHandle,
514 SQLHSTMT *StatementHandle);
515
516SQLRETURN WINAPI SQLBindCol(SQLHSTMT StatementHandle,
517 SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType,
518 SQLPOINTER TargetValue, SQLINTEGER BufferLength,
519 SQLINTEGER *StrLen_or_Ind);
520
521#if (ODBCVER >= 0x0300)
522SQLRETURN WINAPI SQLBindParam(SQLHSTMT StatementHandle,
523 SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType,
524 SQLSMALLINT ParameterType, SQLUINTEGER LengthPrecision,
525 SQLSMALLINT ParameterScale, SQLPOINTER ParameterValue,
526 SQLINTEGER *StrLen_or_Ind);
527#endif
528
529SQLRETURN WINAPI SQLCancel(SQLHSTMT StatementHandle);
530
531#if (ODBCVER >= 0x0300)
532SQLRETURN WINAPI SQLCloseCursor(SQLHSTMT StatementHandle);
533
534SQLRETURN WINAPI SQLColAttribute (SQLHSTMT StatementHandle,
535 SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier,
536 SQLPOINTER CharacterAttribute, SQLSMALLINT BufferLength,
537 SQLSMALLINT *StringLength, SQLPOINTER NumericAttribute);
538#endif
539
540
541SQLRETURN WINAPI SQLColumns(SQLHSTMT StatementHandle,
542 SQLCHAR *CatalogName, SQLSMALLINT NameLength1,
543 SQLCHAR *SchemaName, SQLSMALLINT NameLength2,
544 SQLCHAR *TableName, SQLSMALLINT NameLength3,
545 SQLCHAR *ColumnName, SQLSMALLINT NameLength4);
546
547
548SQLRETURN WINAPI SQLConnect(SQLHDBC ConnectionHandle,
549 SQLCHAR *ServerName, SQLSMALLINT NameLength1,
550 SQLCHAR *UserName, SQLSMALLINT NameLength2,
551 SQLCHAR *Authentication, SQLSMALLINT NameLength3);
552
553#if (ODBCVER >= 0x0300)
554SQLRETURN WINAPI SQLCopyDesc(SQLHDESC SourceDescHandle,
555 SQLHDESC TargetDescHandle);
556#endif
557
558SQLRETURN WINAPI SQLDataSources(SQLHENV EnvironmentHandle,
559 SQLUSMALLINT Direction, SQLCHAR *ServerName,
560 SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1,
561 SQLCHAR *Description, SQLSMALLINT BufferLength2,
562 SQLSMALLINT *NameLength2);
563
564SQLRETURN WINAPI SQLDescribeCol(SQLHSTMT StatementHandle,
565 SQLUSMALLINT ColumnNumber, SQLCHAR *ColumnName,
566 SQLSMALLINT BufferLength, SQLSMALLINT *NameLength,
567 SQLSMALLINT *DataType, SQLUINTEGER *ColumnSize,
568 SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable);
569
570SQLRETURN WINAPI SQLDisconnect(SQLHDBC ConnectionHandle);
571
572#if (ODBCVER >= 0x0300)
573SQLRETURN WINAPI SQLEndTran(SQLSMALLINT HandleType, SQLHANDLE Handle,
574 SQLSMALLINT CompletionType);
575#endif
576
577SQLRETURN WINAPI SQLError(SQLHENV EnvironmentHandle,
578 SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle,
579 SQLCHAR *Sqlstate, SQLINTEGER *NativeError,
580 SQLCHAR *MessageText, SQLSMALLINT BufferLength,
581 SQLSMALLINT *TextLength);
582
583SQLRETURN WINAPI SQLExecDirect(SQLHSTMT StatementHandle,
584 SQLCHAR *StatementText, SQLINTEGER TextLength);
585
586SQLRETURN WINAPI SQLExecute(SQLHSTMT StatementHandle);
587
588SQLRETURN WINAPI SQLFetch(SQLHSTMT StatementHandle);
589
590#if (ODBCVER >= 0x0300)
591SQLRETURN WINAPI SQLFetchScroll(SQLHSTMT StatementHandle,
592 SQLSMALLINT FetchOrientation, SQLINTEGER FetchOffset);
593#endif
594
595SQLRETURN WINAPI SQLFreeConnect(SQLHDBC ConnectionHandle);
596
597SQLRETURN WINAPI SQLFreeEnv(SQLHENV EnvironmentHandle);
598
599#if (ODBCVER >= 0x0300)
600SQLRETURN WINAPI SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle);
601#endif
602
603SQLRETURN WINAPI SQLFreeStmt(SQLHSTMT StatementHandle,
604 SQLUSMALLINT Option);
605
606#if (ODBCVER >= 0x0300)
607SQLRETURN WINAPI SQLGetConnectAttr(SQLHDBC ConnectionHandle,
608 SQLINTEGER Attribute, SQLPOINTER Value,
609 SQLINTEGER BufferLength, SQLINTEGER *StringLength);
610#endif
611
612SQLRETURN WINAPI SQLGetConnectOption(SQLHDBC ConnectionHandle,
613 SQLUSMALLINT Option, SQLPOINTER Value);
614
615SQLRETURN WINAPI SQLGetCursorName(SQLHSTMT StatementHandle,
616 SQLCHAR *CursorName, SQLSMALLINT BufferLength,
617 SQLSMALLINT *NameLength);
618
619SQLRETURN WINAPI SQLGetData(SQLHSTMT StatementHandle,
620 SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType,
621 SQLPOINTER TargetValue, SQLINTEGER BufferLength,
622 SQLINTEGER *StrLen_or_Ind);
623
624#if (ODBCVER >= 0x0300)
625SQLRETURN WINAPI SQLGetDescField(SQLHDESC DescriptorHandle,
626 SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier,
627 SQLPOINTER Value, SQLINTEGER BufferLength,
628 SQLINTEGER *StringLength);
629
630SQLRETURN WINAPI SQLGetDescRec(SQLHDESC DescriptorHandle,
631 SQLSMALLINT RecNumber, SQLCHAR *Name,
632 SQLSMALLINT BufferLength, SQLSMALLINT *StringLength,
633 SQLSMALLINT *Type, SQLSMALLINT *SubType,
634 SQLINTEGER *Length, SQLSMALLINT *Precision,
635 SQLSMALLINT *Scale, SQLSMALLINT *Nullable);
636
637SQLRETURN WINAPI SQLGetDiagField(SQLSMALLINT HandleType, SQLHANDLE Handle,
638 SQLSMALLINT RecNumber, SQLSMALLINT DiagIdentifier,
639 SQLPOINTER DiagInfo, SQLSMALLINT BufferLength,
640 SQLSMALLINT *StringLength);
641
642SQLRETURN WINAPI SQLGetDiagRec(SQLSMALLINT HandleType, SQLHANDLE Handle,
643 SQLSMALLINT RecNumber, SQLCHAR *Sqlstate,
644 SQLINTEGER *NativeError, SQLCHAR *MessageText,
645 SQLSMALLINT BufferLength, SQLSMALLINT *TextLength);
646
647SQLRETURN WINAPI SQLGetEnvAttr(SQLHENV EnvironmentHandle,
648 SQLINTEGER Attribute, SQLPOINTER Value,
649 SQLINTEGER BufferLength, SQLINTEGER *StringLength);
650#endif
651
652SQLRETURN WINAPI SQLGetFunctions(SQLHDBC ConnectionHandle,
653 SQLUSMALLINT FunctionId, SQLUSMALLINT *Supported);
654
655SQLRETURN WINAPI SQLGetInfo(SQLHDBC ConnectionHandle,
656 SQLUSMALLINT InfoType, SQLPOINTER InfoValue,
657 SQLSMALLINT BufferLength, SQLSMALLINT *StringLength);
658
659#if (ODBCVER >= 0x0300)
660SQLRETURN WINAPI SQLGetStmtAttr(SQLHSTMT StatementHandle,
661 SQLINTEGER Attribute, SQLPOINTER Value,
662 SQLINTEGER BufferLength, SQLINTEGER *StringLength);
663#endif
664
665SQLRETURN WINAPI SQLGetStmtOption(SQLHSTMT StatementHandle,
666 SQLUSMALLINT Option, SQLPOINTER Value);
667
668SQLRETURN WINAPI SQLGetTypeInfo(SQLHSTMT StatementHandle,
669 SQLSMALLINT DataType);
670
671SQLRETURN WINAPI SQLNumResultCols(SQLHSTMT StatementHandle,
672 SQLSMALLINT *ColumnCount);
673
674SQLRETURN WINAPI SQLParamData(SQLHSTMT StatementHandle,
675 SQLPOINTER *Value);
676
677SQLRETURN WINAPI SQLPrepare(SQLHSTMT StatementHandle,
678 SQLCHAR *StatementText, SQLINTEGER TextLength);
679
680SQLRETURN WINAPI SQLPutData(SQLHSTMT StatementHandle,
681 SQLPOINTER Data, SQLINTEGER StrLen_or_Ind);
682
683SQLRETURN WINAPI SQLRowCount(SQLHSTMT StatementHandle,
684 SQLINTEGER *RowCount);
685
686#if (ODBCVER >= 0x0300)
687SQLRETURN WINAPI SQLSetConnectAttr(SQLHDBC ConnectionHandle,
688 SQLINTEGER Attribute, SQLPOINTER Value,
689 SQLINTEGER StringLength);
690#endif
691
692SQLRETURN WINAPI SQLSetConnectOption(SQLHDBC ConnectionHandle,
693 SQLUSMALLINT Option, SQLUINTEGER Value);
694
695SQLRETURN WINAPI SQLSetCursorName(SQLHSTMT StatementHandle,
696 SQLCHAR *CursorName, SQLSMALLINT NameLength);
697
698#if (ODBCVER >= 0x0300)
699SQLRETURN WINAPI SQLSetDescField(SQLHDESC DescriptorHandle,
700 SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier,
701 SQLPOINTER Value, SQLINTEGER BufferLength);
702
703SQLRETURN WINAPI SQLSetDescRec(SQLHDESC DescriptorHandle,
704 SQLSMALLINT RecNumber, SQLSMALLINT Type,
705 SQLSMALLINT SubType, SQLINTEGER Length,
706 SQLSMALLINT Precision, SQLSMALLINT Scale,
707 SQLPOINTER Data, SQLINTEGER *StringLength,
708 SQLINTEGER *Indicator);
709
710SQLRETURN WINAPI SQLSetEnvAttr(SQLHENV EnvironmentHandle,
711 SQLINTEGER Attribute, SQLPOINTER Value,
712 SQLINTEGER StringLength);
713#endif
714
715SQLRETURN WINAPI SQLSetParam(SQLHSTMT StatementHandle,
716 SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType,
717 SQLSMALLINT ParameterType, SQLUINTEGER LengthPrecision,
718 SQLSMALLINT ParameterScale, SQLPOINTER ParameterValue,
719 SQLINTEGER *StrLen_or_Ind);
720
721#if (ODBCVER >= 0x0300)
722SQLRETURN WINAPI SQLSetStmtAttr(SQLHSTMT StatementHandle,
723 SQLINTEGER Attribute, SQLPOINTER Value,
724 SQLINTEGER StringLength);
725#endif
726
727SQLRETURN WINAPI SQLSetStmtOption(SQLHSTMT StatementHandle,
728 SQLUSMALLINT Option, SQLUINTEGER Value);
729
730SQLRETURN WINAPI SQLSpecialColumns(SQLHSTMT StatementHandle,
731 SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName,
732 SQLSMALLINT NameLength1, SQLCHAR *SchemaName,
733 SQLSMALLINT NameLength2, SQLCHAR *TableName,
734 SQLSMALLINT NameLength3, SQLUSMALLINT Scope,
735 SQLUSMALLINT Nullable);
736
737SQLRETURN WINAPI SQLStatistics(SQLHSTMT StatementHandle,
738 SQLCHAR *CatalogName, SQLSMALLINT NameLength1,
739 SQLCHAR *SchemaName, SQLSMALLINT NameLength2,
740 SQLCHAR *TableName, SQLSMALLINT NameLength3,
741 SQLUSMALLINT Unique, SQLUSMALLINT Reserved);
742
743SQLRETURN WINAPI SQLTables(SQLHSTMT StatementHandle,
744 SQLCHAR *CatalogName, SQLSMALLINT NameLength1,
745 SQLCHAR *SchemaName, SQLSMALLINT NameLength2,
746 SQLCHAR *TableName, SQLSMALLINT NameLength3,
747 SQLCHAR *TableType, SQLSMALLINT NameLength4);
748
749SQLRETURN WINAPI SQLTransact(SQLHENV EnvironmentHandle,
750 SQLHDBC ConnectionHandle, SQLUSMALLINT CompletionType);
751
752#ifdef __cplusplus
753}
754#endif
755#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette