diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbcbase/OTools.cxx | 20 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/OTools.hxx | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/connectivity/source/drivers/odbcbase/OTools.cxx b/connectivity/source/drivers/odbcbase/OTools.cxx index 90d0791d1cfc..7c2630ec57c8 100644 --- a/connectivity/source/drivers/odbcbase/OTools.cxx +++ b/connectivity/source/drivers/odbcbase/OTools.cxx @@ -290,13 +290,13 @@ void OTools::bindValue( OConnection* _pConnection, OTools::ThrowException(_pConnection,nRetcode,_aStatementHandle,SQL_HANDLE_STMT,_xInterface); } // ----------------------------------------------------------------------------- -void OTools::ThrowException(OConnection* _pConnection, - SQLRETURN _rRetCode, - SQLHANDLE _pContext, - SQLSMALLINT _nHandleType, +void OTools::ThrowException(const OConnection* _pConnection, + const SQLRETURN _rRetCode, + const SQLHANDLE _pContext, + const SQLSMALLINT _nHandleType, const Reference< XInterface >& _xInterface, - sal_Bool _bNoFound, - rtl_TextEncoding _nTextEncoding) throw(SQLException) + const sal_Bool _bNoFound, + const rtl_TextEncoding _nTextEncoding) throw(SQLException) { switch(_rRetCode) { @@ -350,10 +350,10 @@ void OTools::ThrowException(OConnection* _pConnection, } // ------------------------------------------------------------------------- -Sequence<sal_Int8> OTools::getBytesValue(OConnection* _pConnection, - SQLHANDLE _aStatementHandle, - sal_Int32 columnIndex, - SQLSMALLINT _fSqlType, +Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection, + const SQLHANDLE _aStatementHandle, + const sal_Int32 columnIndex, + const SQLSMALLINT _fSqlType, sal_Bool &_bWasNull, const Reference< XInterface >& _xInterface) throw(SQLException, RuntimeException) { diff --git a/connectivity/source/inc/odbc/OTools.hxx b/connectivity/source/inc/odbc/OTools.hxx index a971d4c8edaa..68278d667867 100644 --- a/connectivity/source/inc/odbc/OTools.hxx +++ b/connectivity/source/inc/odbc/OTools.hxx @@ -97,7 +97,7 @@ namespace connectivity class OOO_DLLPUBLIC_ODBCBASE OTools { public: - static void ThrowException( OConnection* _pConnection, + static void ThrowException( const OConnection* _pConnection, SQLRETURN _rRetCode, SQLHANDLE _pContext, SQLSMALLINT _nHandleType, @@ -191,7 +191,7 @@ namespace connectivity const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface, rtl_TextEncoding _nTextEncoding) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); - static ::com::sun::star::uno::Sequence<sal_Int8> getBytesValue(OConnection* _pConnection, + static ::com::sun::star::uno::Sequence<sal_Int8> getBytesValue(const OConnection* _pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, SQLSMALLINT _fSqlType, |