diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 09:28:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 09:46:31 +0100 |
commit | 067738943acaa97aa2a920167f9713630819553b (patch) | |
tree | ab9ec04c745f5074f639487a186f03aba3e4489f /connectivity | |
parent | 287ad2adeb288ecff47fdae63dab3ee04eb7bd1c (diff) |
coverity#706364 Uncaught exception
Change-Id: I75cd82d55d8bdf2f111cd0a91f056e1956ddad02
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OPreparedStatement.cxx | 5 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/OPreparedStatement.hxx | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OPreparedStatement.cxx b/connectivity/source/drivers/odbc/OPreparedStatement.cxx index ba402bb3c6ec..686c40f4023b 100644 --- a/connectivity/source/drivers/odbc/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbc/OPreparedStatement.cxx @@ -769,9 +769,8 @@ SQLLEN* OPreparedStatement::getLengthBuf (sal_Int32 index) // putParamData // Puts parameter data from a previously bound input stream. The // input stream was bound using SQL_LEN_DATA_AT_EXEC. - - -void OPreparedStatement::putParamData (sal_Int32 index) throw(SQLException) +void OPreparedStatement::putParamData (sal_Int32 index) + throw (SQLException, RuntimeException) { // Sanity check the parameter index if ((index < 1) || diff --git a/connectivity/source/inc/odbc/OPreparedStatement.hxx b/connectivity/source/inc/odbc/OPreparedStatement.hxx index 3f229838f201..7f3adeda8e1b 100644 --- a/connectivity/source/inc/odbc/OPreparedStatement.hxx +++ b/connectivity/source/inc/odbc/OPreparedStatement.hxx @@ -72,7 +72,8 @@ namespace connectivity bool m_bPrepared; void FreeParams(); - void putParamData (sal_Int32 index) throw(::com::sun::star::sdbc::SQLException); + 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* getLengthBuf (sal_Int32 index); |