From 55dac4ff40be49dd256e6d3e4b080613259d337b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 11 Jul 2014 20:21:39 +0100 Subject: coverity#706364 Uncaught exception Change-Id: I4a6f7a2aa76d2a998bb6392de35fa1d25c85b3ce --- connectivity/source/drivers/odbc/OPreparedStatement.cxx | 6 +----- connectivity/source/inc/odbc/OPreparedStatement.hxx | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/odbc/OPreparedStatement.cxx b/connectivity/source/drivers/odbc/OPreparedStatement.cxx index 686c40f4023b..cf737a0d6637 100644 --- a/connectivity/source/drivers/odbc/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbc/OPreparedStatement.cxx @@ -831,18 +831,14 @@ void OPreparedStatement::putParamData (sal_Int32 index) } } - - // setStream // Sets an input stream as a parameter, using the given SQL type - - void OPreparedStatement::setStream( sal_Int32 ParameterIndex, const Reference< XInputStream>& x, SQLLEN length, sal_Int32 _nType) - throw(SQLException) + throw (SQLException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/inc/odbc/OPreparedStatement.hxx b/connectivity/source/inc/odbc/OPreparedStatement.hxx index 7f3adeda8e1b..59968836c6d3 100644 --- a/connectivity/source/inc/odbc/OPreparedStatement.hxx +++ b/connectivity/source/inc/odbc/OPreparedStatement.hxx @@ -75,7 +75,7 @@ namespace connectivity void putParamData (sal_Int32 index) throw (css::sdbc::SQLException, css::uno::RuntimeException); void setStream (sal_Int32 ParameterIndex,const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream>& x, - SQLLEN length,sal_Int32 SQLtype) throw(::com::sun::star::sdbc::SQLException); + SQLLEN length,sal_Int32 SQLtype) throw (css::sdbc::SQLException, css::uno::RuntimeException); SQLLEN* getLengthBuf (sal_Int32 index); void* allocBindBuf ( sal_Int32 index, sal_Int32 bufLen); void initBoundParam () throw(::com::sun::star::sdbc::SQLException); -- cgit