intersys 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,421 @@
1
+ /*
2
+ * sqltypes.h
3
+ *
4
+ * $Id: sqltypes.h,v 1.5 2004/11/18 23:23:46 luesang Exp $
5
+ *
6
+ * ODBC typedefs
7
+ *
8
+ * The iODBC driver manager.
9
+ *
10
+ * Copyright (C) 1995 by Ke Jin <kejin@empress.com>
11
+ * Copyright (C) 1996-2003 by OpenLink Software <iodbc@openlinksw.com>
12
+ * All Rights Reserved.
13
+ *
14
+ * This software is released under the terms of either of the following
15
+ * licenses:
16
+ *
17
+ * - GNU Library General Public License (see LICENSE.LGPL)
18
+ * - The BSD License (see LICENSE.BSD).
19
+ *
20
+ * While not mandated by the BSD license, any patches you make to the
21
+ * iODBC source code may be contributed back into the iODBC project
22
+ * at your discretion. Contributions will benefit the Open Source and
23
+ * Data Access community as a whole. Submissions may be made at:
24
+ *
25
+ * http://www.iodbc.org
26
+ *
27
+ *
28
+ * GNU Library Generic Public License Version 2
29
+ * ============================================
30
+ * This library is free software; you can redistribute it and/or
31
+ * modify it under the terms of the GNU Library General Public
32
+ * License as published by the Free Software Foundation; either
33
+ * version 2 of the License, or (at your option) any later version.
34
+ *
35
+ * This library is distributed in the hope that it will be useful,
36
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
37
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
38
+ * Library General Public License for more details.
39
+ *
40
+ * You should have received a copy of the GNU Library General Public
41
+ * License along with this library; if not, write to the Free
42
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
43
+ *
44
+ *
45
+ * The BSD License
46
+ * ===============
47
+ * Redistribution and use in source and binary forms, with or without
48
+ * modification, are permitted provided that the following conditions
49
+ * are met:
50
+ *
51
+ * 1. Redistributions of source code must retain the above copyright
52
+ * notice, this list of conditions and the following disclaimer.
53
+ * 2. Redistributions in binary form must reproduce the above copyright
54
+ * notice, this list of conditions and the following disclaimer in
55
+ * the documentation and/or other materials provided with the
56
+ * distribution.
57
+ * 3. Neither the name of OpenLink Software Inc. nor the names of its
58
+ * contributors may be used to endorse or promote products derived
59
+ * from this software without specific prior written permission.
60
+ *
61
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
62
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
63
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
64
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OPENLINK OR
65
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
66
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
67
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
68
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
69
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
70
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
71
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
72
+ */
73
+ #ifndef _SQLTYPES_H
74
+ #define _SQLTYPES_H
75
+
76
+
77
+ /*
78
+ * Set default specification to ODBC 3.51
79
+ */
80
+ #ifndef ODBCVER
81
+ #define ODBCVER 0x0351
82
+ #endif
83
+
84
+ #ifdef __cplusplus
85
+ extern "C" {
86
+ #endif
87
+
88
+
89
+ /*
90
+ * Environment specific definitions
91
+ */
92
+ #ifndef EXPORT
93
+ #define EXPORT
94
+ #endif
95
+
96
+ #ifdef WIN32
97
+ #define SQL_API __stdcall
98
+ #else
99
+ #define SQL_API
100
+ #endif
101
+
102
+
103
+ /*
104
+ * API declaration data types
105
+ */
106
+ typedef unsigned char SQLCHAR;
107
+ typedef signed short SQLSMALLINT;
108
+ typedef unsigned short SQLUSMALLINT;
109
+ typedef signed int SQLINTEGER;
110
+ typedef unsigned int SQLUINTEGER;
111
+ typedef void * SQLPOINTER;
112
+
113
+ #if (ODBCVER >= 0x0300)
114
+ typedef signed char SQLSCHAR;
115
+ typedef unsigned char SQLDATE;
116
+ typedef unsigned char SQLDECIMAL;
117
+ typedef unsigned char SQLNUMERIC;
118
+ typedef double SQLDOUBLE;
119
+ typedef double SQLFLOAT;
120
+ typedef float SQLREAL;
121
+ typedef unsigned char SQLTIME;
122
+ typedef unsigned char SQLTIMESTAMP;
123
+ typedef unsigned char SQLVARCHAR;
124
+ #endif /* ODBCVER >= 0x0300 */
125
+
126
+
127
+ /*
128
+ * New Win64 datatypes
129
+ */
130
+ #ifdef _WIN64
131
+ typedef INT64 SQLLEN;
132
+ typedef UINT64 SQLULEN;
133
+ typedef UINT64 SQLSETPOSIROW;
134
+ #elif defined(STRICT_ODBC_TYPES)
135
+ typedef long SQLLEN;
136
+ typedef unsigned long SQLULEN;
137
+ typedef unsigned short SQLSETPOSIROW;
138
+ #else
139
+ #define SQLLEN long
140
+ #define SQLULEN unsigned long
141
+ #define SQLSETPOSIROW unsigned short
142
+ #endif
143
+
144
+
145
+ /*
146
+ * Backward compatibility with older platform sdks
147
+ */
148
+ typedef SQLULEN SQLROWCOUNT;
149
+ typedef SQLULEN SQLROWSETSIZE;
150
+ typedef SQLULEN SQLTRANSID;
151
+ typedef SQLLEN SQLROWOFFSET;
152
+
153
+
154
+ /*
155
+ * Generic pointer types
156
+ */
157
+ typedef void * PTR;
158
+ typedef void * SQLHANDLE;
159
+
160
+
161
+ /*
162
+ * Handles
163
+ */
164
+ typedef void * HENV;
165
+ typedef void * HDBC;
166
+ typedef void * HSTMT;
167
+
168
+ typedef SQLHANDLE SQLHENV;
169
+ typedef SQLHANDLE SQLHDBC;
170
+ typedef SQLHANDLE SQLHSTMT;
171
+ #if (ODBCVER >= 0x0300)
172
+ typedef SQLHANDLE SQLHDESC;
173
+ #endif /* ODBCVER >= 0x0300 */
174
+
175
+
176
+ /*
177
+ * Window Handle
178
+ */
179
+ #if defined(WIN32) || defined (_WIN64) || defined(OS2)
180
+ typedef HWND SQLHWND;
181
+ #elif defined(macintosh)
182
+ #include <Dialogs.h>
183
+ typedef WindowPtr HWND;
184
+ typedef HWND SQLHWND;
185
+ #else
186
+ typedef SQLPOINTER HWND;
187
+ typedef SQLPOINTER SQLHWND;
188
+ #endif
189
+
190
+
191
+ /*
192
+ * SQL portable types for C
193
+ */
194
+ typedef unsigned char UCHAR;
195
+ typedef signed char SCHAR;
196
+ typedef short int SWORD;
197
+ typedef unsigned short int UWORD;
198
+ typedef long int SDWORD;
199
+ typedef unsigned long int UDWORD;
200
+
201
+ typedef signed short SSHORT;
202
+ typedef unsigned short USHORT;
203
+ typedef signed long SLONG;
204
+ typedef unsigned long ULONG;
205
+ typedef float SFLOAT;
206
+ typedef double SDOUBLE;
207
+ typedef double LDOUBLE;
208
+
209
+
210
+ /*
211
+ * Return type for functions
212
+ */
213
+ typedef signed short RETCODE;
214
+ typedef SQLSMALLINT SQLRETURN;
215
+
216
+
217
+ /*
218
+ * SQL portable types for C - DATA, TIME, TIMESTAMP, and BOOKMARK
219
+ */
220
+ typedef SQLULEN BOOKMARK;
221
+
222
+
223
+ typedef struct tagDATE_STRUCT
224
+ {
225
+ SQLSMALLINT year;
226
+ SQLUSMALLINT month;
227
+ SQLUSMALLINT day;
228
+ }
229
+ DATE_STRUCT;
230
+
231
+ #if (ODBCVER >= 0x0300)
232
+ typedef DATE_STRUCT SQL_DATE_STRUCT;
233
+ #endif /* ODBCVER >= 0x0300 */
234
+
235
+
236
+ typedef struct tagTIME_STRUCT
237
+ {
238
+ SQLUSMALLINT hour;
239
+ SQLUSMALLINT minute;
240
+ SQLUSMALLINT second;
241
+ }
242
+ TIME_STRUCT;
243
+
244
+ #if (ODBCVER >= 0x0300)
245
+ typedef TIME_STRUCT SQL_TIME_STRUCT;
246
+ #endif /* ODBCVER >= 0x0300 */
247
+
248
+
249
+ typedef struct tagTIMESTAMP_STRUCT
250
+ {
251
+ SQLSMALLINT year;
252
+ SQLUSMALLINT month;
253
+ SQLUSMALLINT day;
254
+ SQLUSMALLINT hour;
255
+ SQLUSMALLINT minute;
256
+ SQLUSMALLINT second;
257
+ SQLUINTEGER fraction;
258
+ }
259
+ TIMESTAMP_STRUCT;
260
+
261
+ #if (ODBCVER >= 0x0300)
262
+ typedef TIMESTAMP_STRUCT SQL_TIMESTAMP_STRUCT;
263
+ #endif /* ODBCVER >= 0x0300 */
264
+
265
+
266
+ /*
267
+ * Enumeration for DATETIME_INTERVAL_SUBCODE values for interval data types
268
+ *
269
+ * These values are from SQL-92
270
+ */
271
+ #if (ODBCVER >= 0x0300)
272
+ typedef enum
273
+ {
274
+ SQL_IS_YEAR = 1,
275
+ SQL_IS_MONTH = 2,
276
+ SQL_IS_DAY = 3,
277
+ SQL_IS_HOUR = 4,
278
+ SQL_IS_MINUTE = 5,
279
+ SQL_IS_SECOND = 6,
280
+ SQL_IS_YEAR_TO_MONTH = 7,
281
+ SQL_IS_DAY_TO_HOUR = 8,
282
+ SQL_IS_DAY_TO_MINUTE = 9,
283
+ SQL_IS_DAY_TO_SECOND = 10,
284
+ SQL_IS_HOUR_TO_MINUTE = 11,
285
+ SQL_IS_HOUR_TO_SECOND = 12,
286
+ SQL_IS_MINUTE_TO_SECOND = 13
287
+ }
288
+ SQLINTERVAL;
289
+
290
+
291
+ typedef struct tagSQL_YEAR_MONTH
292
+ {
293
+ SQLUINTEGER year;
294
+ SQLUINTEGER month;
295
+ }
296
+ SQL_YEAR_MONTH_STRUCT;
297
+
298
+
299
+ typedef struct tagSQL_DAY_SECOND
300
+ {
301
+ SQLUINTEGER day;
302
+ SQLUINTEGER hour;
303
+ SQLUINTEGER minute;
304
+ SQLUINTEGER second;
305
+ SQLUINTEGER fraction;
306
+ }
307
+ SQL_DAY_SECOND_STRUCT;
308
+
309
+
310
+ typedef struct tagSQL_INTERVAL_STRUCT
311
+ {
312
+ SQLINTERVAL interval_type;
313
+ SQLSMALLINT interval_sign;
314
+ union
315
+ {
316
+ SQL_YEAR_MONTH_STRUCT year_month;
317
+ SQL_DAY_SECOND_STRUCT day_second;
318
+ }
319
+ intval;
320
+ }
321
+ SQL_INTERVAL_STRUCT;
322
+ #endif /* ODBCVER >= 0x0300 */
323
+
324
+
325
+ /*
326
+ * The ODBC C types for SQL_C_SBIGINT and SQL_C_UBIGINT
327
+ */
328
+ #if (ODBCVER >= 0x0300)
329
+
330
+ #if (_MSC_VER >= 900)
331
+ # define ODBCINT64 __int64
332
+ #endif
333
+
334
+ #ifndef ODBCINT64
335
+ # if (SIZEOF_LONG == 8)
336
+ # define ODBCINT64 long
337
+ # else
338
+ # define ODBCINT64 long long
339
+ # endif
340
+ #endif /* ODBCINT64 */
341
+
342
+ #if defined (ODBCINT64)
343
+ typedef signed ODBCINT64 SQLBIGINT;
344
+ typedef unsigned ODBCINT64 SQLUBIGINT;
345
+ #endif /* ODBCINT64 */
346
+
347
+ #endif /* ODBCVER >= 0x0300 */
348
+
349
+
350
+ /*
351
+ * The internal representation of the numeric data type
352
+ */
353
+ #if (ODBCVER >= 0x0300)
354
+ #define SQL_MAX_NUMERIC_LEN 16
355
+ typedef struct tagSQL_NUMERIC_STRUCT
356
+ {
357
+ SQLCHAR precision;
358
+ SQLSCHAR scale;
359
+ SQLCHAR sign; /* 0 for negative, 1 for positive */
360
+ SQLCHAR val[SQL_MAX_NUMERIC_LEN];
361
+ }
362
+ SQL_NUMERIC_STRUCT;
363
+ #endif /* ODBCVER >= 0x0300 */
364
+
365
+
366
+ #if (ODBCVER >= 0x0350)
367
+ #ifdef GUID_DEFINED
368
+ typedef GUID SQLGUID;
369
+ #else
370
+ typedef struct tagSQLGUID
371
+ {
372
+ unsigned int Data1;
373
+ unsigned short Data2;
374
+ unsigned short Data3;
375
+ unsigned char Data4[8]; /* BYTE */
376
+ }
377
+ SQLGUID;
378
+ #endif /* GUID_DEFINED */
379
+ #endif /* ODBCVER >= 0x0350 */
380
+
381
+
382
+ #if defined(WIN32)
383
+ typedef unsigned short SQLWCHAR;
384
+ #else
385
+ # include <stdlib.h>
386
+
387
+ // RDLS changed to add __cplusplus because of radar# 3779905
388
+ # if defined(__cplusplus) || \
389
+ defined(_WCHAR_T) || \
390
+ defined(_WCHAR_T_DEFINED) || \
391
+ defined(_WCHAR_T_DECLARED) || \
392
+ defined(_BSD_WCHAR_T_DEFINED_)
393
+ typedef wchar_t SQLWCHAR;
394
+ # else
395
+ # error Please make sure your system supports the wchar_t type
396
+ # endif
397
+ #endif /* WIN32 */
398
+
399
+ /* RDLS original
400
+ # if defined(_WCHAR_T) || \
401
+ defined(_WCHAR_T_DEFINED) || \
402
+ defined(_WCHAR_T_DECLARED) || \
403
+ defined(_BSD_WCHAR_T_DEFINED_)
404
+ typedef wchar_t SQLWCHAR;
405
+ # else
406
+ # error Please make sure your system supports the wchar_t type
407
+ # endif*/
408
+ /*#endif*/ /* WIN32 */
409
+
410
+
411
+ #ifdef UNICODE
412
+ typedef SQLWCHAR SQLTCHAR;
413
+ #else
414
+ typedef SQLCHAR SQLTCHAR;
415
+ #endif /* UNICODE */
416
+
417
+ #ifdef __cplusplus
418
+ }
419
+ #endif
420
+
421
+ #endif /* _SQLTYPES_H */
@@ -0,0 +1,812 @@
1
+ /*
2
+ * sqlucode.h
3
+ *
4
+ * $Id: sqlucode.h,v 1.2 2004/11/11 01:52:36 luesang Exp $
5
+ *
6
+ * ODBC Unicode defines
7
+ *
8
+ * The iODBC driver manager.
9
+ *
10
+ * Copyright (C) 1996-2003 by OpenLink Software <iodbc@openlinksw.com>
11
+ * All Rights Reserved.
12
+ *
13
+ * This software is released under the terms of either of the following
14
+ * licenses:
15
+ *
16
+ * - GNU Library General Public License (see LICENSE.LGPL)
17
+ * - The BSD License (see LICENSE.BSD).
18
+ *
19
+ * While not mandated by the BSD license, any patches you make to the
20
+ * iODBC source code may be contributed back into the iODBC project
21
+ * at your discretion. Contributions will benefit the Open Source and
22
+ * Data Access community as a whole. Submissions may be made at:
23
+ *
24
+ * http://www.iodbc.org
25
+ *
26
+ *
27
+ * GNU Library Generic Public License Version 2
28
+ * ============================================
29
+ * This library is free software; you can redistribute it and/or
30
+ * modify it under the terms of the GNU Library General Public
31
+ * License as published by the Free Software Foundation; either
32
+ * version 2 of the License, or (at your option) any later version.
33
+ *
34
+ * This library is distributed in the hope that it will be useful,
35
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
36
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
37
+ * Library General Public License for more details.
38
+ *
39
+ * You should have received a copy of the GNU Library General Public
40
+ * License along with this library; if not, write to the Free
41
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
42
+ *
43
+ *
44
+ * The BSD License
45
+ * ===============
46
+ * Redistribution and use in source and binary forms, with or without
47
+ * modification, are permitted provided that the following conditions
48
+ * are met:
49
+ *
50
+ * 1. Redistributions of source code must retain the above copyright
51
+ * notice, this list of conditions and the following disclaimer.
52
+ * 2. Redistributions in binary form must reproduce the above copyright
53
+ * notice, this list of conditions and the following disclaimer in
54
+ * the documentation and/or other materials provided with the
55
+ * distribution.
56
+ * 3. Neither the name of OpenLink Software Inc. nor the names of its
57
+ * contributors may be used to endorse or promote products derived
58
+ * from this software without specific prior written permission.
59
+ *
60
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
61
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
62
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
63
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OPENLINK OR
64
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
65
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
66
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
67
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
68
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
70
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
71
+ *
72
+ */
73
+ #ifndef _SQLUCODE_H
74
+ #define _SQLUCODE_H
75
+
76
+ #include <sqlext.h>
77
+
78
+ #ifdef __cplusplus
79
+ extern "C" {
80
+ #endif
81
+
82
+
83
+ /*
84
+ * SQL datatypes - Unicode
85
+ */
86
+ #define SQL_WCHAR (-8)
87
+ #define SQL_WVARCHAR (-9)
88
+ #define SQL_WLONGVARCHAR (-10)
89
+ #define SQL_C_WCHAR SQL_WCHAR
90
+
91
+ #ifdef UNICODE
92
+ #define SQL_C_TCHAR SQL_C_WCHAR
93
+ #else
94
+ #define SQL_C_TCHAR SQL_C_CHAR
95
+ #endif
96
+
97
+
98
+ /* SQLTablesW */
99
+ #if (ODBCVER >= 0x0300)
100
+ #define SQL_ALL_CATALOGSW L"%"
101
+ #define SQL_ALL_SCHEMASW L"%"
102
+ #define SQL_ALL_TABLE_TYPESW L"%"
103
+ #endif /* ODBCVER >= 0x0300 */
104
+
105
+
106
+ /*
107
+ * Size of SQLSTATE - Unicode
108
+ */
109
+ #define SQL_SQLSTATE_SIZEW 10
110
+
111
+
112
+ /*
113
+ * Function Prototypes - Unicode
114
+ */
115
+ SQLRETURN SQL_API SQLColAttributeW(
116
+ SQLHSTMT hstmt,
117
+ SQLUSMALLINT iCol,
118
+ SQLUSMALLINT iField,
119
+ SQLPOINTER pCharAttr,
120
+ SQLSMALLINT cbCharAttrMax,
121
+ SQLSMALLINT * pcbCharAttr,
122
+ SQLLEN * pNumAttr);
123
+
124
+ SQLRETURN SQL_API SQLColAttributesW (
125
+ SQLHSTMT hstmt,
126
+ SQLUSMALLINT icol,
127
+ SQLUSMALLINT fDescType,
128
+ SQLPOINTER rgbDesc,
129
+ SQLSMALLINT cbDescMax,
130
+ SQLSMALLINT * pcbDesc,
131
+ SQLLEN * pfDesc);
132
+
133
+ SQLRETURN SQL_API SQLConnectW (
134
+ SQLHDBC hdbc,
135
+ SQLWCHAR * szDSN,
136
+ SQLSMALLINT cbDSN,
137
+ SQLWCHAR * szUID,
138
+ SQLSMALLINT cbUID,
139
+ SQLWCHAR * szAuthStr,
140
+ SQLSMALLINT cbAuthStr);
141
+
142
+ SQLRETURN SQL_API SQLDescribeColW (
143
+ SQLHSTMT hstmt,
144
+ SQLUSMALLINT icol,
145
+ SQLWCHAR * szColName,
146
+ SQLSMALLINT cbColNameMax,
147
+ SQLSMALLINT * pcbColName,
148
+ SQLSMALLINT * pfSqlType,
149
+ SQLULEN * pcbColDef,
150
+ SQLSMALLINT * pibScale,
151
+ SQLSMALLINT * pfNullable);
152
+
153
+ SQLRETURN SQL_API SQLErrorW (
154
+ SQLHENV henv,
155
+ SQLHDBC hdbc,
156
+ SQLHSTMT hstmt,
157
+ SQLWCHAR * szSqlState,
158
+ SQLINTEGER * pfNativeError,
159
+ SQLWCHAR * szErrorMsg,
160
+ SQLSMALLINT cbErrorMsgMax,
161
+ SQLSMALLINT * pcbErrorMsg);
162
+
163
+ SQLRETURN SQL_API SQLExecDirectW (
164
+ SQLHSTMT hstmt,
165
+ SQLWCHAR * szSqlStr,
166
+ SQLINTEGER cbSqlStr);
167
+
168
+ SQLRETURN SQL_API SQLGetConnectAttrW (
169
+ SQLHDBC hdbc,
170
+ SQLINTEGER fAttribute,
171
+ SQLPOINTER rgbValue,
172
+ SQLINTEGER cbValueMax,
173
+ SQLINTEGER * pcbValue);
174
+
175
+ SQLRETURN SQL_API SQLGetCursorNameW (
176
+ SQLHSTMT hstmt,
177
+ SQLWCHAR * szCursor,
178
+ SQLSMALLINT cbCursorMax,
179
+ SQLSMALLINT * pcbCursor);
180
+
181
+ #if (ODBCVER >= 0x0300)
182
+ SQLRETURN SQL_API SQLSetDescFieldW (
183
+ SQLHDESC DescriptorHandle,
184
+ SQLSMALLINT RecNumber,
185
+ SQLSMALLINT FieldIdentifier,
186
+ SQLPOINTER Value,
187
+ SQLINTEGER BufferLength);
188
+
189
+ SQLRETURN SQL_API SQLGetDescFieldW (
190
+ SQLHDESC hdesc,
191
+ SQLSMALLINT iRecord,
192
+ SQLSMALLINT iField,
193
+ SQLPOINTER rgbValue,
194
+ SQLINTEGER cbValueMax,
195
+ SQLINTEGER * pcbValue);
196
+
197
+ SQLRETURN SQL_API SQLGetDescRecW (
198
+ SQLHDESC hdesc,
199
+ SQLSMALLINT iRecord,
200
+ SQLWCHAR * szName,
201
+ SQLSMALLINT cbNameMax,
202
+ SQLSMALLINT * pcbName,
203
+ SQLSMALLINT * pfType,
204
+ SQLSMALLINT * pfSubType,
205
+ SQLLEN * pLength,
206
+ SQLSMALLINT * pPrecision,
207
+ SQLSMALLINT * pScale,
208
+ SQLSMALLINT * pNullable);
209
+
210
+ SQLRETURN SQL_API SQLGetDiagFieldW (
211
+ SQLSMALLINT fHandleType,
212
+ SQLHANDLE handle,
213
+ SQLSMALLINT iRecord,
214
+ SQLSMALLINT fDiagField,
215
+ SQLPOINTER rgbDiagInfo,
216
+ SQLSMALLINT cbDiagInfoMax,
217
+ SQLSMALLINT * pcbDiagInfo);
218
+
219
+ SQLRETURN SQL_API SQLGetDiagRecW (
220
+ SQLSMALLINT fHandleType,
221
+ SQLHANDLE handle,
222
+ SQLSMALLINT iRecord,
223
+ SQLWCHAR * szSqlState,
224
+ SQLINTEGER * pfNativeError,
225
+ SQLWCHAR * szErrorMsg,
226
+ SQLSMALLINT cbErrorMsgMax,
227
+ SQLSMALLINT * pcbErrorMsg);
228
+ #endif
229
+
230
+ SQLRETURN SQL_API SQLPrepareW (
231
+ SQLHSTMT hstmt,
232
+ SQLWCHAR * szSqlStr,
233
+ SQLINTEGER cbSqlStr);
234
+
235
+ SQLRETURN SQL_API SQLSetConnectAttrW (
236
+ SQLHDBC hdbc,
237
+ SQLINTEGER fAttribute,
238
+ SQLPOINTER rgbValue,
239
+ SQLINTEGER cbValue);
240
+
241
+ SQLRETURN SQL_API SQLSetCursorNameW (
242
+ SQLHSTMT hstmt,
243
+ SQLWCHAR * szCursor,
244
+ SQLSMALLINT cbCursor);
245
+
246
+ SQLRETURN SQL_API SQLColumnsW (
247
+ SQLHSTMT hstmt,
248
+ SQLWCHAR * szCatalogName,
249
+ SQLSMALLINT cbCatalogName,
250
+ SQLWCHAR * szSchemaName,
251
+ SQLSMALLINT cbSchemaName,
252
+ SQLWCHAR * szTableName,
253
+ SQLSMALLINT cbTableName,
254
+ SQLWCHAR * szColumnName,
255
+ SQLSMALLINT cbColumnName);
256
+
257
+ SQLRETURN SQL_API SQLGetConnectOptionW (
258
+ SQLHDBC hdbc,
259
+ SQLUSMALLINT fOption,
260
+ SQLPOINTER pvParam);
261
+
262
+ SQLRETURN SQL_API SQLGetInfoW (
263
+ SQLHDBC hdbc,
264
+ SQLUSMALLINT fInfoType,
265
+ SQLPOINTER rgbInfoValue,
266
+ SQLSMALLINT cbInfoValueMax,
267
+ SQLSMALLINT * pcbInfoValue);
268
+
269
+ SQLRETURN SQL_API SQLGetTypeInfoW (
270
+ SQLHSTMT StatementHandle,
271
+ SQLSMALLINT DataType);
272
+
273
+ SQLRETURN SQL_API SQLSetConnectOptionW (
274
+ SQLHDBC hdbc,
275
+ SQLUSMALLINT fOption,
276
+ SQLULEN vParam);
277
+
278
+ SQLRETURN SQL_API SQLSpecialColumnsW (
279
+ SQLHSTMT hstmt,
280
+ SQLUSMALLINT fColType,
281
+ SQLWCHAR * szCatalogName,
282
+ SQLSMALLINT cbCatalogName,
283
+ SQLWCHAR * szSchemaName,
284
+ SQLSMALLINT cbSchemaName,
285
+ SQLWCHAR * szTableName,
286
+ SQLSMALLINT cbTableName,
287
+ SQLUSMALLINT fScope,
288
+ SQLUSMALLINT fNullable);
289
+
290
+ SQLRETURN SQL_API SQLStatisticsW (
291
+ SQLHSTMT hstmt,
292
+ SQLWCHAR * szCatalogName,
293
+ SQLSMALLINT cbCatalogName,
294
+ SQLWCHAR * szSchemaName,
295
+ SQLSMALLINT cbSchemaName,
296
+ SQLWCHAR * szTableName,
297
+ SQLSMALLINT cbTableName,
298
+ SQLUSMALLINT fUnique,
299
+ SQLUSMALLINT fAccuracy);
300
+
301
+ SQLRETURN SQL_API SQLTablesW (
302
+ SQLHSTMT hstmt,
303
+ SQLWCHAR * szCatalogName,
304
+ SQLSMALLINT cbCatalogName,
305
+ SQLWCHAR * szSchemaName,
306
+ SQLSMALLINT cbSchemaName,
307
+ SQLWCHAR * szTableName,
308
+ SQLSMALLINT cbTableName,
309
+ SQLWCHAR * szTableType,
310
+ SQLSMALLINT cbTableType);
311
+
312
+ SQLRETURN SQL_API SQLDataSourcesW (
313
+ SQLHENV henv,
314
+ SQLUSMALLINT fDirection,
315
+ SQLWCHAR * szDSN,
316
+ SQLSMALLINT cbDSNMax,
317
+ SQLSMALLINT * pcbDSN,
318
+ SQLWCHAR * szDescription,
319
+ SQLSMALLINT cbDescriptionMax,
320
+ SQLSMALLINT * pcbDescription);
321
+
322
+ SQLRETURN SQL_API SQLDriverConnectW (
323
+ SQLHDBC hdbc,
324
+ SQLHWND hwnd,
325
+ SQLWCHAR * szConnStrIn,
326
+ SQLSMALLINT cbConnStrIn,
327
+ SQLWCHAR * szConnStrOut,
328
+ SQLSMALLINT cbConnStrOutMax,
329
+ SQLSMALLINT * pcbConnStrOut,
330
+ SQLUSMALLINT fDriverCompletion);
331
+
332
+ SQLRETURN SQL_API SQLBrowseConnectW (
333
+ SQLHDBC hdbc,
334
+ SQLWCHAR * szConnStrIn,
335
+ SQLSMALLINT cbConnStrIn,
336
+ SQLWCHAR * szConnStrOut,
337
+ SQLSMALLINT cbConnStrOutMax,
338
+ SQLSMALLINT * pcbConnStrOut);
339
+
340
+ SQLRETURN SQL_API SQLColumnPrivilegesW (
341
+ SQLHSTMT hstmt,
342
+ SQLWCHAR * szCatalogName,
343
+ SQLSMALLINT cbCatalogName,
344
+ SQLWCHAR * szSchemaName,
345
+ SQLSMALLINT cbSchemaName,
346
+ SQLWCHAR * szTableName,
347
+ SQLSMALLINT cbTableName,
348
+ SQLWCHAR * szColumnName,
349
+ SQLSMALLINT cbColumnName);
350
+
351
+ SQLRETURN SQL_API SQLGetStmtAttrW (
352
+ SQLHSTMT hstmt,
353
+ SQLINTEGER fAttribute,
354
+ SQLPOINTER rgbValue,
355
+ SQLINTEGER cbValueMax,
356
+ SQLINTEGER * pcbValue);
357
+
358
+ SQLRETURN SQL_API SQLSetStmtAttrW (
359
+ SQLHSTMT hstmt,
360
+ SQLINTEGER fAttribute,
361
+ SQLPOINTER rgbValue,
362
+ SQLINTEGER cbValueMax);
363
+
364
+ SQLRETURN SQL_API SQLForeignKeysW (
365
+ SQLHSTMT hstmt,
366
+ SQLWCHAR * szPkCatalogName,
367
+ SQLSMALLINT cbPkCatalogName,
368
+ SQLWCHAR * szPkSchemaName,
369
+ SQLSMALLINT cbPkSchemaName,
370
+ SQLWCHAR * szPkTableName,
371
+ SQLSMALLINT cbPkTableName,
372
+ SQLWCHAR * szFkCatalogName,
373
+ SQLSMALLINT cbFkCatalogName,
374
+ SQLWCHAR * szFkSchemaName,
375
+ SQLSMALLINT cbFkSchemaName,
376
+ SQLWCHAR * szFkTableName,
377
+ SQLSMALLINT cbFkTableName);
378
+
379
+ SQLRETURN SQL_API SQLNativeSqlW (
380
+ SQLHDBC hdbc,
381
+ SQLWCHAR * szSqlStrIn,
382
+ SQLINTEGER cbSqlStrIn,
383
+ SQLWCHAR * szSqlStr,
384
+ SQLINTEGER cbSqlStrMax,
385
+ SQLINTEGER * pcbSqlStr);
386
+
387
+ SQLRETURN SQL_API SQLPrimaryKeysW (
388
+ SQLHSTMT hstmt,
389
+ SQLWCHAR * szCatalogName,
390
+ SQLSMALLINT cbCatalogName,
391
+ SQLWCHAR * szSchemaName,
392
+ SQLSMALLINT cbSchemaName,
393
+ SQLWCHAR * szTableName,
394
+ SQLSMALLINT cbTableName);
395
+
396
+ SQLRETURN SQL_API SQLProcedureColumnsW (
397
+ SQLHSTMT hstmt,
398
+ SQLWCHAR * szCatalogName,
399
+ SQLSMALLINT cbCatalogName,
400
+ SQLWCHAR * szSchemaName,
401
+ SQLSMALLINT cbSchemaName,
402
+ SQLWCHAR * szProcName,
403
+ SQLSMALLINT cbProcName,
404
+ SQLWCHAR * szColumnName,
405
+ SQLSMALLINT cbColumnName);
406
+
407
+ SQLRETURN SQL_API SQLProceduresW (
408
+ SQLHSTMT hstmt,
409
+ SQLWCHAR * szCatalogName,
410
+ SQLSMALLINT cbCatalogName,
411
+ SQLWCHAR * szSchemaName,
412
+ SQLSMALLINT cbSchemaName,
413
+ SQLWCHAR * szProcName,
414
+ SQLSMALLINT cbProcName);
415
+
416
+ SQLRETURN SQL_API SQLTablePrivilegesW (
417
+ SQLHSTMT hstmt,
418
+ SQLWCHAR * szCatalogName,
419
+ SQLSMALLINT cbCatalogName,
420
+ SQLWCHAR * szSchemaName,
421
+ SQLSMALLINT cbSchemaName,
422
+ SQLWCHAR * szTableName,
423
+ SQLSMALLINT cbTableName);
424
+
425
+ SQLRETURN SQL_API SQLDriversW (
426
+ SQLHENV henv,
427
+ SQLUSMALLINT fDirection,
428
+ SQLWCHAR * szDriverDesc,
429
+ SQLSMALLINT cbDriverDescMax,
430
+ SQLSMALLINT * pcbDriverDesc,
431
+ SQLWCHAR * szDriverAttributes,
432
+ SQLSMALLINT cbDrvrAttrMax,
433
+ SQLSMALLINT * pcbDrvrAttr);
434
+
435
+
436
+ /*
437
+ * Function prototypes - ANSI
438
+ */
439
+
440
+ SQLRETURN SQL_API SQLColAttributeA (
441
+ SQLHSTMT hstmt,
442
+ SQLUSMALLINT iCol,
443
+ SQLUSMALLINT iField,
444
+ SQLPOINTER pCharAttr,
445
+ SQLSMALLINT cbCharAttrMax,
446
+ SQLSMALLINT * pcbCharAttr,
447
+ SQLLEN * pNumAttr);
448
+
449
+ SQLRETURN SQL_API SQLColAttributesA (
450
+ SQLHSTMT hstmt,
451
+ SQLUSMALLINT icol,
452
+ SQLUSMALLINT fDescType,
453
+ SQLPOINTER rgbDesc,
454
+ SQLSMALLINT cbDescMax,
455
+ SQLSMALLINT * pcbDesc,
456
+ SQLLEN * pfDesc);
457
+
458
+ SQLRETURN SQL_API SQLConnectA (
459
+ SQLHDBC hdbc,
460
+ SQLCHAR * szDSN,
461
+ SQLSMALLINT cbDSN,
462
+ SQLCHAR * szUID,
463
+ SQLSMALLINT cbUID,
464
+ SQLCHAR * szAuthStr,
465
+ SQLSMALLINT cbAuthStr);
466
+
467
+ SQLRETURN SQL_API SQLDescribeColA (
468
+ SQLHSTMT hstmt,
469
+ SQLUSMALLINT icol,
470
+ SQLCHAR * szColName,
471
+ SQLSMALLINT cbColNameMax,
472
+ SQLSMALLINT * pcbColName,
473
+ SQLSMALLINT * pfSqlType,
474
+ SQLULEN * pcbColDef,
475
+ SQLSMALLINT * pibScale,
476
+ SQLSMALLINT * pfNullable);
477
+
478
+ SQLRETURN SQL_API SQLErrorA (
479
+ SQLHENV henv,
480
+ SQLHDBC hdbc,
481
+ SQLHSTMT hstmt,
482
+ SQLCHAR * szSqlState,
483
+ SQLINTEGER * pfNativeError,
484
+ SQLCHAR * szErrorMsg,
485
+ SQLSMALLINT cbErrorMsgMax,
486
+ SQLSMALLINT * pcbErrorMsg);
487
+
488
+ SQLRETURN SQL_API SQLExecDirectA (
489
+ SQLHSTMT hstmt,
490
+ SQLCHAR * szSqlStr,
491
+ SQLINTEGER cbSqlStr);
492
+
493
+ SQLRETURN SQL_API SQLGetConnectAttrA (
494
+ SQLHDBC hdbc,
495
+ SQLINTEGER fAttribute,
496
+ SQLPOINTER rgbValue,
497
+ SQLINTEGER cbValueMax,
498
+ SQLINTEGER * pcbValue);
499
+
500
+ SQLRETURN SQL_API SQLGetCursorNameA (
501
+ SQLHSTMT hstmt,
502
+ SQLCHAR * szCursor,
503
+ SQLSMALLINT cbCursorMax,
504
+ SQLSMALLINT * pcbCursor);
505
+
506
+ #if (ODBCVER >= 0x0300)
507
+ SQLRETURN SQL_API SQLSetDescFieldA (
508
+ SQLHDESC DescriptorHandle,
509
+ SQLSMALLINT RecNumber,
510
+ SQLSMALLINT FieldIdentifier,
511
+ SQLPOINTER Value,
512
+ SQLINTEGER BufferLength);
513
+
514
+ SQLRETURN SQL_API SQLGetDescFieldA (
515
+ SQLHDESC hdesc,
516
+ SQLSMALLINT iRecord,
517
+ SQLSMALLINT iField,
518
+ SQLPOINTER rgbValue,
519
+ SQLINTEGER cbValueMax,
520
+ SQLINTEGER * pcbValue);
521
+
522
+ SQLRETURN SQL_API SQLGetDescRecA (
523
+ SQLHDESC hdesc,
524
+ SQLSMALLINT iRecord,
525
+ SQLCHAR * szName,
526
+ SQLSMALLINT cbNameMax,
527
+ SQLSMALLINT * pcbName,
528
+ SQLSMALLINT * pfType,
529
+ SQLSMALLINT * pfSubType,
530
+ SQLLEN * pLength,
531
+ SQLSMALLINT * pPrecision,
532
+ SQLSMALLINT * pScale,
533
+ SQLSMALLINT * pNullable);
534
+
535
+ SQLRETURN SQL_API SQLGetDiagFieldA (
536
+ SQLSMALLINT fHandleType,
537
+ SQLHANDLE handle,
538
+ SQLSMALLINT iRecord,
539
+ SQLSMALLINT fDiagField,
540
+ SQLPOINTER rgbDiagInfo,
541
+ SQLSMALLINT cbDiagInfoMax,
542
+ SQLSMALLINT * pcbDiagInfo);
543
+
544
+ SQLRETURN SQL_API SQLGetDiagRecA (
545
+ SQLSMALLINT fHandleType,
546
+ SQLHANDLE handle,
547
+ SQLSMALLINT iRecord,
548
+ SQLCHAR * szSqlState,
549
+ SQLINTEGER * pfNativeError,
550
+ SQLCHAR * szErrorMsg,
551
+ SQLSMALLINT cbErrorMsgMax,
552
+ SQLSMALLINT * pcbErrorMsg);
553
+ #endif
554
+
555
+ SQLRETURN SQL_API SQLPrepareA (
556
+ SQLHSTMT hstmt,
557
+ SQLCHAR * szSqlStr,
558
+ SQLINTEGER cbSqlStr);
559
+
560
+ SQLRETURN SQL_API SQLSetConnectAttrA (
561
+ SQLHDBC hdbc,
562
+ SQLINTEGER fAttribute,
563
+ SQLPOINTER rgbValue,
564
+ SQLINTEGER cbValue);
565
+
566
+ SQLRETURN SQL_API SQLSetCursorNameA (
567
+ SQLHSTMT hstmt,
568
+ SQLCHAR * szCursor,
569
+ SQLSMALLINT cbCursor);
570
+
571
+ SQLRETURN SQL_API SQLColumnsA (
572
+ SQLHSTMT hstmt,
573
+ SQLCHAR * szCatalogName,
574
+ SQLSMALLINT cbCatalogName,
575
+ SQLCHAR * szSchemaName,
576
+ SQLSMALLINT cbSchemaName,
577
+ SQLCHAR * szTableName,
578
+ SQLSMALLINT cbTableName,
579
+ SQLCHAR * szColumnName,
580
+ SQLSMALLINT cbColumnName);
581
+
582
+ SQLRETURN SQL_API SQLGetConnectOptionA (
583
+ SQLHDBC hdbc,
584
+ SQLUSMALLINT fOption,
585
+ SQLPOINTER pvParam);
586
+
587
+ SQLRETURN SQL_API SQLGetInfoA (
588
+ SQLHDBC hdbc,
589
+ SQLUSMALLINT fInfoType,
590
+ SQLPOINTER rgbInfoValue,
591
+ SQLSMALLINT cbInfoValueMax,
592
+ SQLSMALLINT * pcbInfoValue);
593
+
594
+ SQLRETURN SQL_API SQLGetTypeInfoA (
595
+ SQLHSTMT StatementHandle,
596
+ SQLSMALLINT DataType);
597
+
598
+ SQLRETURN SQL_API SQLSetConnectOptionA (
599
+ SQLHDBC hdbc,
600
+ SQLUSMALLINT fOption,
601
+ SQLULEN vParam);
602
+
603
+ SQLRETURN SQL_API SQLSpecialColumnsA (
604
+ SQLHSTMT hstmt,
605
+ SQLUSMALLINT fColType,
606
+ SQLCHAR * szCatalogName,
607
+ SQLSMALLINT cbCatalogName,
608
+ SQLCHAR * szSchemaName,
609
+ SQLSMALLINT cbSchemaName,
610
+ SQLCHAR * szTableName,
611
+ SQLSMALLINT cbTableName,
612
+ SQLUSMALLINT fScope,
613
+ SQLUSMALLINT fNullable);
614
+
615
+ SQLRETURN SQL_API SQLStatisticsA (
616
+ SQLHSTMT hstmt,
617
+ SQLCHAR * szCatalogName,
618
+ SQLSMALLINT cbCatalogName,
619
+ SQLCHAR * szSchemaName,
620
+ SQLSMALLINT cbSchemaName,
621
+ SQLCHAR * szTableName,
622
+ SQLSMALLINT cbTableName,
623
+ SQLUSMALLINT fUnique,
624
+ SQLUSMALLINT fAccuracy);
625
+
626
+ SQLRETURN SQL_API SQLTablesA (
627
+ SQLHSTMT hstmt,
628
+ SQLCHAR * szCatalogName,
629
+ SQLSMALLINT cbCatalogName,
630
+ SQLCHAR * szSchemaName,
631
+ SQLSMALLINT cbSchemaName,
632
+ SQLCHAR * szTableName,
633
+ SQLSMALLINT cbTableName,
634
+ SQLCHAR * szTableType,
635
+ SQLSMALLINT cbTableType);
636
+
637
+ SQLRETURN SQL_API SQLDataSourcesA (
638
+ SQLHENV henv,
639
+ SQLUSMALLINT fDirection,
640
+ SQLCHAR * szDSN,
641
+ SQLSMALLINT cbDSNMax,
642
+ SQLSMALLINT * pcbDSN,
643
+ SQLCHAR * szDescription,
644
+ SQLSMALLINT cbDescriptionMax,
645
+ SQLSMALLINT * pcbDescription);
646
+
647
+ SQLRETURN SQL_API SQLDriverConnectA (
648
+ SQLHDBC hdbc,
649
+ SQLHWND hwnd,
650
+ SQLCHAR * szConnStrIn,
651
+ SQLSMALLINT cbConnStrIn,
652
+ SQLCHAR * szConnStrOut,
653
+ SQLSMALLINT cbConnStrOutMax,
654
+ SQLSMALLINT * pcbConnStrOut,
655
+ SQLUSMALLINT fDriverCompletion);
656
+
657
+ SQLRETURN SQL_API SQLBrowseConnectA (
658
+ SQLHDBC hdbc,
659
+ SQLCHAR * szConnStrIn,
660
+ SQLSMALLINT cbConnStrIn,
661
+ SQLCHAR * szConnStrOut,
662
+ SQLSMALLINT cbConnStrOutMax,
663
+ SQLSMALLINT * pcbConnStrOut);
664
+
665
+ SQLRETURN SQL_API SQLColumnPrivilegesA (
666
+ SQLHSTMT hstmt,
667
+ SQLCHAR * szCatalogName,
668
+ SQLSMALLINT cbCatalogName,
669
+ SQLCHAR * szSchemaName,
670
+ SQLSMALLINT cbSchemaName,
671
+ SQLCHAR * szTableName,
672
+ SQLSMALLINT cbTableName,
673
+ SQLCHAR * szColumnName,
674
+ SQLSMALLINT cbColumnName);
675
+
676
+ SQLRETURN SQL_API SQLGetStmtAttrA (
677
+ SQLHSTMT hstmt,
678
+ SQLINTEGER fAttribute,
679
+ SQLPOINTER rgbValue,
680
+ SQLINTEGER cbValueMax,
681
+ SQLINTEGER * pcbValue);
682
+
683
+ SQLRETURN SQL_API SQLSetStmtAttrA (
684
+ SQLHSTMT hstmt,
685
+ SQLINTEGER fAttribute,
686
+ SQLPOINTER rgbValue,
687
+ SQLINTEGER cbValueMax);
688
+
689
+ SQLRETURN SQL_API SQLForeignKeysA (
690
+ SQLHSTMT hstmt,
691
+ SQLCHAR * szPkCatalogName,
692
+ SQLSMALLINT cbPkCatalogName,
693
+ SQLCHAR * szPkSchemaName,
694
+ SQLSMALLINT cbPkSchemaName,
695
+ SQLCHAR * szPkTableName,
696
+ SQLSMALLINT cbPkTableName,
697
+ SQLCHAR * szFkCatalogName,
698
+ SQLSMALLINT cbFkCatalogName,
699
+ SQLCHAR * szFkSchemaName,
700
+ SQLSMALLINT cbFkSchemaName,
701
+ SQLCHAR * szFkTableName,
702
+ SQLSMALLINT cbFkTableName);
703
+
704
+ SQLRETURN SQL_API SQLNativeSqlA (
705
+ SQLHDBC hdbc,
706
+ SQLCHAR * szSqlStrIn,
707
+ SQLINTEGER cbSqlStrIn,
708
+ SQLCHAR * szSqlStr,
709
+ SQLINTEGER cbSqlStrMax,
710
+ SQLINTEGER * pcbSqlStr);
711
+
712
+ SQLRETURN SQL_API SQLPrimaryKeysA (
713
+ SQLHSTMT hstmt,
714
+ SQLCHAR * szCatalogName,
715
+ SQLSMALLINT cbCatalogName,
716
+ SQLCHAR * szSchemaName,
717
+ SQLSMALLINT cbSchemaName,
718
+ SQLCHAR * szTableName,
719
+ SQLSMALLINT cbTableName);
720
+
721
+ SQLRETURN SQL_API SQLProcedureColumnsA (
722
+ SQLHSTMT hstmt,
723
+ SQLCHAR * szCatalogName,
724
+ SQLSMALLINT cbCatalogName,
725
+ SQLCHAR * szSchemaName,
726
+ SQLSMALLINT cbSchemaName,
727
+ SQLCHAR * szProcName,
728
+ SQLSMALLINT cbProcName,
729
+ SQLCHAR * szColumnName,
730
+ SQLSMALLINT cbColumnName);
731
+
732
+ SQLRETURN SQL_API SQLProceduresA (
733
+ SQLHSTMT hstmt,
734
+ SQLCHAR * szCatalogName,
735
+ SQLSMALLINT cbCatalogName,
736
+ SQLCHAR * szSchemaName,
737
+ SQLSMALLINT cbSchemaName,
738
+ SQLCHAR * szProcName,
739
+ SQLSMALLINT cbProcName);
740
+
741
+ SQLRETURN SQL_API SQLTablePrivilegesA (
742
+ SQLHSTMT hstmt,
743
+ SQLCHAR * szCatalogName,
744
+ SQLSMALLINT cbCatalogName,
745
+ SQLCHAR * szSchemaName,
746
+ SQLSMALLINT cbSchemaName,
747
+ SQLCHAR * szTableName,
748
+ SQLSMALLINT cbTableName);
749
+
750
+ SQLRETURN SQL_API SQLDriversA (
751
+ SQLHENV henv,
752
+ SQLUSMALLINT fDirection,
753
+ SQLCHAR * szDriverDesc,
754
+ SQLSMALLINT cbDriverDescMax,
755
+ SQLSMALLINT * pcbDriverDesc,
756
+ SQLCHAR * szDriverAttributes,
757
+ SQLSMALLINT cbDrvrAttrMax,
758
+ SQLSMALLINT * pcbDrvrAttr);
759
+
760
+
761
+ /*
762
+ * Mapping macros for Unicode
763
+ */
764
+ #ifndef SQL_NOUNICODEMAP /* define this to disable the mapping */
765
+ #ifdef UNICODE
766
+
767
+ #define SQLColAttribute SQLColAttributeW
768
+ #define SQLColAttributes SQLColAttributesW
769
+ #define SQLConnect SQLConnectW
770
+ #define SQLDescribeCol SQLDescribeColW
771
+ #define SQLError SQLErrorW
772
+ #define SQLExecDirect SQLExecDirectW
773
+ #define SQLGetConnectAttr SQLGetConnectAttrW
774
+ #define SQLGetCursorName SQLGetCursorNameW
775
+ #define SQLGetDescField SQLGetDescFieldW
776
+ #define SQLGetDescRec SQLGetDescRecW
777
+ #define SQLGetDiagField SQLGetDiagFieldW
778
+ #define SQLGetDiagRec SQLGetDiagRecW
779
+ #define SQLPrepare SQLPrepareW
780
+ #define SQLSetConnectAttr SQLSetConnectAttrW
781
+ #define SQLSetCursorName SQLSetCursorNameW
782
+ #define SQLSetDescField SQLSetDescFieldW
783
+ #define SQLSetStmtAttr SQLSetStmtAttrW
784
+ #define SQLGetStmtAttr SQLGetStmtAttrW
785
+ #define SQLColumns SQLColumnsW
786
+ #define SQLGetConnectOption SQLGetConnectOptionW
787
+ #define SQLGetInfo SQLGetInfoW
788
+ #define SQLGetTypeInfo SQLGetTypeInfoW
789
+ #define SQLSetConnectOption SQLSetConnectOptionW
790
+ #define SQLSpecialColumns SQLSpecialColumnsW
791
+ #define SQLStatistics SQLStatisticsW
792
+ #define SQLTables SQLTablesW
793
+ #define SQLDataSources SQLDataSourcesW
794
+ #define SQLDriverConnect SQLDriverConnectW
795
+ #define SQLBrowseConnect SQLBrowseConnectW
796
+ #define SQLColumnPrivileges SQLColumnPrivilegesW
797
+ #define SQLForeignKeys SQLForeignKeysW
798
+ #define SQLNativeSql SQLNativeSqlW
799
+ #define SQLPrimaryKeys SQLPrimaryKeysW
800
+ #define SQLProcedureColumns SQLProcedureColumnsW
801
+ #define SQLProcedures SQLProceduresW
802
+ #define SQLTablePrivileges SQLTablePrivilegesW
803
+ #define SQLDrivers SQLDriversW
804
+
805
+ #endif /* UNICODE */
806
+ #endif /* SQL_NOUNICODEMAP */
807
+
808
+ #ifdef __cplusplus
809
+ }
810
+ #endif
811
+
812
+ #endif /* _SQLUCODE_H */