LibreOffice Module connectivity (master) 1
OFunctions.cxx
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#include <odbc/OFunctions.hxx>
21
22// Implib definitions for ODBC-DLL/shared library:
23
24namespace connectivity
25{
80
81static bool LoadFunctions(oslModule pODBCso);
82
83// Take care of Dynamically loading of the DLL/shared lib and Addresses:
84// Returns sal_True at success
85bool LoadLibrary_ODBC3(OUString &_rPath)
86{
87 static bool bLoaded = false;
88 static oslModule pODBCso = nullptr;
89
90 if (bLoaded)
91 return true;
92#ifdef DISABLE_DYNLOADING
93 (void)_rPath;
94#else
95#ifdef _WIN32
96 _rPath = "ODBC32.DLL";
97#endif
98#ifdef UNX
99 #ifdef MACOSX
100 _rPath = "libiodbc.dylib";
101 #else
102 _rPath = "libodbc.so.2";
103 pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
104 if ( !pODBCso )
105 {
106 _rPath = "libodbc.so.1";
107 pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
108 }
109 if ( !pODBCso )
110 _rPath = "libodbc.so";
111
112 #endif /* MACOSX */
113#endif
114
115 if ( !pODBCso )
116 pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
117#endif // DISABLE_DYNLOADING
118 if( !pODBCso)
119 return false;
120
121 bLoaded = LoadFunctions(pODBCso);
122 return bLoaded;
123}
124
125
126bool LoadFunctions(oslModule pODBCso)
127{
128
129 if( ( pODBC3SQLAllocHandle = reinterpret_cast<T3SQLAllocHandle>(osl_getFunctionSymbol(pODBCso, OUString("SQLAllocHandle").pData ))) == nullptr )
130 return false;
131 if( ( pODBC3SQLConnect = reinterpret_cast<T3SQLConnect>(osl_getFunctionSymbol(pODBCso, OUString("SQLConnect").pData ))) == nullptr )
132 return false;
133 if( ( pODBC3SQLDriverConnect = reinterpret_cast<T3SQLDriverConnect>(osl_getFunctionSymbol(pODBCso, OUString("SQLDriverConnect").pData ))) == nullptr )
134 return false;
135 if( ( pODBC3SQLBrowseConnect = reinterpret_cast<T3SQLBrowseConnect>(osl_getFunctionSymbol(pODBCso, OUString("SQLBrowseConnect").pData ))) == nullptr )
136 return false;
137 if(( pODBC3SQLDataSources = reinterpret_cast<T3SQLDataSources>(osl_getFunctionSymbol(pODBCso, OUString("SQLDataSources").pData ))) == nullptr )
138 return false;
139 if(( pODBC3SQLDrivers = reinterpret_cast<T3SQLDrivers>(osl_getFunctionSymbol(pODBCso, OUString("SQLDrivers").pData ))) == nullptr )
140 return false;
141 if( ( pODBC3SQLGetInfo = reinterpret_cast<T3SQLGetInfo>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetInfo").pData ))) == nullptr )
142 return false;
143 if(( pODBC3SQLGetFunctions = reinterpret_cast<T3SQLGetFunctions>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetFunctions").pData ))) == nullptr )
144 return false;
145 if( ( pODBC3SQLGetTypeInfo = reinterpret_cast<T3SQLGetTypeInfo>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetTypeInfo").pData ))) == nullptr )
146 return false;
147 if( ( pODBC3SQLSetConnectAttr = reinterpret_cast<T3SQLSetConnectAttr>(osl_getFunctionSymbol(pODBCso, OUString("SQLSetConnectAttr").pData ))) == nullptr )
148 return false;
149 if( ( pODBC3SQLGetConnectAttr = reinterpret_cast<T3SQLGetConnectAttr>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetConnectAttr").pData ))) == nullptr )
150 return false;
151 if( ( pODBC3SQLSetEnvAttr = reinterpret_cast<T3SQLSetEnvAttr>(osl_getFunctionSymbol(pODBCso, OUString("SQLSetEnvAttr").pData ))) == nullptr )
152 return false;
153 if( ( pODBC3SQLGetEnvAttr = reinterpret_cast<T3SQLGetEnvAttr>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetEnvAttr").pData ))) == nullptr )
154 return false;
155 if( ( pODBC3SQLSetStmtAttr = reinterpret_cast<T3SQLSetStmtAttr>(osl_getFunctionSymbol(pODBCso, OUString("SQLSetStmtAttr").pData ))) == nullptr )
156 return false;
157 if( ( pODBC3SQLGetStmtAttr = reinterpret_cast<T3SQLGetStmtAttr>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetStmtAttr").pData ))) == nullptr )
158 return false;
159 if( ( pODBC3SQLPrepare = reinterpret_cast<T3SQLPrepare>(osl_getFunctionSymbol(pODBCso, OUString("SQLPrepare").pData ))) == nullptr )
160 return false;
161 if( ( pODBC3SQLBindParameter = reinterpret_cast<T3SQLBindParameter>(osl_getFunctionSymbol(pODBCso, OUString("SQLBindParameter").pData ))) == nullptr )
162 return false;
163 if( ( pODBC3SQLSetCursorName = reinterpret_cast<T3SQLSetCursorName>(osl_getFunctionSymbol(pODBCso, OUString("SQLSetCursorName").pData ))) == nullptr )
164 return false;
165 if( ( pODBC3SQLExecute = reinterpret_cast<T3SQLExecute>(osl_getFunctionSymbol(pODBCso, OUString("SQLExecute").pData ))) == nullptr )
166 return false;
167 if( ( pODBC3SQLExecDirect = reinterpret_cast<T3SQLExecDirect>(osl_getFunctionSymbol(pODBCso, OUString("SQLExecDirect").pData ))) == nullptr )
168 return false;
169 if( ( pODBC3SQLDescribeParam = reinterpret_cast<T3SQLDescribeParam>(osl_getFunctionSymbol(pODBCso, OUString("SQLDescribeParam").pData ))) == nullptr )
170 return false;
171 if( ( pODBC3SQLNumParams = reinterpret_cast<T3SQLNumParams>(osl_getFunctionSymbol(pODBCso, OUString("SQLNumParams").pData ))) == nullptr )
172 return false;
173 if( ( pODBC3SQLParamData = reinterpret_cast<T3SQLParamData>(osl_getFunctionSymbol(pODBCso, OUString("SQLParamData").pData ))) == nullptr )
174 return false;
175 if( ( pODBC3SQLPutData = reinterpret_cast<T3SQLPutData>(osl_getFunctionSymbol(pODBCso, OUString("SQLPutData").pData ))) == nullptr )
176 return false;
177 if( ( pODBC3SQLRowCount = reinterpret_cast<T3SQLRowCount>(osl_getFunctionSymbol(pODBCso, OUString("SQLRowCount").pData ))) == nullptr )
178 return false;
179 if( ( pODBC3SQLNumResultCols = reinterpret_cast<T3SQLNumResultCols>(osl_getFunctionSymbol(pODBCso, OUString("SQLNumResultCols").pData ))) == nullptr )
180 return false;
181 if( ( pODBC3SQLDescribeCol = reinterpret_cast<T3SQLDescribeCol>(osl_getFunctionSymbol(pODBCso, OUString("SQLDescribeCol").pData ))) == nullptr )
182 return false;
183 if( ( pODBC3SQLColAttribute = reinterpret_cast<T3SQLColAttribute>(osl_getFunctionSymbol(pODBCso, OUString("SQLColAttribute").pData ))) == nullptr )
184 return false;
185 if( ( pODBC3SQLBindCol = reinterpret_cast<T3SQLBindCol>(osl_getFunctionSymbol(pODBCso, OUString("SQLBindCol").pData ))) == nullptr )
186 return false;
187 if( ( pODBC3SQLFetch = reinterpret_cast<T3SQLFetch>(osl_getFunctionSymbol(pODBCso, OUString("SQLFetch").pData ))) == nullptr )
188 return false;
189 if( ( pODBC3SQLFetchScroll = reinterpret_cast<T3SQLFetchScroll>(osl_getFunctionSymbol(pODBCso, OUString("SQLFetchScroll").pData ))) == nullptr )
190 return false;
191 if( ( pODBC3SQLGetData = reinterpret_cast<T3SQLGetData>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetData").pData ))) == nullptr )
192 return false;
193 if( ( pODBC3SQLSetPos = reinterpret_cast<T3SQLSetPos>(osl_getFunctionSymbol(pODBCso, OUString("SQLSetPos").pData ))) == nullptr )
194 return false;
195 if( ( pODBC3SQLBulkOperations = reinterpret_cast<T3SQLBulkOperations>(osl_getFunctionSymbol(pODBCso, OUString("SQLBulkOperations").pData ))) == nullptr )
196 return false;
197 if( ( pODBC3SQLMoreResults = reinterpret_cast<T3SQLMoreResults>(osl_getFunctionSymbol(pODBCso, OUString("SQLMoreResults").pData ))) == nullptr )
198 return false;
199 if( ( pODBC3SQLGetDiagRec = reinterpret_cast<T3SQLGetDiagRec>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetDiagRec").pData ))) == nullptr )
200 return false;
201 if( ( pODBC3SQLColumnPrivileges = reinterpret_cast<T3SQLColumnPrivileges>(osl_getFunctionSymbol(pODBCso, OUString("SQLColumnPrivileges").pData ))) == nullptr )
202 return false;
203 if( ( pODBC3SQLColumns = reinterpret_cast<T3SQLColumns>(osl_getFunctionSymbol(pODBCso, OUString("SQLColumns").pData ))) == nullptr )
204 return false;
205 if( ( pODBC3SQLForeignKeys = reinterpret_cast<T3SQLForeignKeys>(osl_getFunctionSymbol(pODBCso, OUString("SQLForeignKeys").pData ))) == nullptr )
206 return false;
207 if( ( pODBC3SQLPrimaryKeys = reinterpret_cast<T3SQLPrimaryKeys>(osl_getFunctionSymbol(pODBCso, OUString("SQLPrimaryKeys").pData ))) == nullptr )
208 return false;
209 if( ( pODBC3SQLProcedureColumns = reinterpret_cast<T3SQLProcedureColumns>(osl_getFunctionSymbol(pODBCso, OUString("SQLProcedureColumns").pData ))) == nullptr )
210 return false;
211 if( ( pODBC3SQLProcedures = reinterpret_cast<T3SQLProcedures>(osl_getFunctionSymbol(pODBCso, OUString("SQLProcedures").pData ))) == nullptr )
212 return false;
213 if( ( pODBC3SQLSpecialColumns = reinterpret_cast<T3SQLSpecialColumns>(osl_getFunctionSymbol(pODBCso, OUString("SQLSpecialColumns").pData ))) == nullptr )
214 return false;
215 if( ( pODBC3SQLStatistics = reinterpret_cast<T3SQLStatistics>(osl_getFunctionSymbol(pODBCso, OUString("SQLStatistics").pData ))) == nullptr )
216 return false;
217 if( ( pODBC3SQLTablePrivileges = reinterpret_cast<T3SQLTablePrivileges>(osl_getFunctionSymbol(pODBCso, OUString("SQLTablePrivileges").pData ))) == nullptr )
218 return false;
219 if( ( pODBC3SQLTables = reinterpret_cast<T3SQLTables>(osl_getFunctionSymbol(pODBCso, OUString("SQLTables").pData ))) == nullptr )
220 return false;
221 if( ( pODBC3SQLFreeStmt = reinterpret_cast<T3SQLFreeStmt>(osl_getFunctionSymbol(pODBCso, OUString("SQLFreeStmt").pData ))) == nullptr )
222 return false;
223 if( ( pODBC3SQLCloseCursor = reinterpret_cast<T3SQLCloseCursor>(osl_getFunctionSymbol(pODBCso, OUString("SQLCloseCursor").pData ))) == nullptr )
224 return false;
225 if( ( pODBC3SQLCancel = reinterpret_cast<T3SQLCancel>(osl_getFunctionSymbol(pODBCso, OUString("SQLCancel").pData ))) == nullptr )
226 return false;
227 if( ( pODBC3SQLEndTran = reinterpret_cast<T3SQLEndTran>(osl_getFunctionSymbol(pODBCso, OUString("SQLEndTran").pData ))) == nullptr )
228 return false;
229 if( ( pODBC3SQLDisconnect = reinterpret_cast<T3SQLDisconnect>(osl_getFunctionSymbol(pODBCso, OUString("SQLDisconnect").pData ))) == nullptr )
230 return false;
231 if( ( pODBC3SQLFreeHandle = reinterpret_cast<T3SQLFreeHandle>(osl_getFunctionSymbol(pODBCso, OUString("SQLFreeHandle").pData ))) == nullptr )
232 return false;
233 if( ( pODBC3SQLGetCursorName = reinterpret_cast<T3SQLGetCursorName>(osl_getFunctionSymbol(pODBCso, OUString("SQLGetCursorName").pData ))) == nullptr )
234 return false;
235 if( ( pODBC3SQLNativeSql = reinterpret_cast<T3SQLNativeSql>(osl_getFunctionSymbol(pODBCso, OUString("SQLNativeSql").pData ))) == nullptr )
236 return false;
237
238 return true;
239}
240
241
242}
243
244
245/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< sal_Int32[]> pData
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
static bool LoadFunctions(oslModule pODBCso)
Definition: OFunctions.cxx:126
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