summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-11 20:21:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-13 20:10:49 +0100
commit55dac4ff40be49dd256e6d3e4b080613259d337b (patch)
tree57ac0bec75e1799f242d00bb83b314ebe3f09f3a /connectivity/source
parent136fa5432d5d10743373488de9de39a6198b8690 (diff)
coverity#706364 Uncaught exception
Change-Id: I4a6f7a2aa76d2a998bb6392de35fa1d25c85b3ce
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/odbc/OPreparedStatement.cxx6
-rw-r--r--connectivity/source/inc/odbc/OPreparedStatement.hxx2
2 files changed, 2 insertions, 6 deletions
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);