LibreOffice Module connectivity (master) 1
OFunctions.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <connectivity/odbc.hxx>
23#include <rtl/ustring.hxx>
24#include <osl/module.h>
25
26namespace connectivity
27{
28
29// sal_Bool LoadFunctions(oslModule pODBCso, sal_Bool _bDS=sal_True);
30bool LoadLibrary_ODBC3(OUString &_rPath);
31// sal_Bool LoadLibrary_ADABAS(OUString &_rPath);
32
33 // Connecting to a data source
34 typedef SQLRETURN (SQL_API *T3SQLAllocHandle) (SQLSMALLINT HandleType,SQLHANDLE InputHandle,SQLHANDLE * OutputHandlePtr);
35
36 #define N3SQLAllocHandle(a,b,c) (*reinterpret_cast<T3SQLAllocHandle>(getOdbcFunction(ODBC3SQLFunctionId::AllocHandle)))(a,b,c)
37
38 typedef SQLRETURN (SQL_API *T3SQLConnect) (SQLHDBC ConnectionHandle,SQLCHAR *ServerName,SQLSMALLINT NameLength1,SQLCHAR *UserName,SQLSMALLINT NameLength2,SQLCHAR *Authentication,SQLSMALLINT NameLength3);
39
40 #define N3SQLConnect(a,b,c,d,e,f,g) (*reinterpret_cast<T3SQLConnect>(getOdbcFunction(ODBC3SQLFunctionId::Connect)))(a,b,c,d,e,f,g)
41
42 typedef SQLRETURN (SQL_API *T3SQLDriverConnect) ( SQLHDBC ConnectionHandle,
43 HWND WindowHandle,
44 SQLCHAR * InConnectionString,
45 SQLSMALLINT StringLength1,
46 SQLCHAR * OutConnectionString,
47 SQLSMALLINT BufferLength,
48 SQLSMALLINT * StringLength2Ptr,
49 SQLUSMALLINT DriverCompletion);
50
51 #define N3SQLDriverConnect(a,b,c,d,e,f,g,h) (*reinterpret_cast<T3SQLDriverConnect>(getOdbcFunction(ODBC3SQLFunctionId::DriverConnect)))(a,b,c,d,e,f,g,h)
52
53 typedef SQLRETURN (SQL_API *T3SQLBrowseConnect) ( SQLHDBC ConnectionHandle,
54 SQLCHAR * InConnectionString,
55 SQLSMALLINT StringLength1,
56 SQLCHAR * OutConnectionString,
57 SQLSMALLINT BufferLength,
58 SQLSMALLINT * StringLength2Ptr);
59
60 #define N3SQLBrowseConnect(a,b,c,d,e,f) (*reinterpret_cast<T3SQLBrowseConnect>(getOdbcFunction(ODBC3SQLFunctionId::BrowseConnect)))(a,b,c,d,e,f)
61
62 // Obtaining information about a driver and data source
63 typedef SQLRETURN (SQL_API *T3SQLDataSources) ( SQLHENV EnvironmentHandle,
64 SQLUSMALLINT Direction,
65 SQLCHAR * ServerName,
66 SQLSMALLINT BufferLength1,
67 SQLSMALLINT * NameLength1Ptr,
68 SQLCHAR * Description,
69 SQLSMALLINT BufferLength2,
70 SQLSMALLINT * NameLength2Ptr);
71
72 #define N3SQLDataSources(a,b,c,d,e,f,g,h) (*reinterpret_cast<T3SQLDataSources>(getOdbcFunction(ODBC3SQLFunctionId::DataSources)))(a,b,c,d,e,f,g,h)
73
74 typedef SQLRETURN (SQL_API *T3SQLDrivers) ( SQLHENV EnvironmentHandle,
75 SQLUSMALLINT Direction,
76 SQLCHAR * DriverDescription,
77 SQLSMALLINT BufferLength1,
78 SQLSMALLINT * DescriptionLengthPtr,
79 SQLCHAR * DriverAttributes,
80 SQLSMALLINT BufferLength2,
81 SQLSMALLINT * AttributesLengthPtr);
82
83 #define N3SQLDrivers(a,b,c,d,e,f,g,h) (*reinterpret_cast<T3SQLDrivers>(getOdbcFunction(ODBC3SQLFunctionId::Drivers)))(a,b,c,d,e,f,g,h)
84
85 typedef SQLRETURN (SQL_API *T3SQLGetInfo) ( SQLHDBC ConnectionHandle,
86 SQLUSMALLINT InfoType,
87 SQLPOINTER InfoValuePtr,
88 SQLSMALLINT BufferLength,
89 SQLSMALLINT * StringLengthPtr);
90
91 #define N3SQLGetInfo(a,b,c,d,e) (*reinterpret_cast<T3SQLGetInfo>(getOdbcFunction(ODBC3SQLFunctionId::GetInfo)))(a,b,c,d,e)
92
93 typedef SQLRETURN (SQL_API *T3SQLGetFunctions) (SQLHDBC ConnectionHandle,
94 SQLUSMALLINT FunctionId,
95 SQLUSMALLINT * SupportedPtr);
96
97 #define N3SQLGetFunctions(a,b,c) (*reinterpret_cast<T3SQLGetFunctions>(getOdbcFunction(ODBC3SQLFunctionId::GetFunctions)))(a,b,c)
98
99 typedef SQLRETURN (SQL_API *T3SQLGetTypeInfo) ( SQLHSTMT StatementHandle,
100 SQLSMALLINT DataType);
101
102 #define N3SQLGetTypeInfo(a,b) (*reinterpret_cast<T3SQLGetTypeInfo>(getOdbcFunction(ODBC3SQLFunctionId::GetTypeInfo)))(a,b)
103
104 // Setting and retrieving driver attributes
105 typedef SQLRETURN (SQL_API *T3SQLSetConnectAttr)(SQLHDBC ConnectionHandle,
106 SQLINTEGER Attribute,
107 SQLPOINTER ValuePtr,
108 SQLINTEGER StringLength);
109
110 #define N3SQLSetConnectAttr(a,b,c,d) (*reinterpret_cast<T3SQLSetConnectAttr>(getOdbcFunction(ODBC3SQLFunctionId::SetConnectAttr)))(a,b,c,d)
111
112 typedef SQLRETURN (SQL_API *T3SQLGetConnectAttr) (SQLHDBC ConnectionHandle,
113 SQLINTEGER Attribute,
114 SQLPOINTER ValuePtr,
115 SQLINTEGER BufferLength,
116 SQLINTEGER* StringLength);
117
118 #define N3SQLGetConnectAttr(a,b,c,d,e) (*reinterpret_cast<T3SQLGetConnectAttr>(getOdbcFunction(ODBC3SQLFunctionId::GetConnectAttr)))(a,b,c,d,e)
119
120
121 typedef SQLRETURN (SQL_API *T3SQLSetEnvAttr) ( SQLHENV EnvironmentHandle,
122 SQLINTEGER Attribute,
123 SQLPOINTER ValuePtr,
124 SQLINTEGER StringLength);
125
126 #define N3SQLSetEnvAttr(a,b,c,d) (*reinterpret_cast<T3SQLSetEnvAttr>(getOdbcFunction(ODBC3SQLFunctionId::SetEnvAttr)))(a,b,c,d)
127
128 typedef SQLRETURN (SQL_API *T3SQLGetEnvAttr) ( SQLHENV EnvironmentHandle,
129 SQLINTEGER Attribute,
130 SQLPOINTER ValuePtr,
131 SQLINTEGER BufferLength,
132 SQLINTEGER* StringLength);
133
134 #define N3SQLGetEnvAttr(a,b,c,d,e) (*reinterpret_cast<T3SQLGetEnvAttr>(getOdbcFunction(ODBC3SQLFunctionId::GetEnvAttr)))(a,b,c,d,e)
135
136
137 typedef SQLRETURN (SQL_API *T3SQLSetStmtAttr) ( SQLHSTMT StatementHandle,
138 SQLINTEGER Attribute,
139 SQLPOINTER ValuePtr,
140 SQLINTEGER StringLength);
141
142 #define N3SQLSetStmtAttr(a,b,c,d) (*reinterpret_cast<T3SQLSetStmtAttr>(getOdbcFunction(ODBC3SQLFunctionId::SetStmtAttr)))(a,b,c,d)
143
144 typedef SQLRETURN (SQL_API *T3SQLGetStmtAttr) ( SQLHSTMT StatementHandle,
145 SQLINTEGER Attribute,
146 SQLPOINTER ValuePtr,
147 SQLINTEGER BufferLength,
148 SQLINTEGER* StringLength);
149
150 #define N3SQLGetStmtAttr(a,b,c,d,e) (*reinterpret_cast<T3SQLGetStmtAttr>(getOdbcFunction(ODBC3SQLFunctionId::GetStmtAttr)))(a,b,c,d,e)
151
152 // Setting and retrieving descriptor fields
153 /*typedef SQLRETURN (SQL_API *T3SQLSetDescField) (SQLHDESC DescriptorHandle,
154 SQLSMALLINT RecNumber,
155 SQLSMALLINT FieldIdentifier,
156 SQLPOINTER ValuePtr,
157 SQLINTEGER BufferLength);
158
159 #define N3SQLSetDescField(a,b,c,d,e) (*reinterpret_cast<T3SQLSetDescField>(getOdbcFunction(ODBC3SQLFunctionId::SetDescField)))(a,b,c,d,e)
160
161 typedef SQLRETURN (SQL_API *T3SQLGetDescField) ( SQLHDESC DescriptorHandle,
162 SQLSMALLINT RecNumber,
163 SQLSMALLINT FieldIdentifier,
164 SQLPOINTER ValuePtr,
165 SQLINTEGER BufferLength,
166 SQLINTEGER * StringLengthPtr);
167
168 #define N3SQLGetDescField(a,b,c,d,e,f) (*reinterpret_cast<T3SQLGetDescField>(getOdbcFunction(ODBC3SQLFunctionId::GetDescField)))(a,b,c,d,e,f)
169
170
171 typedef SQLRETURN (SQL_API *T3SQLGetDescRec) ( SQLHDESC DescriptorHandle,
172 SQLSMALLINT RecNumber,
173 SQLCHAR * Name,
174 SQLSMALLINT BufferLength,
175 SQLSMALLINT * StringLengthPtr,
176 SQLSMALLINT * TypePtr,
177 SQLSMALLINT * SubTypePtr,
178 SQLLEN * LengthPtr,
179 SQLSMALLINT * PrecisionPtr,
180 SQLSMALLINT * ScalePtr,
181 SQLSMALLINT * NullablePtr);
182
183 #define N3SQLGetDescRec(a,b,c,d,e,f,g,h,i,j,k) (*reinterpret_cast<T3SQLGetDescRec>(getOdbcFunction(ODBC3SQLFunctionId::GetDescRec)))(a,b,c,d,e,f,g,h,i,j,k)
184
185
186 typedef SQLRETURN (SQL_API *T3SQLSetDescRec) ( SQLHDESC DescriptorHandle,
187 SQLSMALLINT RecNumber,
188 SQLSMALLINT Type,
189 SQLSMALLINT SubType,
190 SQLLEN Length,
191 SQLSMALLINT Precision,
192 SQLSMALLINT Scale,
193 SQLPOINTER DataPtr,
194 SQLLEN * StringLengthPtr,
195 SQLLEN * IndicatorPtr);
196
197 #define N3SQLSetDescRec(a,b,c,d,e,f,g,h,i,j) (*reinterpret_cast<T3SQLSetDescRec>(getOdbcFunction(ODBC3SQLFunctionId::SetDescRec)))(a,b,c,d,e,f,g,h,i,j)
198 */
199
200 // Preparing SQL requests
201 typedef SQLRETURN (SQL_API *T3SQLPrepare) ( SQLHSTMT StatementHandle,
202 SQLCHAR * StatementText,
203 SQLINTEGER TextLength);
204
205 #define N3SQLPrepare(a,b,c) (*reinterpret_cast<T3SQLPrepare>(getOdbcFunction(ODBC3SQLFunctionId::Prepare)))(a,b,c)
206
207 typedef SQLRETURN (SQL_API *T3SQLBindParameter) (SQLHSTMT StatementHandle,
208 SQLUSMALLINT ParameterNumber,
209 SQLSMALLINT InputOutputType,
210 SQLSMALLINT ValueType,
211 SQLSMALLINT ParameterType,
212 SQLULEN ColumnSize,
213 SQLSMALLINT DecimalDigits,
214 SQLPOINTER ParameterValuePtr,
215 SQLLEN BufferLength,
216 SQLLEN * StrLen_or_IndPtr);
217
218 #define N3SQLBindParameter(a,b,c,d,e,f,g,h,i,j) (*reinterpret_cast<T3SQLBindParameter>(getOdbcFunction(ODBC3SQLFunctionId::BindParameter)))(a,b,c,d,e,f,g,h,i,j)
219
220 /*typedef SQLRETURN (SQL_API *T3SQLGetCursorName) (SQLHSTMT StatementHandle,
221 SQLCHAR * CursorName,
222 SQLSMALLINT BufferLength,
223 SQLSMALLINT * NameLengthPtr);
224
225 #define N3SQLGetCursorName(a,b,c,d) (*reinterpret_cast<T3SQLGetCursorName>(getOdbcFunction(ODBC3SQLFunctionId::GetCursorName)))(a,b,c,d)
226 */
227
228 typedef SQLRETURN (SQL_API *T3SQLSetCursorName) (SQLHSTMT StatementHandle,
229 SQLCHAR * CursorName,
230 SQLSMALLINT NameLength);
231
232 #define N3SQLSetCursorName(a,b,c) (*reinterpret_cast<T3SQLSetCursorName>(getOdbcFunction(ODBC3SQLFunctionId::SetCursorName)))(a,b,c)
233
234 // Submitting requests
235 typedef SQLRETURN (SQL_API *T3SQLExecute) ( SQLHSTMT StatementHandle);
236
237 #define N3SQLExecute(a) (*reinterpret_cast<T3SQLExecute>(getOdbcFunction(ODBC3SQLFunctionId::Execute)))(a)
238
239 typedef SQLRETURN (SQL_API *T3SQLExecDirect) ( SQLHSTMT StatementHandle,
240 SQLCHAR * StatementText,
241 SQLINTEGER TextLength);
242
243 #define N3SQLExecDirect(a,b,c) (*reinterpret_cast<T3SQLExecDirect>(getOdbcFunction(ODBC3SQLFunctionId::ExecDirect)))(a,b,c)
244
245 typedef SQLRETURN (SQL_API *T3SQLDescribeParam) (SQLHSTMT StatementHandle,
246 SQLUSMALLINT ParameterNumber,
247 SQLSMALLINT * DataTypePtr,
248 SQLULEN * ParameterSizePtr,
249 SQLSMALLINT * DecimalDigitsPtr,
250 SQLSMALLINT * NullablePtr);
251
252 #define N3SQLDescribeParam(a,b,c,d,e,f) (*reinterpret_cast<T3SQLDescribeParam>(getOdbcFunction(ODBC3SQLFunctionId::DescribeParam)))(a,b,c,d,e,f)
253
254 typedef SQLRETURN (SQL_API *T3SQLNumParams) ( SQLHSTMT StatementHandle,
255 SQLSMALLINT * ParameterCountPtr);
256
257 #define N3SQLNumParams(a,b) (*reinterpret_cast<T3SQLNumParams>(getOdbcFunction(ODBC3SQLFunctionId::NumParams)))(a,b)
258
259 typedef SQLRETURN (SQL_API *T3SQLParamData) ( SQLHSTMT StatementHandle,
260 SQLPOINTER * ValuePtrPtr);
261
262 #define N3SQLParamData(a,b) (*reinterpret_cast<T3SQLParamData>(getOdbcFunction(ODBC3SQLFunctionId::ParamData)))(a,b)
263
264 typedef SQLRETURN (SQL_API *T3SQLPutData) ( SQLHSTMT StatementHandle,
265 SQLPOINTER DataPtr,
266 SQLLEN StrLen_or_Ind);
267
268 #define N3SQLPutData(a,b,c) (*reinterpret_cast<T3SQLPutData>(getOdbcFunction(ODBC3SQLFunctionId::PutData)))(a,b,c)
269
270 // Retrieving results and information about results
271 typedef SQLRETURN (SQL_API *T3SQLRowCount) ( SQLHSTMT StatementHandle,
272 SQLLEN * RowCountPtr);
273
274 #define N3SQLRowCount(a,b) (*reinterpret_cast<T3SQLRowCount>(getOdbcFunction(ODBC3SQLFunctionId::RowCount)))(a,b)
275
276 typedef SQLRETURN (SQL_API *T3SQLNumResultCols) (SQLHSTMT StatementHandle,
277 SQLSMALLINT * ColumnCountPtr);
278
279 #define N3SQLNumResultCols(a,b) (*reinterpret_cast<T3SQLNumResultCols>(getOdbcFunction(ODBC3SQLFunctionId::NumResultCols)))(a,b)
280
281 typedef SQLRETURN (SQL_API *T3SQLDescribeCol) ( SQLHSTMT StatementHandle,
282 SQLUSMALLINT ColumnNumber,
283 SQLCHAR * ColumnName,
284 SQLSMALLINT BufferLength,
285 SQLSMALLINT * NameLengthPtr,
286 SQLSMALLINT * DataTypePtr,
287 SQLULEN * ColumnSizePtr,
288 SQLSMALLINT * DecimalDigitsPtr,
289 SQLSMALLINT * NullablePtr);
290
291 #define N3SQLDescribeCol(a,b,c,d,e,f,g,h,i) (*reinterpret_cast<T3SQLDescribeCol>(getOdbcFunction(ODBC3SQLFunctionId::DescribeCol)))(a,b,c,d,e,f,g,h,i)
292
293 typedef SQLRETURN (SQL_API *T3SQLColAttribute) (SQLHSTMT StatementHandle,
294 SQLUSMALLINT ColumnNumber,
295 SQLUSMALLINT FieldIdentifier,
296 SQLPOINTER CharacterAttributePtr,
297 SQLSMALLINT BufferLength,
298 SQLSMALLINT * StringLengthPtr,
299 SQLLEN * NumericAttributePtr);
300
301 #define N3SQLColAttribute(a,b,c,d,e,f,g) (*reinterpret_cast<T3SQLColAttribute>(getOdbcFunction(ODBC3SQLFunctionId::ColAttribute)))(a,b,c,d,e,f,g)
302
303 typedef SQLRETURN (SQL_API *T3SQLBindCol) ( SQLHSTMT StatementHandle,
304 SQLUSMALLINT ColumnNumber,
305 SQLSMALLINT TargetType,
306 SQLPOINTER TargetValuePtr,
307 SQLLEN BufferLength,
308 SQLLEN * StrLen_or_IndPtr);
309
310 #define N3SQLBindCol(a,b,c,d,e,f) (*reinterpret_cast<T3SQLBindCol>(getOdbcFunction(ODBC3SQLFunctionId::BindCol)))(a,b,c,d,e,f)
311
312 typedef SQLRETURN (SQL_API *T3SQLFetch) ( SQLHSTMT StatementHandle);
313
314 #define N3SQLFetch(a) (*reinterpret_cast<T3SQLFetch>(getOdbcFunction(ODBC3SQLFunctionId::Fetch)))(a)
315
316 typedef SQLRETURN (SQL_API *T3SQLFetchScroll) ( SQLHSTMT StatementHandle,
317 SQLSMALLINT FetchOrientation,
318 SQLLEN FetchOffset);
319
320 #define N3SQLFetchScroll(a,b,c) (*reinterpret_cast<T3SQLFetchScroll>(getOdbcFunction(ODBC3SQLFunctionId::FetchScroll)))(a,b,c)
321
322 typedef SQLRETURN (SQL_API *T3SQLGetData) ( SQLHSTMT StatementHandle,
323 SQLUSMALLINT ColumnNumber,
324 SQLSMALLINT TargetType,
325 SQLPOINTER TargetValuePtr,
326 SQLLEN BufferLength,
327 SQLLEN * StrLen_or_IndPtr);
328
329 #define N3SQLGetData(a,b,c,d,e,f) (*reinterpret_cast<T3SQLGetData>(getOdbcFunction(ODBC3SQLFunctionId::GetData)))(a,b,c,d,e,f)
330
331 typedef SQLRETURN (SQL_API *T3SQLSetPos) ( SQLHSTMT StatementHandle,
332 SQLSETPOSIROW RowNumber,
333 SQLUSMALLINT Operation,
334 SQLUSMALLINT LockType);
335
336 #define N3SQLSetPos(a,b,c,d) (*reinterpret_cast<T3SQLSetPos>(getOdbcFunction(ODBC3SQLFunctionId::SetPos)))(a,b,c,d)
337
338 typedef SQLRETURN (SQL_API *T3SQLBulkOperations) ( SQLHSTMT StatementHandle,
339 SQLSMALLINT Operation);
340
341 #define N3SQLBulkOperations(a,b) (*reinterpret_cast<T3SQLBulkOperations>(getOdbcFunction(ODBC3SQLFunctionId::BulkOperations)))(a,b)
342
343 typedef SQLRETURN (SQL_API *T3SQLMoreResults) ( SQLHSTMT StatementHandle);
344
345 #define N3SQLMoreResults(a) (*reinterpret_cast<T3SQLMoreResults>(getOdbcFunction(ODBC3SQLFunctionId::MoreResults)))(a)
346
347 /*typedef SQLRETURN (SQL_API *T3SQLGetDiagField) (SQLSMALLINT HandleType,
348 SQLHANDLE Handle,
349 SQLSMALLINT RecNumber,
350 SQLSMALLINT DiagIdentifier,
351 SQLPOINTER DiagInfoPtr,
352 SQLSMALLINT BufferLength,
353 SQLSMALLINT * StringLengthPtr);
354
355 #define N3SQLGetDiagField(a,b,c,d,e,f,g) (*reinterpret_cast<T3SQLGetDiagField>(getOdbcFunction(ODBC3SQLFunctionId::GetDiagField)))(a,b,c,d,e,f,g)*/
356
357 typedef SQLRETURN (SQL_API *T3SQLGetDiagRec) ( SQLSMALLINT HandleType,
358 SQLHANDLE Handle,
359 SQLSMALLINT RecNumber,
360 SQLCHAR * Sqlstate,
361 SQLINTEGER * NativeErrorPtr,
362 SQLCHAR * MessageText,
363 SQLSMALLINT BufferLength,
364 SQLSMALLINT * TextLengthPtr);
365
366
367 #define N3SQLGetDiagRec(a,b,c,d,e,f,g,h) (*reinterpret_cast<T3SQLGetDiagRec>(getOdbcFunction(ODBC3SQLFunctionId::GetDiagRec)))(a,b,c,d,e,f,g,h)
368
369 // Obtaining information about the data source's system tables (catalog functions)
370 typedef SQLRETURN (SQL_API *T3SQLColumnPrivileges) (SQLHSTMT StatementHandle,
371 SQLCHAR * CatalogName,
372 SQLSMALLINT NameLength1,
373 SQLCHAR * SchemaName,
374 SQLSMALLINT NameLength2,
375 SQLCHAR * TableName,
376 SQLSMALLINT NameLength3,
377 SQLCHAR * ColumnName,
378 SQLSMALLINT NameLength4);
379
380 #define N3SQLColumnPrivileges(a,b,c,d,e,f,g,h,i) (*reinterpret_cast<T3SQLColumnPrivileges>(getOdbcFunction(ODBC3SQLFunctionId::ColumnPrivileges)))(a,b,c,d,e,f,g,h,i)
381
382 typedef SQLRETURN (SQL_API *T3SQLColumns) ( SQLHSTMT StatementHandle,
383 SQLCHAR * CatalogName,
384 SQLSMALLINT NameLength1,
385 SQLCHAR * SchemaName,
386 SQLSMALLINT NameLength2,
387 SQLCHAR * TableName,
388 SQLSMALLINT NameLength3,
389 SQLCHAR * ColumnName,
390 SQLSMALLINT NameLength4);
391
392 #define N3SQLColumns(a,b,c,d,e,f,g,h,i) (*reinterpret_cast<T3SQLColumns>(getOdbcFunction(ODBC3SQLFunctionId::Columns)))(a,b,c,d,e,f,g,h,i)
393
394 typedef SQLRETURN (SQL_API *T3SQLForeignKeys) ( SQLHSTMT StatementHandle,
395 SQLCHAR * PKCatalogName,
396 SQLSMALLINT NameLength1,
397 SQLCHAR * PKSchemaName,
398 SQLSMALLINT NameLength2,
399 SQLCHAR * PKTableName,
400 SQLSMALLINT NameLength3,
401 SQLCHAR * FKCatalogName,
402 SQLSMALLINT NameLength4,
403 SQLCHAR * FKSchemaName,
404 SQLSMALLINT NameLength5,
405 SQLCHAR * FKTableName,
406 SQLSMALLINT NameLength6);
407
408 #define N3SQLForeignKeys(a,b,c,d,e,f,g,h,i,j,k,l,m) (*reinterpret_cast<T3SQLForeignKeys>(getOdbcFunction(ODBC3SQLFunctionId::ForeignKeys)))(a,b,c,d,e,f,g,h,i,j,k,l,m)
409
410 typedef SQLRETURN (SQL_API *T3SQLPrimaryKeys) ( SQLHSTMT StatementHandle,
411 SQLCHAR * CatalogName,
412 SQLSMALLINT NameLength1,
413 SQLCHAR * SchemaName,
414 SQLSMALLINT NameLength2,
415 SQLCHAR * TableName,
416 SQLSMALLINT NameLength3);
417
418 #define N3SQLPrimaryKeys(a,b,c,d,e,f,g) (*reinterpret_cast<T3SQLPrimaryKeys>(getOdbcFunction(ODBC3SQLFunctionId::PrimaryKeys)))(a,b,c,d,e,f,g)
419
420 typedef SQLRETURN (SQL_API *T3SQLProcedureColumns) (SQLHSTMT StatementHandle,
421 SQLCHAR * CatalogName,
422 SQLSMALLINT NameLength1,
423 SQLCHAR * SchemaName,
424 SQLSMALLINT NameLength2,
425 SQLCHAR * ProcName,
426 SQLSMALLINT NameLength3,
427 SQLCHAR * ColumnName,
428 SQLSMALLINT NameLength4);
429
430 #define N3SQLProcedureColumns(a,b,c,d,e,f,g,h,i) (*reinterpret_cast<T3SQLProcedureColumns>(getOdbcFunction(ODBC3SQLFunctionId::ProcedureColumns)))(a,b,c,d,e,f,g,h,i)
431
432 typedef SQLRETURN (SQL_API *T3SQLProcedures) ( SQLHSTMT StatementHandle,
433 SQLCHAR * CatalogName,
434 SQLSMALLINT NameLength1,
435 SQLCHAR * SchemaName,
436 SQLSMALLINT NameLength2,
437 SQLCHAR * ProcName,
438 SQLSMALLINT NameLength3);
439
440 #define N3SQLProcedures(a,b,c,d,e,f,g) (*reinterpret_cast<T3SQLProcedures>(getOdbcFunction(ODBC3SQLFunctionId::Procedures)))(a,b,c,d,e,f,g)
441
442 typedef SQLRETURN (SQL_API *T3SQLSpecialColumns) (SQLHSTMT StatementHandle,
443 SQLUSMALLINT IdentifierType,
444 SQLCHAR * CatalogName,
445 SQLSMALLINT NameLength1,
446 SQLCHAR * SchemaName,
447 SQLSMALLINT NameLength2,
448 SQLCHAR * TableName,
449 SQLSMALLINT NameLength3,
450 SQLUSMALLINT Scope,
451 SQLUSMALLINT Nullable);
452
453 #define N3SQLSpecialColumns(a,b,c,d,e,f,g,h,i,j) (*reinterpret_cast<T3SQLSpecialColumns>(getOdbcFunction(ODBC3SQLFunctionId::SpecialColumns)))(a,b,c,d,e,f,g,h,i,j)
454
455 typedef SQLRETURN (SQL_API *T3SQLStatistics) ( SQLHSTMT StatementHandle,
456 SQLCHAR * CatalogName,
457 SQLSMALLINT NameLength1,
458 SQLCHAR * SchemaName,
459 SQLSMALLINT NameLength2,
460 SQLCHAR * TableName,
461 SQLSMALLINT NameLength3,
462 SQLUSMALLINT Unique,
463 SQLUSMALLINT Reserved);
464
465 #define N3SQLStatistics(a,b,c,d,e,f,g,h,i) (*reinterpret_cast<T3SQLStatistics>(getOdbcFunction(ODBC3SQLFunctionId::Statistics)))(a,b,c,d,e,f,g,h,i)
466
467 typedef SQLRETURN (SQL_API *T3SQLTablePrivileges) (SQLHSTMT StatementHandle,
468 SQLCHAR * CatalogName,
469 SQLSMALLINT NameLength1,
470 SQLCHAR * SchemaName,
471 SQLSMALLINT NameLength2,
472 SQLCHAR * TableName,
473 SQLSMALLINT NameLength3);
474
475 #define N3SQLTablePrivileges(a,b,c,d,e,f,g) (*reinterpret_cast<T3SQLTablePrivileges>(getOdbcFunction(ODBC3SQLFunctionId::TablePrivileges)))(a,b,c,d,e,f,g)
476
477 typedef SQLRETURN (SQL_API *T3SQLTables) ( SQLHSTMT StatementHandle,
478 SQLCHAR * CatalogName,
479 SQLSMALLINT NameLength1,
480 SQLCHAR * SchemaName,
481 SQLSMALLINT NameLength2,
482 SQLCHAR * TableName,
483 SQLSMALLINT NameLength3,
484 SQLCHAR * TableType,
485 SQLSMALLINT NameLength4);
486
487 #define N3SQLTables(a,b,c,d,e,f,g,h,i) (*reinterpret_cast<T3SQLTables>(getOdbcFunction(ODBC3SQLFunctionId::Tables)))(a,b,c,d,e,f,g,h,i)
488
489 // Terminating a statement
490 typedef SQLRETURN (SQL_API *T3SQLFreeStmt) ( SQLHSTMT StatementHandle,
491 SQLUSMALLINT Option);
492
493 #define N3SQLFreeStmt(a,b) (*reinterpret_cast<T3SQLFreeStmt>(getOdbcFunction(ODBC3SQLFunctionId::FreeStmt)))(a,b)
494
495 typedef SQLRETURN (SQL_API *T3SQLCloseCursor) (SQLHSTMT StatementHandle);
496
497 #define N3SQLCloseCursor(a) (*reinterpret_cast<T3SQLCloseCursor>(getOdbcFunction(ODBC3SQLFunctionId::CloseCursor)))(a)
498
499 typedef SQLRETURN (SQL_API *T3SQLCancel) ( SQLHSTMT StatementHandle);
500
501 #define N3SQLCancel(a) (*reinterpret_cast<T3SQLCancel>(getOdbcFunction(ODBC3SQLFunctionId::Cancel)))(a)
502
503 typedef SQLRETURN (SQL_API *T3SQLEndTran) ( SQLSMALLINT HandleType,
504 SQLHANDLE Handle,
505 SQLSMALLINT CompletionType);
506
507 #define N3SQLEndTran(a,b,c) (*reinterpret_cast<T3SQLEndTran>(getOdbcFunction(ODBC3SQLFunctionId::EndTran)))(a,b,c)
508
509 // Terminating a connection
510 typedef SQLRETURN (SQL_API *T3SQLDisconnect) (SQLHDBC ConnectionHandle);
511
512 #define N3SQLDisconnect(a) (*reinterpret_cast<T3SQLDisconnect>(getOdbcFunction(ODBC3SQLFunctionId::Disconnect)))(a)
513
514 typedef SQLRETURN (SQL_API *T3SQLFreeHandle) (SQLSMALLINT HandleType,
515 SQLHANDLE Handle);
516
517 #define N3SQLFreeHandle(a,b) (*reinterpret_cast<T3SQLFreeHandle>(getOdbcFunction(ODBC3SQLFunctionId::FreeHandle)))(a,b)
518
519 typedef SQLRETURN (SQL_API *T3SQLGetCursorName) ( SQLHSTMT StatementHandle,
520 SQLCHAR * CursorName,
521 SQLSMALLINT BufferLength,
522 SQLSMALLINT* NameLength2);
523
524 #define N3SQLGetCursorName(a,b,c,d) (*reinterpret_cast<T3SQLGetCursorName>(getOdbcFunction(ODBC3SQLFunctionId::GetCursorName)))(a,b,c,d)
525
526 typedef SQLRETURN (SQL_API *T3SQLNativeSql) ( SQLHDBC ConnectionHandle,
527 SQLCHAR * InStatementText,
528 SQLINTEGER TextLength1,
529 SQLCHAR * OutStatementText,
530 SQLINTEGER BufferLength,
531 SQLINTEGER * TextLength2Ptr);
532
533 #define N3SQLNativeSql(a,b,c,d,e,f) (*reinterpret_cast<T3SQLNativeSql>(getOdbcFunction(ODBC3SQLFunctionId::NativeSql)))(a,b,c,d,e,f)
534
535 // extern declaration of the function pointer
551 //extern T3SQLSetDescField pODBC3SQLSetDescField;
552 //extern T3SQLGetDescField pODBC3SQLGetDescField;
553 //extern T3SQLGetDescRec pODBC3SQLGetDescRec;
554 //extern T3SQLSetDescRec pODBC3SQLSetDescRec;
557 //extern T3SQLGetCursorName pODBC3SQLGetCursorName;
561 //extern T3SQLNativeSql pODBC3SQLNativeSql;
577 //extern T3SQLGetDiagField pODBC3SQLGetDiagField;
597}
598
599
600/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SQLRETURN(SQL_API * T3SQLTables)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *TableType, SQLSMALLINT NameLength4)
Definition: OFunctions.hxx:477
T3SQLSetEnvAttr pODBC3SQLSetEnvAttr
Definition: OFunctions.cxx:37
T3SQLCloseCursor pODBC3SQLCloseCursor
Definition: OFunctions.cxx:73
T3SQLRowCount pODBC3SQLRowCount
Definition: OFunctions.cxx:50
T3SQLAllocHandle pODBC3SQLAllocHandle
Definition: OFunctions.cxx:26
SQLRETURN(SQL_API * T3SQLGetConnectAttr)(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
Definition: OFunctions.hxx:112
SQLRETURN(SQL_API * T3SQLExecDirect)(SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
Definition: OFunctions.hxx:239
SQLRETURN(SQL_API * T3SQLFetchScroll)(SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLLEN FetchOffset)
Definition: OFunctions.hxx:316
SQLRETURN(SQL_API * T3SQLPrepare)(SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
Definition: OFunctions.hxx:201
T3SQLDescribeCol pODBC3SQLDescribeCol
Definition: OFunctions.cxx:52
SQLRETURN(SQL_API * T3SQLTablePrivileges)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3)
Definition: OFunctions.hxx:467
SQLRETURN(SQL_API * T3SQLAllocHandle)(SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandlePtr)
Definition: OFunctions.hxx:34
T3SQLColumnPrivileges pODBC3SQLColumnPrivileges
Definition: OFunctions.cxx:62
T3SQLBulkOperations pODBC3SQLBulkOperations
Definition: OFunctions.cxx:59
T3SQLParamData pODBC3SQLParamData
Definition: OFunctions.cxx:48
T3SQLPrepare pODBC3SQLPrepare
Definition: OFunctions.cxx:41
T3SQLSetConnectAttr pODBC3SQLSetConnectAttr
Definition: OFunctions.cxx:35
SQLRETURN(SQL_API * T3SQLFetch)(SQLHSTMT StatementHandle)
Definition: OFunctions.hxx:312
SQLRETURN(SQL_API * T3SQLGetTypeInfo)(SQLHSTMT StatementHandle, SQLSMALLINT DataType)
Definition: OFunctions.hxx:99
SQLRETURN(SQL_API * T3SQLStatistics)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
Definition: OFunctions.hxx:455
SQLRETURN(SQL_API * T3SQLSetEnvAttr)(SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER StringLength)
Definition: OFunctions.hxx:121
SQLRETURN(SQL_API * T3SQLConnect)(SQLHDBC ConnectionHandle, SQLCHAR *ServerName, SQLSMALLINT NameLength1, SQLCHAR *UserName, SQLSMALLINT NameLength2, SQLCHAR *Authentication, SQLSMALLINT NameLength3)
Definition: OFunctions.hxx:38
SQLRETURN(SQL_API * T3SQLDescribeParam)(SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT *DataTypePtr, SQLULEN *ParameterSizePtr, SQLSMALLINT *DecimalDigitsPtr, SQLSMALLINT *NullablePtr)
Definition: OFunctions.hxx:245
T3SQLExecDirect pODBC3SQLExecDirect
Definition: OFunctions.cxx:45
SQLRETURN(SQL_API * T3SQLProcedureColumns)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *ProcName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
Definition: OFunctions.hxx:420
SQLRETURN(SQL_API * T3SQLRowCount)(SQLHSTMT StatementHandle, SQLLEN *RowCountPtr)
Definition: OFunctions.hxx:271
SQLRETURN(SQL_API * T3SQLBrowseConnect)(SQLHDBC ConnectionHandle, SQLCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr)
Definition: OFunctions.hxx:53
T3SQLForeignKeys pODBC3SQLForeignKeys
Definition: OFunctions.cxx:64
SQLRETURN(SQL_API * T3SQLGetDiagRec)(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLCHAR *Sqlstate, SQLINTEGER *NativeErrorPtr, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLengthPtr)
Definition: OFunctions.hxx:357
SQLRETURN(SQL_API * T3SQLProcedures)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *ProcName, SQLSMALLINT NameLength3)
Definition: OFunctions.hxx:432
T3SQLGetEnvAttr pODBC3SQLGetEnvAttr
Definition: OFunctions.cxx:38
T3SQLConnect pODBC3SQLConnect
Definition: OFunctions.cxx:27
T3SQLEndTran pODBC3SQLEndTran
Definition: OFunctions.cxx:75
SQLRETURN(SQL_API * T3SQLNativeSql)(SQLHDBC ConnectionHandle, SQLCHAR *InStatementText, SQLINTEGER TextLength1, SQLCHAR *OutStatementText, SQLINTEGER BufferLength, SQLINTEGER *TextLength2Ptr)
Definition: OFunctions.hxx:526
SQLRETURN(SQL_API * T3SQLGetData)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValuePtr, SQLLEN BufferLength, SQLLEN *StrLen_or_IndPtr)
Definition: OFunctions.hxx:322
SQLRETURN(SQL_API * T3SQLPrimaryKeys)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3)
Definition: OFunctions.hxx:410
SQLRETURN(SQL_API * T3SQLNumParams)(SQLHSTMT StatementHandle, SQLSMALLINT *ParameterCountPtr)
Definition: OFunctions.hxx:254
T3SQLSetStmtAttr pODBC3SQLSetStmtAttr
Definition: OFunctions.cxx:39
T3SQLColumns pODBC3SQLColumns
Definition: OFunctions.cxx:63
bool LoadLibrary_ODBC3(OUString &_rPath)
Definition: OFunctions.cxx:85
SQLRETURN(SQL_API * T3SQLDataSources)(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *ServerName, SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1Ptr, SQLCHAR *Description, SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2Ptr)
Definition: OFunctions.hxx:63
T3SQLPrimaryKeys pODBC3SQLPrimaryKeys
Definition: OFunctions.cxx:65
T3SQLGetFunctions pODBC3SQLGetFunctions
Definition: OFunctions.cxx:33
SQLRETURN(SQL_API * T3SQLDisconnect)(SQLHDBC ConnectionHandle)
Definition: OFunctions.hxx:510
SQLRETURN(SQL_API * T3SQLCancel)(SQLHSTMT StatementHandle)
Definition: OFunctions.hxx:499
SQLRETURN(SQL_API * T3SQLColumnPrivileges)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
Definition: OFunctions.hxx:370
T3SQLNativeSql pODBC3SQLNativeSql
Definition: OFunctions.cxx:79
SQLRETURN(SQL_API * T3SQLBindCol)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValuePtr, SQLLEN BufferLength, SQLLEN *StrLen_or_IndPtr)
Definition: OFunctions.hxx:303
T3SQLProcedures pODBC3SQLProcedures
Definition: OFunctions.cxx:67
SQLRETURN(SQL_API * T3SQLColAttribute)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttributePtr, SQLSMALLINT BufferLength, SQLSMALLINT *StringLengthPtr, SQLLEN *NumericAttributePtr)
Definition: OFunctions.hxx:293
T3SQLNumResultCols pODBC3SQLNumResultCols
Definition: OFunctions.cxx:51
SQLRETURN(SQL_API * T3SQLBulkOperations)(SQLHSTMT StatementHandle, SQLSMALLINT Operation)
Definition: OFunctions.hxx:338
T3SQLGetInfo pODBC3SQLGetInfo
Definition: OFunctions.cxx:32
SQLRETURN(SQL_API * T3SQLSetCursorName)(SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT NameLength)
Definition: OFunctions.hxx:228
T3SQLColAttribute pODBC3SQLColAttribute
Definition: OFunctions.cxx:53
SQLRETURN(SQL_API * T3SQLParamData)(SQLHSTMT StatementHandle, SQLPOINTER *ValuePtrPtr)
Definition: OFunctions.hxx:259
T3SQLNumParams pODBC3SQLNumParams
Definition: OFunctions.cxx:47
SQLRETURN(SQL_API * T3SQLSetPos)(SQLHSTMT StatementHandle, SQLSETPOSIROW RowNumber, SQLUSMALLINT Operation, SQLUSMALLINT LockType)
Definition: OFunctions.hxx:331
T3SQLBindCol pODBC3SQLBindCol
Definition: OFunctions.cxx:54
T3SQLPutData pODBC3SQLPutData
Definition: OFunctions.cxx:49
T3SQLBindParameter pODBC3SQLBindParameter
Definition: OFunctions.cxx:42
T3SQLStatistics pODBC3SQLStatistics
Definition: OFunctions.cxx:69
T3SQLMoreResults pODBC3SQLMoreResults
Definition: OFunctions.cxx:60
SQLRETURN(SQL_API * T3SQLDrivers)(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *DriverDescription, SQLSMALLINT BufferLength1, SQLSMALLINT *DescriptionLengthPtr, SQLCHAR *DriverAttributes, SQLSMALLINT BufferLength2, SQLSMALLINT *AttributesLengthPtr)
Definition: OFunctions.hxx:74
SQLRETURN(SQL_API * T3SQLCloseCursor)(SQLHSTMT StatementHandle)
Definition: OFunctions.hxx:495
T3SQLProcedureColumns pODBC3SQLProcedureColumns
Definition: OFunctions.cxx:66
SQLRETURN(SQL_API * T3SQLForeignKeys)(SQLHSTMT StatementHandle, SQLCHAR *PKCatalogName, SQLSMALLINT NameLength1, SQLCHAR *PKSchemaName, SQLSMALLINT NameLength2, SQLCHAR *PKTableName, SQLSMALLINT NameLength3, SQLCHAR *FKCatalogName, SQLSMALLINT NameLength4, SQLCHAR *FKSchemaName, SQLSMALLINT NameLength5, SQLCHAR *FKTableName, SQLSMALLINT NameLength6)
Definition: OFunctions.hxx:394
SQLRETURN(SQL_API * T3SQLExecute)(SQLHSTMT StatementHandle)
Definition: OFunctions.hxx:235
T3SQLCancel pODBC3SQLCancel
Definition: OFunctions.cxx:74
T3SQLSetPos pODBC3SQLSetPos
Definition: OFunctions.cxx:58
SQLRETURN(SQL_API * T3SQLGetEnvAttr)(SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
Definition: OFunctions.hxx:128
T3SQLFetch pODBC3SQLFetch
Definition: OFunctions.cxx:55
T3SQLExecute pODBC3SQLExecute
Definition: OFunctions.cxx:44
SQLRETURN(SQL_API * T3SQLEndTran)(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT CompletionType)
Definition: OFunctions.hxx:503
T3SQLFreeStmt pODBC3SQLFreeStmt
Definition: OFunctions.cxx:72
T3SQLBrowseConnect pODBC3SQLBrowseConnect
Definition: OFunctions.cxx:29
T3SQLGetDiagRec pODBC3SQLGetDiagRec
Definition: OFunctions.cxx:61
SQLRETURN(SQL_API * T3SQLFreeHandle)(SQLSMALLINT HandleType, SQLHANDLE Handle)
Definition: OFunctions.hxx:514
SQLRETURN(SQL_API * T3SQLBindParameter)(SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT InputOutputType, SQLSMALLINT ValueType, SQLSMALLINT ParameterType, SQLULEN ColumnSize, SQLSMALLINT DecimalDigits, SQLPOINTER ParameterValuePtr, SQLLEN BufferLength, SQLLEN *StrLen_or_IndPtr)
Definition: OFunctions.hxx:207
T3SQLGetConnectAttr pODBC3SQLGetConnectAttr
Definition: OFunctions.cxx:36
SQLRETURN(SQL_API * T3SQLSpecialColumns)(SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Scope, SQLUSMALLINT Nullable)
Definition: OFunctions.hxx:442
T3SQLDescribeParam pODBC3SQLDescribeParam
Definition: OFunctions.cxx:46
T3SQLGetCursorName pODBC3SQLGetCursorName
Definition: OFunctions.cxx:78
SQLRETURN(SQL_API * T3SQLGetInfo)(SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValuePtr, SQLSMALLINT BufferLength, SQLSMALLINT *StringLengthPtr)
Definition: OFunctions.hxx:85
SQLRETURN(SQL_API * T3SQLColumns)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
Definition: OFunctions.hxx:382
SQLRETURN(SQL_API * T3SQLDescribeCol)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLCHAR *ColumnName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLengthPtr, SQLSMALLINT *DataTypePtr, SQLULEN *ColumnSizePtr, SQLSMALLINT *DecimalDigitsPtr, SQLSMALLINT *NullablePtr)
Definition: OFunctions.hxx:281
SQLRETURN(SQL_API * T3SQLFreeStmt)(SQLHSTMT StatementHandle, SQLUSMALLINT Option)
Definition: OFunctions.hxx:490
T3SQLSpecialColumns pODBC3SQLSpecialColumns
Definition: OFunctions.cxx:68
T3SQLFreeHandle pODBC3SQLFreeHandle
Definition: OFunctions.cxx:77
T3SQLSetCursorName pODBC3SQLSetCursorName
Definition: OFunctions.cxx:43
T3SQLGetStmtAttr pODBC3SQLGetStmtAttr
Definition: OFunctions.cxx:40
T3SQLGetData pODBC3SQLGetData
Definition: OFunctions.cxx:57
SQLRETURN(SQL_API * T3SQLSetConnectAttr)(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER StringLength)
Definition: OFunctions.hxx:105
T3SQLDisconnect pODBC3SQLDisconnect
Definition: OFunctions.cxx:76
T3SQLDriverConnect pODBC3SQLDriverConnect
Definition: OFunctions.cxx:28
T3SQLTablePrivileges pODBC3SQLTablePrivileges
Definition: OFunctions.cxx:70
SQLRETURN(SQL_API * T3SQLDriverConnect)(SQLHDBC ConnectionHandle, HWND WindowHandle, SQLCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr, SQLUSMALLINT DriverCompletion)
Definition: OFunctions.hxx:42
T3SQLGetTypeInfo pODBC3SQLGetTypeInfo
Definition: OFunctions.cxx:34
SQLRETURN(SQL_API * T3SQLGetFunctions)(SQLHDBC ConnectionHandle, SQLUSMALLINT FunctionId, SQLUSMALLINT *SupportedPtr)
Definition: OFunctions.hxx:93
SQLRETURN(SQL_API * T3SQLPutData)(SQLHSTMT StatementHandle, SQLPOINTER DataPtr, SQLLEN StrLen_or_Ind)
Definition: OFunctions.hxx:264
SQLRETURN(SQL_API * T3SQLNumResultCols)(SQLHSTMT StatementHandle, SQLSMALLINT *ColumnCountPtr)
Definition: OFunctions.hxx:276
T3SQLFetchScroll pODBC3SQLFetchScroll
Definition: OFunctions.cxx:56
T3SQLDataSources pODBC3SQLDataSources
Definition: OFunctions.cxx:30
SQLRETURN(SQL_API * T3SQLGetCursorName)(SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength2)
Definition: OFunctions.hxx:519
SQLRETURN(SQL_API * T3SQLSetStmtAttr)(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER StringLength)
Definition: OFunctions.hxx:137
T3SQLTables pODBC3SQLTables
Definition: OFunctions.cxx:71
SQLRETURN(SQL_API * T3SQLMoreResults)(SQLHSTMT StatementHandle)
Definition: OFunctions.hxx:343
T3SQLDrivers pODBC3SQLDrivers
Definition: OFunctions.cxx:31
SQLRETURN(SQL_API * T3SQLGetStmtAttr)(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
Definition: OFunctions.hxx:144
DataType
std::vector< std::unique_ptr< CellValues > > TableType
ValueType