1*9b5730f6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9b5730f6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9b5730f6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9b5730f6SAndrew Rist * distributed with this work for additional information 6*9b5730f6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9b5730f6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9b5730f6SAndrew Rist * "License"); you may not use this file except in compliance 9*9b5730f6SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*9b5730f6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*9b5730f6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9b5730f6SAndrew Rist * software distributed under the License is distributed on an 15*9b5730f6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9b5730f6SAndrew Rist * KIND, either express or implied. See the License for the 17*9b5730f6SAndrew Rist * specific language governing permissions and limitations 18*9b5730f6SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*9b5730f6SAndrew Rist *************************************************************/ 21*9b5730f6SAndrew Rist 22*9b5730f6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_connectivity.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir //-------------------------------------------------------------------------- 28cdf0e10cSrcweir #include "odbc/OFunctions.hxx" 29cdf0e10cSrcweir #include <osl/process.h> 30cdf0e10cSrcweir 31cdf0e10cSrcweir // Implib-Definitionen fuer ODBC-DLL/shared library: 32cdf0e10cSrcweir 33cdf0e10cSrcweir namespace connectivity 34cdf0e10cSrcweir { 35cdf0e10cSrcweir T3SQLAllocHandle pODBC3SQLAllocHandle; 36cdf0e10cSrcweir T3SQLConnect pODBC3SQLConnect; 37cdf0e10cSrcweir T3SQLDriverConnect pODBC3SQLDriverConnect; 38cdf0e10cSrcweir T3SQLBrowseConnect pODBC3SQLBrowseConnect; 39cdf0e10cSrcweir T3SQLDataSources pODBC3SQLDataSources; 40cdf0e10cSrcweir T3SQLDrivers pODBC3SQLDrivers; 41cdf0e10cSrcweir T3SQLGetInfo pODBC3SQLGetInfo; 42cdf0e10cSrcweir T3SQLGetFunctions pODBC3SQLGetFunctions; 43cdf0e10cSrcweir T3SQLGetTypeInfo pODBC3SQLGetTypeInfo; 44cdf0e10cSrcweir T3SQLSetConnectAttr pODBC3SQLSetConnectAttr; 45cdf0e10cSrcweir T3SQLGetConnectAttr pODBC3SQLGetConnectAttr; 46cdf0e10cSrcweir T3SQLSetEnvAttr pODBC3SQLSetEnvAttr; 47cdf0e10cSrcweir T3SQLGetEnvAttr pODBC3SQLGetEnvAttr; 48cdf0e10cSrcweir T3SQLSetStmtAttr pODBC3SQLSetStmtAttr; 49cdf0e10cSrcweir T3SQLGetStmtAttr pODBC3SQLGetStmtAttr; 50cdf0e10cSrcweir //T3SQLSetDescField pODBC3SQLSetDescField; 51cdf0e10cSrcweir //T3SQLGetDescField pODBC3SQLGetDescField; 52cdf0e10cSrcweir //T3SQLGetDescRec pODBC3SQLGetDescRec; 53cdf0e10cSrcweir //T3SQLSetDescRec pODBC3SQLSetDescRec; 54cdf0e10cSrcweir T3SQLPrepare pODBC3SQLPrepare; 55cdf0e10cSrcweir T3SQLBindParameter pODBC3SQLBindParameter; 56cdf0e10cSrcweir //T3SQLGetCursorName pODBC3SQLGetCursorName; 57cdf0e10cSrcweir T3SQLSetCursorName pODBC3SQLSetCursorName; 58cdf0e10cSrcweir T3SQLExecute pODBC3SQLExecute; 59cdf0e10cSrcweir T3SQLExecDirect pODBC3SQLExecDirect; 60cdf0e10cSrcweir //T3SQLNativeSql pODBC3SQLNativeSql; 61cdf0e10cSrcweir T3SQLDescribeParam pODBC3SQLDescribeParam; 62cdf0e10cSrcweir T3SQLNumParams pODBC3SQLNumParams; 63cdf0e10cSrcweir T3SQLParamData pODBC3SQLParamData; 64cdf0e10cSrcweir T3SQLPutData pODBC3SQLPutData; 65cdf0e10cSrcweir T3SQLRowCount pODBC3SQLRowCount; 66cdf0e10cSrcweir T3SQLNumResultCols pODBC3SQLNumResultCols; 67cdf0e10cSrcweir T3SQLDescribeCol pODBC3SQLDescribeCol; 68cdf0e10cSrcweir T3SQLColAttribute pODBC3SQLColAttribute; 69cdf0e10cSrcweir T3SQLBindCol pODBC3SQLBindCol; 70cdf0e10cSrcweir T3SQLFetch pODBC3SQLFetch; 71cdf0e10cSrcweir T3SQLFetchScroll pODBC3SQLFetchScroll; 72cdf0e10cSrcweir T3SQLGetData pODBC3SQLGetData; 73cdf0e10cSrcweir T3SQLSetPos pODBC3SQLSetPos; 74cdf0e10cSrcweir T3SQLBulkOperations pODBC3SQLBulkOperations; 75cdf0e10cSrcweir T3SQLMoreResults pODBC3SQLMoreResults; 76cdf0e10cSrcweir //T3SQLGetDiagField pODBC3SQLGetDiagField; 77cdf0e10cSrcweir T3SQLGetDiagRec pODBC3SQLGetDiagRec; 78cdf0e10cSrcweir T3SQLColumnPrivileges pODBC3SQLColumnPrivileges; 79cdf0e10cSrcweir T3SQLColumns pODBC3SQLColumns; 80cdf0e10cSrcweir T3SQLForeignKeys pODBC3SQLForeignKeys; 81cdf0e10cSrcweir T3SQLPrimaryKeys pODBC3SQLPrimaryKeys; 82cdf0e10cSrcweir T3SQLProcedureColumns pODBC3SQLProcedureColumns; 83cdf0e10cSrcweir T3SQLProcedures pODBC3SQLProcedures; 84cdf0e10cSrcweir T3SQLSpecialColumns pODBC3SQLSpecialColumns; 85cdf0e10cSrcweir T3SQLStatistics pODBC3SQLStatistics; 86cdf0e10cSrcweir T3SQLTablePrivileges pODBC3SQLTablePrivileges; 87cdf0e10cSrcweir T3SQLTables pODBC3SQLTables; 88cdf0e10cSrcweir T3SQLFreeStmt pODBC3SQLFreeStmt; 89cdf0e10cSrcweir T3SQLCloseCursor pODBC3SQLCloseCursor; 90cdf0e10cSrcweir T3SQLCancel pODBC3SQLCancel; 91cdf0e10cSrcweir T3SQLEndTran pODBC3SQLEndTran; 92cdf0e10cSrcweir T3SQLDisconnect pODBC3SQLDisconnect; 93cdf0e10cSrcweir T3SQLFreeHandle pODBC3SQLFreeHandle; 94cdf0e10cSrcweir T3SQLGetCursorName pODBC3SQLGetCursorName; 95cdf0e10cSrcweir T3SQLNativeSql pODBC3SQLNativeSql; 96cdf0e10cSrcweir 97cdf0e10cSrcweir sal_Bool LoadFunctions(oslModule pODBCso); 98cdf0e10cSrcweir // ------------------------------------------------------------------------- 99cdf0e10cSrcweir // Dynamisches Laden der DLL/shared lib und Adressen der Funktionen besorgen: 100cdf0e10cSrcweir // Liefert sal_True bei Erfolg. 101cdf0e10cSrcweir sal_Bool LoadLibrary_ODBC3(::rtl::OUString &_rPath) 102cdf0e10cSrcweir { 103cdf0e10cSrcweir static sal_Bool bLoaded = sal_False; 104cdf0e10cSrcweir static oslModule pODBCso = NULL; 105cdf0e10cSrcweir 106cdf0e10cSrcweir if (bLoaded) 107cdf0e10cSrcweir return sal_True; 108cdf0e10cSrcweir #ifdef WNT 109cdf0e10cSrcweir _rPath = ::rtl::OUString::createFromAscii("ODBC32.DLL"); 110cdf0e10cSrcweir #endif 111cdf0e10cSrcweir #ifdef UNX 112cdf0e10cSrcweir #ifdef MACOSX 113cdf0e10cSrcweir _rPath = ::rtl::OUString::createFromAscii("libiodbc.dylib"); 114cdf0e10cSrcweir #else 115cdf0e10cSrcweir _rPath = ::rtl::OUString::createFromAscii("libodbc.so.1"); 116cdf0e10cSrcweir pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW ); 117cdf0e10cSrcweir if ( !pODBCso ) 118cdf0e10cSrcweir _rPath = ::rtl::OUString::createFromAscii("libodbc.so"); 119cdf0e10cSrcweir #endif /* MACOSX */ 120cdf0e10cSrcweir #endif 121cdf0e10cSrcweir #ifdef OS2 122cdf0e10cSrcweir _rPath = ::rtl::OUString::createFromAscii("ODBC"); 123cdf0e10cSrcweir #endif 124cdf0e10cSrcweir 125cdf0e10cSrcweir if ( !pODBCso ) 126cdf0e10cSrcweir pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW ); 127cdf0e10cSrcweir if( !pODBCso) 128cdf0e10cSrcweir #ifdef OS2 129cdf0e10cSrcweir { 130cdf0e10cSrcweir delete pODBCso; 131cdf0e10cSrcweir _rPath = ::rtl::OUString::createFromAscii("WOD402"); 132cdf0e10cSrcweir pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW ); 133cdf0e10cSrcweir if( !pODBCso) 134cdf0e10cSrcweir return sal_False; 135cdf0e10cSrcweir } 136cdf0e10cSrcweir #else 137cdf0e10cSrcweir return sal_False; 138cdf0e10cSrcweir #endif 139cdf0e10cSrcweir 140cdf0e10cSrcweir return bLoaded = LoadFunctions(pODBCso); 141cdf0e10cSrcweir } 142cdf0e10cSrcweir // ------------------------------------------------------------------------- 143cdf0e10cSrcweir 144cdf0e10cSrcweir sal_Bool LoadFunctions(oslModule pODBCso) 145cdf0e10cSrcweir { 146cdf0e10cSrcweir 147cdf0e10cSrcweir if( ( pODBC3SQLAllocHandle = (T3SQLAllocHandle)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLAllocHandle").pData )) == NULL ) 148cdf0e10cSrcweir return sal_False; 149cdf0e10cSrcweir if( ( pODBC3SQLConnect = (T3SQLConnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLConnect").pData )) == NULL ) 150cdf0e10cSrcweir return sal_False; 151cdf0e10cSrcweir if( ( pODBC3SQLDriverConnect = (T3SQLDriverConnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDriverConnect").pData )) == NULL ) 152cdf0e10cSrcweir return sal_False; 153cdf0e10cSrcweir if( ( pODBC3SQLBrowseConnect = (T3SQLBrowseConnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBrowseConnect").pData )) == NULL ) 154cdf0e10cSrcweir return sal_False; 155cdf0e10cSrcweir if(( pODBC3SQLDataSources = (T3SQLDataSources)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDataSources").pData )) == NULL ) 156cdf0e10cSrcweir return sal_False; 157cdf0e10cSrcweir if(( pODBC3SQLDrivers = (T3SQLDrivers)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDrivers").pData )) == NULL ) 158cdf0e10cSrcweir return sal_False; 159cdf0e10cSrcweir if( ( pODBC3SQLGetInfo = (T3SQLGetInfo)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetInfo").pData )) == NULL ) 160cdf0e10cSrcweir return sal_False; 161cdf0e10cSrcweir if(( pODBC3SQLGetFunctions = (T3SQLGetFunctions)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetFunctions").pData )) == NULL ) 162cdf0e10cSrcweir return sal_False; 163cdf0e10cSrcweir if( ( pODBC3SQLGetTypeInfo = (T3SQLGetTypeInfo)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetTypeInfo").pData )) == NULL ) 164cdf0e10cSrcweir return sal_False; 165cdf0e10cSrcweir if( ( pODBC3SQLSetConnectAttr = (T3SQLSetConnectAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetConnectAttr").pData )) == NULL ) 166cdf0e10cSrcweir return sal_False; 167cdf0e10cSrcweir if( ( pODBC3SQLGetConnectAttr = (T3SQLGetConnectAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetConnectAttr").pData )) == NULL ) 168cdf0e10cSrcweir return sal_False; 169cdf0e10cSrcweir if( ( pODBC3SQLSetEnvAttr = (T3SQLSetEnvAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetEnvAttr").pData )) == NULL ) 170cdf0e10cSrcweir return sal_False; 171cdf0e10cSrcweir if( ( pODBC3SQLGetEnvAttr = (T3SQLGetEnvAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetEnvAttr").pData )) == NULL ) 172cdf0e10cSrcweir return sal_False; 173cdf0e10cSrcweir if( ( pODBC3SQLSetStmtAttr = (T3SQLSetStmtAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetStmtAttr").pData )) == NULL ) 174cdf0e10cSrcweir return sal_False; 175cdf0e10cSrcweir if( ( pODBC3SQLGetStmtAttr = (T3SQLGetStmtAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetStmtAttr").pData )) == NULL ) 176cdf0e10cSrcweir return sal_False; 177cdf0e10cSrcweir /*if( ( pODBC3SQLSetDescField = (T3SQLSetDescField)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetDescField").pData )) == NULL ) 178cdf0e10cSrcweir return sal_False; 179cdf0e10cSrcweir if( ( pODBC3SQLGetDescField = (T3SQLGetDescField)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDescField").pData )) == NULL ) 180cdf0e10cSrcweir return sal_False;*/ 181cdf0e10cSrcweir /*if( ( pODBC3SQLGetDescRec = (T3SQLGetDescRec)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDescRec").pData )) == NULL ) 182cdf0e10cSrcweir return sal_False; 183cdf0e10cSrcweir if( ( pODBC3SQLSetDescRec = (T3SQLSetDescRec)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetDescRec").pData )) == NULL ) 184cdf0e10cSrcweir return sal_False;*/ 185cdf0e10cSrcweir if( ( pODBC3SQLPrepare = (T3SQLPrepare)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLPrepare").pData )) == NULL ) 186cdf0e10cSrcweir return sal_False; 187cdf0e10cSrcweir if( ( pODBC3SQLBindParameter = (T3SQLBindParameter)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBindParameter").pData )) == NULL ) 188cdf0e10cSrcweir return sal_False; 189cdf0e10cSrcweir // if( ( pODBC3SQLGetCursorName = (T3SQLGetCursorName)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetCursorName").pData )) == NULL ) 190cdf0e10cSrcweir // return sal_False; 191cdf0e10cSrcweir if( ( pODBC3SQLSetCursorName = (T3SQLSetCursorName)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetCursorName").pData )) == NULL ) 192cdf0e10cSrcweir return sal_False; 193cdf0e10cSrcweir if( ( pODBC3SQLExecute = (T3SQLExecute)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLExecute").pData )) == NULL ) 194cdf0e10cSrcweir return sal_False; 195cdf0e10cSrcweir if( ( pODBC3SQLExecDirect = (T3SQLExecDirect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLExecDirect").pData )) == NULL ) 196cdf0e10cSrcweir return sal_False; 197cdf0e10cSrcweir /*if( ( pODBC3SQLNativeSql = (T3SQLNativeSql)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNativeSql").pData )) == NULL ) 198cdf0e10cSrcweir return sal_False;*/ 199cdf0e10cSrcweir if( ( pODBC3SQLDescribeParam = (T3SQLDescribeParam)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDescribeParam").pData )) == NULL ) 200cdf0e10cSrcweir return sal_False; 201cdf0e10cSrcweir if( ( pODBC3SQLNumParams = (T3SQLNumParams)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNumParams").pData )) == NULL ) 202cdf0e10cSrcweir return sal_False; 203cdf0e10cSrcweir if( ( pODBC3SQLParamData = (T3SQLParamData)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLParamData").pData )) == NULL ) 204cdf0e10cSrcweir return sal_False; 205cdf0e10cSrcweir if( ( pODBC3SQLPutData = (T3SQLPutData)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLPutData").pData )) == NULL ) 206cdf0e10cSrcweir return sal_False; 207cdf0e10cSrcweir if( ( pODBC3SQLRowCount = (T3SQLRowCount)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLRowCount").pData )) == NULL ) 208cdf0e10cSrcweir return sal_False; 209cdf0e10cSrcweir if( ( pODBC3SQLNumResultCols = (T3SQLNumResultCols)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNumResultCols").pData )) == NULL ) 210cdf0e10cSrcweir return sal_False; 211cdf0e10cSrcweir if( ( pODBC3SQLDescribeCol = (T3SQLDescribeCol)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDescribeCol").pData )) == NULL ) 212cdf0e10cSrcweir return sal_False; 213cdf0e10cSrcweir if( ( pODBC3SQLColAttribute = (T3SQLColAttribute)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLColAttribute").pData )) == NULL ) 214cdf0e10cSrcweir return sal_False; 215cdf0e10cSrcweir if( ( pODBC3SQLBindCol = (T3SQLBindCol)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBindCol").pData )) == NULL ) 216cdf0e10cSrcweir return sal_False; 217cdf0e10cSrcweir if( ( pODBC3SQLFetch = (T3SQLFetch)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFetch").pData )) == NULL ) 218cdf0e10cSrcweir return sal_False; 219cdf0e10cSrcweir if( ( pODBC3SQLFetchScroll = (T3SQLFetchScroll)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFetchScroll").pData )) == NULL ) 220cdf0e10cSrcweir return sal_False; 221cdf0e10cSrcweir if( ( pODBC3SQLGetData = (T3SQLGetData)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetData").pData )) == NULL ) 222cdf0e10cSrcweir return sal_False; 223cdf0e10cSrcweir if( ( pODBC3SQLSetPos = (T3SQLSetPos)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetPos").pData )) == NULL ) 224cdf0e10cSrcweir return sal_False; 225cdf0e10cSrcweir if( ( pODBC3SQLBulkOperations = (T3SQLBulkOperations)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBulkOperations").pData )) == NULL ) 226cdf0e10cSrcweir return sal_False; 227cdf0e10cSrcweir if( ( pODBC3SQLMoreResults = (T3SQLMoreResults)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLMoreResults").pData )) == NULL ) 228cdf0e10cSrcweir return sal_False; 229cdf0e10cSrcweir /*if( ( pODBC3SQLGetDiagField = (T3SQLGetDiagField)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDiagField").pData )) == NULL ) 230cdf0e10cSrcweir return sal_False;*/ 231cdf0e10cSrcweir if( ( pODBC3SQLGetDiagRec = (T3SQLGetDiagRec)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDiagRec").pData )) == NULL ) 232cdf0e10cSrcweir return sal_False; 233cdf0e10cSrcweir if( ( pODBC3SQLColumnPrivileges = (T3SQLColumnPrivileges)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLColumnPrivileges").pData )) == NULL ) 234cdf0e10cSrcweir return sal_False; 235cdf0e10cSrcweir if( ( pODBC3SQLColumns = (T3SQLColumns)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLColumns").pData )) == NULL ) 236cdf0e10cSrcweir return sal_False; 237cdf0e10cSrcweir if( ( pODBC3SQLForeignKeys = (T3SQLForeignKeys)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLForeignKeys").pData )) == NULL ) 238cdf0e10cSrcweir return sal_False; 239cdf0e10cSrcweir if( ( pODBC3SQLPrimaryKeys = (T3SQLPrimaryKeys)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLPrimaryKeys").pData )) == NULL ) 240cdf0e10cSrcweir return sal_False; 241cdf0e10cSrcweir if( ( pODBC3SQLProcedureColumns = (T3SQLProcedureColumns)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLProcedureColumns").pData )) == NULL ) 242cdf0e10cSrcweir return sal_False; 243cdf0e10cSrcweir if( ( pODBC3SQLProcedures = (T3SQLProcedures)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLProcedures").pData )) == NULL ) 244cdf0e10cSrcweir return sal_False; 245cdf0e10cSrcweir if( ( pODBC3SQLSpecialColumns = (T3SQLSpecialColumns)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSpecialColumns").pData )) == NULL ) 246cdf0e10cSrcweir return sal_False; 247cdf0e10cSrcweir if( ( pODBC3SQLStatistics = (T3SQLStatistics)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLStatistics").pData )) == NULL ) 248cdf0e10cSrcweir return sal_False; 249cdf0e10cSrcweir if( ( pODBC3SQLTablePrivileges = (T3SQLTablePrivileges)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLTablePrivileges").pData )) == NULL ) 250cdf0e10cSrcweir return sal_False; 251cdf0e10cSrcweir if( ( pODBC3SQLTables = (T3SQLTables)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLTables").pData )) == NULL ) 252cdf0e10cSrcweir return sal_False; 253cdf0e10cSrcweir if( ( pODBC3SQLFreeStmt = (T3SQLFreeStmt)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFreeStmt").pData )) == NULL ) 254cdf0e10cSrcweir return sal_False; 255cdf0e10cSrcweir if( ( pODBC3SQLCloseCursor = (T3SQLCloseCursor)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLCloseCursor").pData )) == NULL ) 256cdf0e10cSrcweir return sal_False; 257cdf0e10cSrcweir if( ( pODBC3SQLCancel = (T3SQLCancel)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLCancel").pData )) == NULL ) 258cdf0e10cSrcweir return sal_False; 259cdf0e10cSrcweir if( ( pODBC3SQLEndTran = (T3SQLEndTran)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLEndTran").pData )) == NULL ) 260cdf0e10cSrcweir return sal_False; 261cdf0e10cSrcweir if( ( pODBC3SQLDisconnect = (T3SQLDisconnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDisconnect").pData )) == NULL ) 262cdf0e10cSrcweir return sal_False; 263cdf0e10cSrcweir if( ( pODBC3SQLFreeHandle = (T3SQLFreeHandle)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFreeHandle").pData )) == NULL ) 264cdf0e10cSrcweir return sal_False; 265cdf0e10cSrcweir if( ( pODBC3SQLGetCursorName = (T3SQLGetCursorName)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetCursorName").pData )) == NULL ) 266cdf0e10cSrcweir return sal_False; 267cdf0e10cSrcweir if( ( pODBC3SQLNativeSql = (T3SQLNativeSql)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNativeSql").pData )) == NULL ) 268cdf0e10cSrcweir return sal_False; 269cdf0e10cSrcweir 270cdf0e10cSrcweir return sal_True; 271cdf0e10cSrcweir } 272cdf0e10cSrcweir // ------------------------------------------------------------------------- 273cdf0e10cSrcweir 274cdf0e10cSrcweir } 275cdf0e10cSrcweir 276cdf0e10cSrcweir 277cdf0e10cSrcweir 278