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