diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 09:32:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 09:46:32 +0100 |
commit | 7501ee9d9daf69915385d2ea2c9f54be9bdd78b1 (patch) | |
tree | a23a04c11be3a4f4203f2bbd2b7efd3d2eadd7ee /connectivity | |
parent | 051a8f9577fb133a4356d94965cc76a7a287c2e4 (diff) |
coverity#706373 Uncaught exception
Change-Id: Iee4774dffd43be3fc3eacbcc81f150706625fcad
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OStatement.cxx | 5 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/OStatement.hxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx index 1398efa2ba92..390f2c32939c 100644 --- a/connectivity/source/drivers/odbc/OStatement.cxx +++ b/connectivity/source/drivers/odbc/OStatement.cxx @@ -217,9 +217,8 @@ void OStatement_Base::reset() throw (SQLException) // clearMyResultSet // If a ResultSet was created for this Statement, close it - - -void OStatement_Base::clearMyResultSet () throw (SQLException) +void OStatement_Base::clearMyResultSet() + throw (SQLException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/inc/odbc/OStatement.hxx b/connectivity/source/inc/odbc/OStatement.hxx index 8cfc7601bf40..511b8db6f818 100644 --- a/connectivity/source/inc/odbc/OStatement.hxx +++ b/connectivity/source/inc/odbc/OStatement.hxx @@ -104,7 +104,7 @@ namespace connectivity virtual void setUsingBookmarks(sal_Bool _bUseBookmark) ; void reset () throw( ::com::sun::star::sdbc::SQLException); - void clearMyResultSet () throw( ::com::sun::star::sdbc::SQLException); + void clearMyResultSet() throw (css::sdbc::SQLException, css::uno::RuntimeException); void setWarning (const ::com::sun::star::sdbc::SQLWarning &ex) throw (css::sdbc::SQLException, css::uno::RuntimeException); bool lockIfNecessary (const OUString& sql) throw( ::com::sun::star::sdbc::SQLException); |