Bump for 3.6-28
[LibreOffice.git] / connectivity / source / inc / odbc / OFunctions.hxx
blobfc61134bae74df60bec6ca7a493cc4702c6b368f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _CONNECTIVITY_ODBC_OFUNCTIONS_HXX_
30 #define _CONNECTIVITY_ODBC_OFUNCTIONS_HXX_
32 #include "odbc/OFunctiondefs.hxx"
33 #include <rtl/ustring.hxx>
34 #include <osl/module.h>
36 namespace connectivity
39 // sal_Bool LoadFunctions(oslModule pODBCso, sal_Bool _bDS=sal_True);
40 // sal_Bool LoadLibrary_ODBC3(::rtl::OUString &_rPath);
41 // sal_Bool LoadLibrary_ADABAS(::rtl::OUString &_rPath);
43 // Connecting to a data source
44 typedef SQLRETURN (SQL_API *T3SQLAllocHandle) (SQLSMALLINT HandleType,SQLHANDLE InputHandle,SQLHANDLE * OutputHandlePtr);
46 #define N3SQLAllocHandle(a,b,c) (*(T3SQLAllocHandle)getOdbcFunction(ODBC3SQLAllocHandle))(a,b,c)
48 typedef SQLRETURN (SQL_API *T3SQLConnect) (SQLHDBC ConnectionHandle,SQLCHAR *ServerName,SQLSMALLINT NameLength1,SQLCHAR *UserName,SQLSMALLINT NameLength2,SQLCHAR *Authentication,SQLSMALLINT NameLength3);
50 #define N3SQLConnect(a,b,c,d,e,f,g) (*(T3SQLConnect)getOdbcFunction(ODBC3SQLConnect))(a,b,c,d,e,f,g)
52 typedef SQLRETURN (SQL_API *T3SQLDriverConnect) ( SQLHDBC ConnectionHandle,
53 HWND WindowHandle,
54 SQLCHAR * InConnectionString,
55 SQLSMALLINT StringLength1,
56 SQLCHAR * OutConnectionString,
57 SQLSMALLINT BufferLength,
58 SQLSMALLINT * StringLength2Ptr,
59 SQLUSMALLINT DriverCompletion);
61 #define N3SQLDriverConnect(a,b,c,d,e,f,g,h) (*(T3SQLDriverConnect)getOdbcFunction(ODBC3SQLDriverConnect))(a,b,c,d,e,f,g,h)
63 typedef SQLRETURN (SQL_API *T3SQLBrowseConnect) ( SQLHDBC ConnectionHandle,
64 SQLCHAR * InConnectionString,
65 SQLSMALLINT StringLength1,
66 SQLCHAR * OutConnectionString,
67 SQLSMALLINT BufferLength,
68 SQLSMALLINT * StringLength2Ptr);
70 #define N3SQLBrowseConnect(a,b,c,d,e,f) (*(T3SQLBrowseConnect)getOdbcFunction(ODBC3SQLBrowseConnect))(a,b,c,d,e,f)
72 // Obtaining information about a driver and data source
73 typedef SQLRETURN (SQL_API *T3SQLDataSources) ( SQLHENV EnvironmentHandle,
74 SQLUSMALLINT Direction,
75 SQLCHAR * ServerName,
76 SQLSMALLINT BufferLength1,
77 SQLSMALLINT * NameLength1Ptr,
78 SQLCHAR * Description,
79 SQLSMALLINT BufferLength2,
80 SQLSMALLINT * NameLength2Ptr);
82 #define N3SQLDataSources(a,b,c,d,e,f,g,h) (*(T3SQLDataSources)getOdbcFunction(ODBC3SQLDataSources))(a,b,c,d,e,f,g,h)
84 typedef SQLRETURN (SQL_API *T3SQLDrivers) ( SQLHENV EnvironmentHandle,
85 SQLUSMALLINT Direction,
86 SQLCHAR * DriverDescription,
87 SQLSMALLINT BufferLength1,
88 SQLSMALLINT * DescriptionLengthPtr,
89 SQLCHAR * DriverAttributes,
90 SQLSMALLINT BufferLength2,
91 SQLSMALLINT * AttributesLengthPtr);
93 #define N3SQLDrivers(a,b,c,d,e,f,g,h) (*(T3SQLDrivers)getOdbcFunction(ODBC3SQLDrivers))(a,b,c,d,e,f,g,h)
95 typedef SQLRETURN (SQL_API *T3SQLGetInfo) ( SQLHDBC ConnectionHandle,
96 SQLUSMALLINT InfoType,
97 SQLPOINTER InfoValuePtr,
98 SQLSMALLINT BufferLength,
99 SQLSMALLINT * StringLengthPtr);
101 #define N3SQLGetInfo(a,b,c,d,e) (*(T3SQLGetInfo)getOdbcFunction(ODBC3SQLGetInfo))(a,b,c,d,e)
103 typedef SQLRETURN (SQL_API *T3SQLGetFunctions) (SQLHDBC ConnectionHandle,
104 SQLUSMALLINT FunctionId,
105 SQLUSMALLINT * SupportedPtr);
107 #define N3SQLGetFunctions(a,b,c) (*(T3SQLGetFunctions)getOdbcFunction(ODBC3SQLGetFunctions))(a,b,c)
109 typedef SQLRETURN (SQL_API *T3SQLGetTypeInfo) ( SQLHSTMT StatementHandle,
110 SQLSMALLINT DataType);
112 #define N3SQLGetTypeInfo(a,b) (*(T3SQLGetTypeInfo)getOdbcFunction(ODBC3SQLGetTypeInfo))(a,b)
114 // Setting and retrieving driver attributes
115 typedef SQLRETURN (SQL_API *T3SQLSetConnectAttr)(SQLHDBC ConnectionHandle,
116 SQLINTEGER Attribute,
117 SQLPOINTER ValuePtr,
118 SQLINTEGER StringLength);
120 #define N3SQLSetConnectAttr(a,b,c,d) (*(T3SQLSetConnectAttr)getOdbcFunction(ODBC3SQLSetConnectAttr))(a,b,c,d)
122 typedef SQLRETURN (SQL_API *T3SQLGetConnectAttr) (SQLHDBC ConnectionHandle,
123 SQLINTEGER Attribute,
124 SQLPOINTER ValuePtr,
125 SQLINTEGER BufferLength,
126 SQLINTEGER* StringLength);
128 #define N3SQLGetConnectAttr(a,b,c,d,e) (*(T3SQLGetConnectAttr)getOdbcFunction(ODBC3SQLGetConnectAttr))(a,b,c,d,e)
131 typedef SQLRETURN (SQL_API *T3SQLSetEnvAttr) ( SQLHENV EnvironmentHandle,
132 SQLINTEGER Attribute,
133 SQLPOINTER ValuePtr,
134 SQLINTEGER StringLength);
136 #define N3SQLSetEnvAttr(a,b,c,d) (*(T3SQLSetEnvAttr)getOdbcFunction(ODBC3SQLSetEnvAttr))(a,b,c,d)
138 typedef SQLRETURN (SQL_API *T3SQLGetEnvAttr) ( SQLHENV EnvironmentHandle,
139 SQLINTEGER Attribute,
140 SQLPOINTER ValuePtr,
141 SQLINTEGER BufferLength,
142 SQLINTEGER* StringLength);
144 #define N3SQLGetEnvAttr(a,b,c,d,e) (*(T3SQLGetEnvAttr)getOdbcFunction(ODBC3SQLGetEnvAttr))(a,b,c,d,e)
147 typedef SQLRETURN (SQL_API *T3SQLSetStmtAttr) ( SQLHSTMT StatementHandle,
148 SQLINTEGER Attribute,
149 SQLPOINTER ValuePtr,
150 SQLINTEGER StringLength);
152 #define N3SQLSetStmtAttr(a,b,c,d) (*(T3SQLSetStmtAttr)getOdbcFunction(ODBC3SQLSetStmtAttr))(a,b,c,d)
154 typedef SQLRETURN (SQL_API *T3SQLGetStmtAttr) ( SQLHSTMT StatementHandle,
155 SQLINTEGER Attribute,
156 SQLPOINTER ValuePtr,
157 SQLINTEGER BufferLength,
158 SQLINTEGER* StringLength);
160 #define N3SQLGetStmtAttr(a,b,c,d,e) (*(T3SQLGetStmtAttr)getOdbcFunction(ODBC3SQLGetStmtAttr))(a,b,c,d,e)
162 // Setting and retrieving descriptor fields
163 /*typedef SQLRETURN (SQL_API *T3SQLSetDescField) (SQLHDESC DescriptorHandle,
164 SQLSMALLINT RecNumber,
165 SQLSMALLINT FieldIdentifier,
166 SQLPOINTER ValuePtr,
167 SQLINTEGER BufferLength);
169 #define N3SQLSetDescField(a,b,c,d,e) (*(T3SQLSetDescField)getOdbcFunction(ODBC3SQLSetDescField))(a,b,c,d,e)
171 typedef SQLRETURN (SQL_API *T3SQLGetDescField) ( SQLHDESC DescriptorHandle,
172 SQLSMALLINT RecNumber,
173 SQLSMALLINT FieldIdentifier,
174 SQLPOINTER ValuePtr,
175 SQLINTEGER BufferLength,
176 SQLINTEGER * StringLengthPtr);
178 #define N3SQLGetDescField(a,b,c,d,e,f) (*(T3SQLGetDescField)getOdbcFunction(ODBC3SQLGetDescField))(a,b,c,d,e,f)
181 typedef SQLRETURN (SQL_API *T3SQLGetDescRec) ( SQLHDESC DescriptorHandle,
182 SQLSMALLINT RecNumber,
183 SQLCHAR * Name,
184 SQLSMALLINT BufferLength,
185 SQLSMALLINT * StringLengthPtr,
186 SQLSMALLINT * TypePtr,
187 SQLSMALLINT * SubTypePtr,
188 SQLLEN * LengthPtr,
189 SQLSMALLINT * PrecisionPtr,
190 SQLSMALLINT * ScalePtr,
191 SQLSMALLINT * NullablePtr);
193 #define N3SQLGetDescRec(a,b,c,d,e,f,g,h,i,j,k) (*(T3SQLGetDescRec)getOdbcFunction(ODBC3SQLGetDescRec))(a,b,c,d,e,f,g,h,i,j,k)
196 typedef SQLRETURN (SQL_API *T3SQLSetDescRec) ( SQLHDESC DescriptorHandle,
197 SQLSMALLINT RecNumber,
198 SQLSMALLINT Type,
199 SQLSMALLINT SubType,
200 SQLINTEGER Length,
201 SQLSMALLINT Precision,
202 SQLSMALLINT Scale,
203 SQLPOINTER DataPtr,
204 SQLLEN * StringLengthPtr,
205 SQLLEN * IndicatorPtr);
207 #define N3SQLSetDescRec(a,b,c,d,e,f,g,h,i,j) (*(T3SQLSetDescRec)getOdbcFunction(ODBC3SQLSetDescRec))(a,b,c,d,e,f,g,h,i,j)
210 // Preparing SQL requests
211 typedef SQLRETURN (SQL_API *T3SQLPrepare) ( SQLHSTMT StatementHandle,
212 SQLCHAR * StatementText,
213 SQLINTEGER TextLength);
215 #define N3SQLPrepare(a,b,c) (*(T3SQLPrepare)getOdbcFunction(ODBC3SQLPrepare))(a,b,c)
217 typedef SQLRETURN (SQL_API *T3SQLBindParameter) (SQLHSTMT StatementHandle,
218 SQLUSMALLINT ParameterNumber,
219 SQLSMALLINT InputOutputType,
220 SQLSMALLINT ValueType,
221 SQLSMALLINT ParameterType,
222 SQLULEN ColumnSize,
223 SQLSMALLINT DecimalDigits,
224 SQLPOINTER ParameterValuePtr,
225 SQLLEN BufferLength,
226 SQLLEN * StrLen_or_IndPtr);
228 #define N3SQLBindParameter(a,b,c,d,e,f,g,h,i,j) (*(T3SQLBindParameter)getOdbcFunction(ODBC3SQLBindParameter))(a,b,c,d,e,f,g,h,i,j)
230 /*typedef SQLRETURN (SQL_API *T3SQLGetCursorName) (SQLHSTMT StatementHandle,
231 SQLCHAR * CursorName,
232 SQLSMALLINT BufferLength,
233 SQLSMALLINT * NameLengthPtr);
235 #define N3SQLGetCursorName(a,b,c,d) (*(T3SQLGetCursorName)getOdbcFunction(ODBC3SQLGetCursorName))(a,b,c,d)
238 typedef SQLRETURN (SQL_API *T3SQLSetCursorName) (SQLHSTMT StatementHandle,
239 SQLCHAR * CursorName,
240 SQLSMALLINT NameLength);
242 #define N3SQLSetCursorName(a,b,c) (*(T3SQLSetCursorName)getOdbcFunction(ODBC3SQLSetCursorName))(a,b,c)
244 // Submitting requests
245 typedef SQLRETURN (SQL_API *T3SQLExecute) ( SQLHSTMT StatementHandle);
247 #define N3SQLExecute(a) (*(T3SQLExecute)getOdbcFunction(ODBC3SQLExecute))(a)
249 typedef SQLRETURN (SQL_API *T3SQLExecDirect) ( SQLHSTMT StatementHandle,
250 SQLCHAR * StatementText,
251 SQLINTEGER TextLength);
253 #define N3SQLExecDirect(a,b,c) (*(T3SQLExecDirect)getOdbcFunction(ODBC3SQLExecDirect))(a,b,c)
255 /*typedef SQLRETURN (SQL_API *T3SQLNativeSql) ( SQLHDBC ConnectionHandle,
256 SQLCHAR * InStatementText,
257 SQLINTEGER TextLength1,
258 SQLCHAR * utStatementText,
259 SQLINTEGER BufferLength,
260 SQLINTEGER * TextLength2Ptr);
262 #define N3SQLNativeSql(a,b,c,d,e,f) (*(T3SQLNativeSql)getOdbcFunction(ODBC3SQLNativeSql))(a,b,c,d,e,f)*/
264 typedef SQLRETURN (SQL_API *T3SQLDescribeParam) (SQLHSTMT StatementHandle,
265 SQLUSMALLINT ParameterNumber,
266 SQLSMALLINT * DataTypePtr,
267 SQLULEN * ParameterSizePtr,
268 SQLSMALLINT * DecimalDigitsPtr,
269 SQLSMALLINT * NullablePtr);
271 #define N3SQLDescribeParam(a,b,c,d,e,f) (*(T3SQLDescribeParam)getOdbcFunction(ODBC3SQLDescribeParam))(a,b,c,d,e,f)
273 typedef SQLRETURN (SQL_API *T3SQLNumParams) ( SQLHSTMT StatementHandle,
274 SQLSMALLINT * ParameterCountPtr);
276 #define N3SQLNumParams(a,b) (*(T3SQLNumParams)getOdbcFunction(ODBC3SQLNumParams))(a,b)
278 typedef SQLRETURN (SQL_API *T3SQLParamData) ( SQLHSTMT StatementHandle,
279 SQLPOINTER * ValuePtrPtr);
281 #define N3SQLParamData(a,b) (*(T3SQLParamData)getOdbcFunction(ODBC3SQLParamData))(a,b)
283 typedef SQLRETURN (SQL_API *T3SQLPutData) ( SQLHSTMT StatementHandle,
284 SQLPOINTER DataPtr,
285 SQLLEN StrLen_or_Ind);
287 #define N3SQLPutData(a,b,c) (*(T3SQLPutData)getOdbcFunction(ODBC3SQLPutData))(a,b,c)
289 // Retrieving results and information about results
290 typedef SQLRETURN (SQL_API *T3SQLRowCount) ( SQLHSTMT StatementHandle,
291 SQLLEN * RowCountPtr);
293 #define N3SQLRowCount(a,b) (*(T3SQLRowCount)getOdbcFunction(ODBC3SQLRowCount))(a,b)
295 typedef SQLRETURN (SQL_API *T3SQLNumResultCols) (SQLHSTMT StatementHandle,
296 SQLSMALLINT * ColumnCountPtr);
298 #define N3SQLNumResultCols(a,b) (*(T3SQLNumResultCols)getOdbcFunction(ODBC3SQLNumResultCols))(a,b)
300 typedef SQLRETURN (SQL_API *T3SQLDescribeCol) ( SQLHSTMT StatementHandle,
301 SQLUSMALLINT ColumnNumber,
302 SQLCHAR * ColumnName,
303 SQLSMALLINT BufferLength,
304 SQLSMALLINT * NameLengthPtr,
305 SQLSMALLINT * DataTypePtr,
306 SQLULEN * ColumnSizePtr,
307 SQLSMALLINT * DecimalDigitsPtr,
308 SQLSMALLINT * NullablePtr);
310 #define N3SQLDescribeCol(a,b,c,d,e,f,g,h,i) (*(T3SQLDescribeCol)getOdbcFunction(ODBC3SQLDescribeCol))(a,b,c,d,e,f,g,h,i)
312 typedef SQLRETURN (SQL_API *T3SQLColAttribute) (SQLHSTMT StatementHandle,
313 SQLUSMALLINT ColumnNumber,
314 SQLUSMALLINT FieldIdentifier,
315 SQLPOINTER CharacterAttributePtr,
316 SQLSMALLINT BufferLength,
317 SQLSMALLINT * StringLengthPtr,
318 SQLLEN * NumericAttributePtr);
320 #define N3SQLColAttribute(a,b,c,d,e,f,g) (*(T3SQLColAttribute)getOdbcFunction(ODBC3SQLColAttribute))(a,b,c,d,e,f,g)
322 typedef SQLRETURN (SQL_API *T3SQLBindCol) ( SQLHSTMT StatementHandle,
323 SQLUSMALLINT ColumnNumber,
324 SQLSMALLINT TargetType,
325 SQLPOINTER TargetValuePtr,
326 SQLLEN BufferLength,
327 SQLLEN * StrLen_or_IndPtr);
329 #define N3SQLBindCol(a,b,c,d,e,f) (*(T3SQLBindCol)getOdbcFunction(ODBC3SQLBindCol))(a,b,c,d,e,f)
331 typedef SQLRETURN (SQL_API *T3SQLFetch) ( SQLHSTMT StatementHandle);
333 #define N3SQLFetch(a) (*(T3SQLFetch)getOdbcFunction(ODBC3SQLFetch))(a)
335 typedef SQLRETURN (SQL_API *T3SQLFetchScroll) ( SQLHSTMT StatementHandle,
336 SQLSMALLINT FetchOrientation,
337 SQLLEN FetchOffset);
339 #define N3SQLFetchScroll(a,b,c) (*(T3SQLFetchScroll)getOdbcFunction(ODBC3SQLFetchScroll))(a,b,c)
341 typedef SQLRETURN (SQL_API *T3SQLGetData) ( SQLHSTMT StatementHandle,
342 SQLUSMALLINT ColumnNumber,
343 SQLSMALLINT TargetType,
344 SQLPOINTER TargetValuePtr,
345 SQLLEN BufferLength,
346 SQLLEN * StrLen_or_IndPtr);
348 #define N3SQLGetData(a,b,c,d,e,f) (*(T3SQLGetData)getOdbcFunction(ODBC3SQLGetData))(a,b,c,d,e,f)
350 typedef SQLRETURN (SQL_API *T3SQLSetPos) ( SQLHSTMT StatementHandle,
351 SQLSETPOSIROW RowNumber,
352 SQLUSMALLINT Operation,
353 SQLUSMALLINT LockType);
355 #define N3SQLSetPos(a,b,c,d) (*(T3SQLSetPos)getOdbcFunction(ODBC3SQLSetPos))(a,b,c,d)
357 typedef SQLRETURN (SQL_API *T3SQLBulkOperations) ( SQLHSTMT StatementHandle,
358 SQLSMALLINT Operation);
360 #define N3SQLBulkOperations(a,b) (*(T3SQLBulkOperations)getOdbcFunction(ODBC3SQLBulkOperations))(a,b)
362 typedef SQLRETURN (SQL_API *T3SQLMoreResults) ( SQLHSTMT StatementHandle);
364 #define N3SQLMoreResults(a) (*(T3SQLMoreResults)getOdbcFunction(ODBC3SQLMoreResults))(a)
366 /*typedef SQLRETURN (SQL_API *T3SQLGetDiagField) (SQLSMALLINT HandleType,
367 SQLHANDLE Handle,
368 SQLSMALLINT RecNumber,
369 SQLSMALLINT DiagIdentifier,
370 SQLPOINTER DiagInfoPtr,
371 SQLSMALLINT BufferLength,
372 SQLSMALLINT * StringLengthPtr);
374 #define N3SQLGetDiagField(a,b,c,d,e,f,g) (*(T3SQLGetDiagField)getOdbcFunction(ODBC3SQLGetDiagField))(a,b,c,d,e,f,g)*/
376 typedef SQLRETURN (SQL_API *T3SQLGetDiagRec) ( SQLSMALLINT HandleType,
377 SQLHANDLE Handle,
378 SQLSMALLINT RecNumber,
379 SQLCHAR * Sqlstate,
380 SQLINTEGER * NativeErrorPtr,
381 SQLCHAR * MessageText,
382 SQLSMALLINT BufferLength,
383 SQLSMALLINT * TextLengthPtr);
386 #define N3SQLGetDiagRec(a,b,c,d,e,f,g,h) (*(T3SQLGetDiagRec)getOdbcFunction(ODBC3SQLGetDiagRec))(a,b,c,d,e,f,g,h)
388 // Obtaining information about the data source's system tables (catalog functions)
389 typedef SQLRETURN (SQL_API *T3SQLColumnPrivileges) (SQLHSTMT StatementHandle,
390 SQLCHAR * CatalogName,
391 SQLSMALLINT NameLength1,
392 SQLCHAR * SchemaName,
393 SQLSMALLINT NameLength2,
394 SQLCHAR * TableName,
395 SQLSMALLINT NameLength3,
396 SQLCHAR * ColumnName,
397 SQLSMALLINT NameLength4);
399 #define N3SQLColumnPrivileges(a,b,c,d,e,f,g,h,i) (*(T3SQLColumnPrivileges)getOdbcFunction(ODBC3SQLColumnPrivileges))(a,b,c,d,e,f,g,h,i)
401 typedef SQLRETURN (SQL_API *T3SQLColumns) ( SQLHSTMT StatementHandle,
402 SQLCHAR * CatalogName,
403 SQLSMALLINT NameLength1,
404 SQLCHAR * SchemaName,
405 SQLSMALLINT NameLength2,
406 SQLCHAR * TableName,
407 SQLSMALLINT NameLength3,
408 SQLCHAR * ColumnName,
409 SQLSMALLINT NameLength4);
411 #define N3SQLColumns(a,b,c,d,e,f,g,h,i) (*(T3SQLColumns)getOdbcFunction(ODBC3SQLColumns))(a,b,c,d,e,f,g,h,i)
413 typedef SQLRETURN (SQL_API *T3SQLForeignKeys) ( SQLHSTMT StatementHandle,
414 SQLCHAR * PKCatalogName,
415 SQLSMALLINT NameLength1,
416 SQLCHAR * PKSchemaName,
417 SQLSMALLINT NameLength2,
418 SQLCHAR * PKTableName,
419 SQLSMALLINT NameLength3,
420 SQLCHAR * FKCatalogName,
421 SQLSMALLINT NameLength4,
422 SQLCHAR * FKSchemaName,
423 SQLSMALLINT NameLength5,
424 SQLCHAR * FKTableName,
425 SQLSMALLINT NameLength6);
427 #define N3SQLForeignKeys(a,b,c,d,e,f,g,h,i,j,k,l,m) (*(T3SQLForeignKeys)getOdbcFunction(ODBC3SQLForeignKeys))(a,b,c,d,e,f,g,h,i,j,k,l,m)
429 typedef SQLRETURN (SQL_API *T3SQLPrimaryKeys) ( SQLHSTMT StatementHandle,
430 SQLCHAR * CatalogName,
431 SQLSMALLINT NameLength1,
432 SQLCHAR * SchemaName,
433 SQLSMALLINT NameLength2,
434 SQLCHAR * TableName,
435 SQLSMALLINT NameLength3);
437 #define N3SQLPrimaryKeys(a,b,c,d,e,f,g) (*(T3SQLPrimaryKeys)getOdbcFunction(ODBC3SQLPrimaryKeys))(a,b,c,d,e,f,g)
439 typedef SQLRETURN (SQL_API *T3SQLProcedureColumns) (SQLHSTMT StatementHandle,
440 SQLCHAR * CatalogName,
441 SQLSMALLINT NameLength1,
442 SQLCHAR * SchemaName,
443 SQLSMALLINT NameLength2,
444 SQLCHAR * ProcName,
445 SQLSMALLINT NameLength3,
446 SQLCHAR * ColumnName,
447 SQLSMALLINT NameLength4);
449 #define N3SQLProcedureColumns(a,b,c,d,e,f,g,h,i) (*(T3SQLProcedureColumns)getOdbcFunction(ODBC3SQLProcedureColumns))(a,b,c,d,e,f,g,h,i)
451 typedef SQLRETURN (SQL_API *T3SQLProcedures) ( SQLHSTMT StatementHandle,
452 SQLCHAR * CatalogName,
453 SQLSMALLINT NameLength1,
454 SQLCHAR * SchemaName,
455 SQLSMALLINT NameLength2,
456 SQLCHAR * ProcName,
457 SQLSMALLINT NameLength3);
459 #define N3SQLProcedures(a,b,c,d,e,f,g) (*(T3SQLProcedures)getOdbcFunction(ODBC3SQLProcedures))(a,b,c,d,e,f,g)
461 typedef SQLRETURN (SQL_API *T3SQLSpecialColumns) (SQLHSTMT StatementHandle,
462 SQLUSMALLINT IdentifierType,
463 SQLCHAR * CatalogName,
464 SQLSMALLINT NameLength1,
465 SQLCHAR * SchemaName,
466 SQLSMALLINT NameLength2,
467 SQLCHAR * TableName,
468 SQLSMALLINT NameLength3,
469 SQLUSMALLINT Scope,
470 SQLUSMALLINT Nullable);
472 #define N3SQLSpecialColumns(a,b,c,d,e,f,g,h,i,j) (*(T3SQLSpecialColumns)getOdbcFunction(ODBC3SQLSpecialColumns))(a,b,c,d,e,f,g,h,i,j)
474 typedef SQLRETURN (SQL_API *T3SQLStatistics) ( SQLHSTMT StatementHandle,
475 SQLCHAR * CatalogName,
476 SQLSMALLINT NameLength1,
477 SQLCHAR * SchemaName,
478 SQLSMALLINT NameLength2,
479 SQLCHAR * TableName,
480 SQLSMALLINT NameLength3,
481 SQLUSMALLINT Unique,
482 SQLUSMALLINT Reserved);
484 #define N3SQLStatistics(a,b,c,d,e,f,g,h,i) (*(T3SQLStatistics)getOdbcFunction(ODBC3SQLStatistics))(a,b,c,d,e,f,g,h,i)
486 typedef SQLRETURN (SQL_API *T3SQLTablePrivileges) (SQLHSTMT StatementHandle,
487 SQLCHAR * CatalogName,
488 SQLSMALLINT NameLength1,
489 SQLCHAR * SchemaName,
490 SQLSMALLINT NameLength2,
491 SQLCHAR * TableName,
492 SQLSMALLINT NameLength3);
494 #define N3SQLTablePrivileges(a,b,c,d,e,f,g) (*(T3SQLTablePrivileges)getOdbcFunction(ODBC3SQLTablePrivileges))(a,b,c,d,e,f,g)
496 typedef SQLRETURN (SQL_API *T3SQLTables) ( SQLHSTMT StatementHandle,
497 SQLCHAR * CatalogName,
498 SQLSMALLINT NameLength1,
499 SQLCHAR * SchemaName,
500 SQLSMALLINT NameLength2,
501 SQLCHAR * TableName,
502 SQLSMALLINT NameLength3,
503 SQLCHAR * TableType,
504 SQLSMALLINT NameLength4);
506 #define N3SQLTables(a,b,c,d,e,f,g,h,i) (*(T3SQLTables)getOdbcFunction(ODBC3SQLTables))(a,b,c,d,e,f,g,h,i)
508 // Terminating a statement
509 typedef SQLRETURN (SQL_API *T3SQLFreeStmt) ( SQLHSTMT StatementHandle,
510 SQLUSMALLINT Option);
512 #define N3SQLFreeStmt(a,b) (*(T3SQLFreeStmt)getOdbcFunction(ODBC3SQLFreeStmt))(a,b)
514 typedef SQLRETURN (SQL_API *T3SQLCloseCursor) (SQLHSTMT StatementHandle);
516 #define N3SQLCloseCursor(a) (*(T3SQLCloseCursor)getOdbcFunction(ODBC3SQLCloseCursor))(a)
518 typedef SQLRETURN (SQL_API *T3SQLCancel) ( SQLHSTMT StatementHandle);
520 #define N3SQLCancel(a) (*(T3SQLCancel)getOdbcFunction(ODBC3SQLCancel))(a)
522 typedef SQLRETURN (SQL_API *T3SQLEndTran) ( SQLSMALLINT HandleType,
523 SQLHANDLE Handle,
524 SQLSMALLINT CompletionType);
526 #define N3SQLEndTran(a,b,c) (*(T3SQLEndTran)getOdbcFunction(ODBC3SQLEndTran))(a,b,c)
528 // Terminating a connection
529 typedef SQLRETURN (SQL_API *T3SQLDisconnect) (SQLHDBC ConnectionHandle);
531 #define N3SQLDisconnect(a) (*(T3SQLDisconnect)getOdbcFunction(ODBC3SQLDisconnect))(a)
533 typedef SQLRETURN (SQL_API *T3SQLFreeHandle) (SQLSMALLINT HandleType,
534 SQLHANDLE Handle);
536 #define N3SQLFreeHandle(a,b) (*(T3SQLFreeHandle)getOdbcFunction(ODBC3SQLFreeHandle))(a,b)
538 typedef SQLRETURN (SQL_API *T3SQLGetCursorName) ( SQLHSTMT StatementHandle,
539 SQLCHAR * CursorName,
540 SQLSMALLINT BufferLength,
541 SQLSMALLINT* NameLength2);
543 #define N3SQLGetCursorName(a,b,c,d) (*(T3SQLGetCursorName)getOdbcFunction(ODBC3SQLGetCursorName))(a,b,c,d)
545 typedef SQLRETURN (SQL_API *T3SQLNativeSql) ( SQLHSTMT ConnectionHandle,
546 SQLCHAR * InStatementText,
547 SQLINTEGER TextLength1,
548 SQLCHAR * OutStatementText,
549 SQLINTEGER BufferLength,
550 SQLINTEGER * TextLength2Ptr);
552 #define N3SQLNativeSql(a,b,c,d,e,f) (*(T3SQLNativeSql)getOdbcFunction(ODBC3SQLNativeSql))(a,b,c,d,e,f)
555 #endif // _CONNECTIVITY_ODBC_OFUNCTIONS_HXX_
558 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */