87 static bool bLoaded =
false;
88 static oslModule pODBCso =
nullptr;
92#ifdef DISABLE_DYNLOADING
96 _rPath =
"ODBC32.DLL";
100 _rPath =
"libiodbc.dylib";
102 _rPath =
"libodbc.so.2";
103 pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
106 _rPath =
"libodbc.so.1";
107 pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
110 _rPath =
"libodbc.so";
116 pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
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)
T3SQLSetEnvAttr pODBC3SQLSetEnvAttr
T3SQLCloseCursor pODBC3SQLCloseCursor
T3SQLRowCount pODBC3SQLRowCount
T3SQLAllocHandle pODBC3SQLAllocHandle
SQLRETURN(SQL_API * T3SQLGetConnectAttr)(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
SQLRETURN(SQL_API * T3SQLExecDirect)(SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
SQLRETURN(SQL_API * T3SQLFetchScroll)(SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLLEN FetchOffset)
SQLRETURN(SQL_API * T3SQLPrepare)(SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
T3SQLDescribeCol pODBC3SQLDescribeCol
SQLRETURN(SQL_API * T3SQLTablePrivileges)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3)
SQLRETURN(SQL_API * T3SQLAllocHandle)(SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandlePtr)
T3SQLColumnPrivileges pODBC3SQLColumnPrivileges
T3SQLBulkOperations pODBC3SQLBulkOperations
T3SQLParamData pODBC3SQLParamData
T3SQLPrepare pODBC3SQLPrepare
T3SQLSetConnectAttr pODBC3SQLSetConnectAttr
SQLRETURN(SQL_API * T3SQLFetch)(SQLHSTMT StatementHandle)
SQLRETURN(SQL_API * T3SQLGetTypeInfo)(SQLHSTMT StatementHandle, SQLSMALLINT DataType)
SQLRETURN(SQL_API * T3SQLStatistics)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
SQLRETURN(SQL_API * T3SQLSetEnvAttr)(SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER StringLength)
SQLRETURN(SQL_API * T3SQLConnect)(SQLHDBC ConnectionHandle, SQLCHAR *ServerName, SQLSMALLINT NameLength1, SQLCHAR *UserName, SQLSMALLINT NameLength2, SQLCHAR *Authentication, SQLSMALLINT NameLength3)
SQLRETURN(SQL_API * T3SQLDescribeParam)(SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT *DataTypePtr, SQLULEN *ParameterSizePtr, SQLSMALLINT *DecimalDigitsPtr, SQLSMALLINT *NullablePtr)
T3SQLExecDirect pODBC3SQLExecDirect
SQLRETURN(SQL_API * T3SQLProcedureColumns)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *ProcName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
SQLRETURN(SQL_API * T3SQLRowCount)(SQLHSTMT StatementHandle, SQLLEN *RowCountPtr)
SQLRETURN(SQL_API * T3SQLBrowseConnect)(SQLHDBC ConnectionHandle, SQLCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr)
T3SQLForeignKeys pODBC3SQLForeignKeys
SQLRETURN(SQL_API * T3SQLGetDiagRec)(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLCHAR *Sqlstate, SQLINTEGER *NativeErrorPtr, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLengthPtr)
SQLRETURN(SQL_API * T3SQLProcedures)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *ProcName, SQLSMALLINT NameLength3)
static bool LoadFunctions(oslModule pODBCso)
T3SQLGetEnvAttr pODBC3SQLGetEnvAttr
T3SQLConnect pODBC3SQLConnect
T3SQLEndTran pODBC3SQLEndTran
SQLRETURN(SQL_API * T3SQLNativeSql)(SQLHDBC ConnectionHandle, SQLCHAR *InStatementText, SQLINTEGER TextLength1, SQLCHAR *OutStatementText, SQLINTEGER BufferLength, SQLINTEGER *TextLength2Ptr)
SQLRETURN(SQL_API * T3SQLGetData)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValuePtr, SQLLEN BufferLength, SQLLEN *StrLen_or_IndPtr)
SQLRETURN(SQL_API * T3SQLPrimaryKeys)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3)
SQLRETURN(SQL_API * T3SQLNumParams)(SQLHSTMT StatementHandle, SQLSMALLINT *ParameterCountPtr)
T3SQLSetStmtAttr pODBC3SQLSetStmtAttr
T3SQLColumns pODBC3SQLColumns
bool LoadLibrary_ODBC3(OUString &_rPath)
SQLRETURN(SQL_API * T3SQLDataSources)(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *ServerName, SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1Ptr, SQLCHAR *Description, SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2Ptr)
T3SQLPrimaryKeys pODBC3SQLPrimaryKeys
T3SQLGetFunctions pODBC3SQLGetFunctions
SQLRETURN(SQL_API * T3SQLDisconnect)(SQLHDBC ConnectionHandle)
SQLRETURN(SQL_API * T3SQLCancel)(SQLHSTMT StatementHandle)
SQLRETURN(SQL_API * T3SQLColumnPrivileges)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
T3SQLNativeSql pODBC3SQLNativeSql
SQLRETURN(SQL_API * T3SQLBindCol)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValuePtr, SQLLEN BufferLength, SQLLEN *StrLen_or_IndPtr)
T3SQLProcedures pODBC3SQLProcedures
SQLRETURN(SQL_API * T3SQLColAttribute)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttributePtr, SQLSMALLINT BufferLength, SQLSMALLINT *StringLengthPtr, SQLLEN *NumericAttributePtr)
T3SQLNumResultCols pODBC3SQLNumResultCols
SQLRETURN(SQL_API * T3SQLBulkOperations)(SQLHSTMT StatementHandle, SQLSMALLINT Operation)
T3SQLGetInfo pODBC3SQLGetInfo
SQLRETURN(SQL_API * T3SQLSetCursorName)(SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT NameLength)
T3SQLColAttribute pODBC3SQLColAttribute
SQLRETURN(SQL_API * T3SQLParamData)(SQLHSTMT StatementHandle, SQLPOINTER *ValuePtrPtr)
T3SQLNumParams pODBC3SQLNumParams
SQLRETURN(SQL_API * T3SQLSetPos)(SQLHSTMT StatementHandle, SQLSETPOSIROW RowNumber, SQLUSMALLINT Operation, SQLUSMALLINT LockType)
T3SQLBindCol pODBC3SQLBindCol
T3SQLPutData pODBC3SQLPutData
T3SQLBindParameter pODBC3SQLBindParameter
T3SQLStatistics pODBC3SQLStatistics
T3SQLMoreResults pODBC3SQLMoreResults
SQLRETURN(SQL_API * T3SQLDrivers)(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *DriverDescription, SQLSMALLINT BufferLength1, SQLSMALLINT *DescriptionLengthPtr, SQLCHAR *DriverAttributes, SQLSMALLINT BufferLength2, SQLSMALLINT *AttributesLengthPtr)
SQLRETURN(SQL_API * T3SQLCloseCursor)(SQLHSTMT StatementHandle)
T3SQLProcedureColumns pODBC3SQLProcedureColumns
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)
SQLRETURN(SQL_API * T3SQLExecute)(SQLHSTMT StatementHandle)
T3SQLCancel pODBC3SQLCancel
T3SQLSetPos pODBC3SQLSetPos
SQLRETURN(SQL_API * T3SQLGetEnvAttr)(SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
T3SQLFetch pODBC3SQLFetch
T3SQLExecute pODBC3SQLExecute
SQLRETURN(SQL_API * T3SQLEndTran)(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT CompletionType)
T3SQLFreeStmt pODBC3SQLFreeStmt
T3SQLBrowseConnect pODBC3SQLBrowseConnect
T3SQLGetDiagRec pODBC3SQLGetDiagRec
SQLRETURN(SQL_API * T3SQLFreeHandle)(SQLSMALLINT HandleType, SQLHANDLE Handle)
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)
T3SQLGetConnectAttr pODBC3SQLGetConnectAttr
SQLRETURN(SQL_API * T3SQLSpecialColumns)(SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Scope, SQLUSMALLINT Nullable)
T3SQLDescribeParam pODBC3SQLDescribeParam
T3SQLGetCursorName pODBC3SQLGetCursorName
SQLRETURN(SQL_API * T3SQLGetInfo)(SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValuePtr, SQLSMALLINT BufferLength, SQLSMALLINT *StringLengthPtr)
SQLRETURN(SQL_API * T3SQLColumns)(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
SQLRETURN(SQL_API * T3SQLDescribeCol)(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLCHAR *ColumnName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLengthPtr, SQLSMALLINT *DataTypePtr, SQLULEN *ColumnSizePtr, SQLSMALLINT *DecimalDigitsPtr, SQLSMALLINT *NullablePtr)
SQLRETURN(SQL_API * T3SQLFreeStmt)(SQLHSTMT StatementHandle, SQLUSMALLINT Option)
T3SQLSpecialColumns pODBC3SQLSpecialColumns
T3SQLFreeHandle pODBC3SQLFreeHandle
T3SQLSetCursorName pODBC3SQLSetCursorName
T3SQLGetStmtAttr pODBC3SQLGetStmtAttr
T3SQLGetData pODBC3SQLGetData
SQLRETURN(SQL_API * T3SQLSetConnectAttr)(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER StringLength)
T3SQLDisconnect pODBC3SQLDisconnect
T3SQLDriverConnect pODBC3SQLDriverConnect
T3SQLTablePrivileges pODBC3SQLTablePrivileges
SQLRETURN(SQL_API * T3SQLDriverConnect)(SQLHDBC ConnectionHandle, HWND WindowHandle, SQLCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr, SQLUSMALLINT DriverCompletion)
T3SQLGetTypeInfo pODBC3SQLGetTypeInfo
SQLRETURN(SQL_API * T3SQLGetFunctions)(SQLHDBC ConnectionHandle, SQLUSMALLINT FunctionId, SQLUSMALLINT *SupportedPtr)
SQLRETURN(SQL_API * T3SQLPutData)(SQLHSTMT StatementHandle, SQLPOINTER DataPtr, SQLLEN StrLen_or_Ind)
SQLRETURN(SQL_API * T3SQLNumResultCols)(SQLHSTMT StatementHandle, SQLSMALLINT *ColumnCountPtr)
T3SQLFetchScroll pODBC3SQLFetchScroll
T3SQLDataSources pODBC3SQLDataSources
SQLRETURN(SQL_API * T3SQLGetCursorName)(SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength2)
SQLRETURN(SQL_API * T3SQLSetStmtAttr)(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER StringLength)
T3SQLTables pODBC3SQLTables
SQLRETURN(SQL_API * T3SQLMoreResults)(SQLHSTMT StatementHandle)
T3SQLDrivers pODBC3SQLDrivers
SQLRETURN(SQL_API * T3SQLGetStmtAttr)(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER ValuePtr, SQLINTEGER BufferLength, SQLINTEGER *StringLength)