diff options
-rw-r--r-- | connectivity/source/drivers/odbc/OFunctions.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbc/OFunctions.cxx b/connectivity/source/drivers/odbc/OFunctions.cxx index be68fdfcfe56..ae89531763a1 100644 --- a/connectivity/source/drivers/odbc/OFunctions.cxx +++ b/connectivity/source/drivers/odbc/OFunctions.cxx @@ -97,10 +97,16 @@ bool LoadLibrary_ODBC3(OUString &_rPath) #ifdef MACOSX _rPath = "libiodbc.dylib"; #else - _rPath = "libodbc.so.1"; + _rPath = "libodbc.so.2"; pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW ); if ( !pODBCso ) + { + _rPath = "libodbc.so.1"; + pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW ); + } + if ( !pODBCso ) _rPath = "libodbc.so"; + #endif /* MACOSX */ #endif |