diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 09:30:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 09:46:32 +0100 |
commit | b26ccfa08014ec9226aecdc9bfa9f1355ce660eb (patch) | |
tree | e40d759c43c2029f10112967bec42a2846da5eb8 | |
parent | c12e8e6435fa6b9351b9e9dc2521a872af53930c (diff) |
coverity#706368 Uncaught exception
Change-Id: Ia8988be31ed4dc4843bd6c2573ec14efa3af6397
-rw-r--r-- | connectivity/source/drivers/odbc/OStatement.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/OStatement.hxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx index f1bcd6fd67c9..3e1f82997bf7 100644 --- a/connectivity/source/drivers/odbc/OStatement.cxx +++ b/connectivity/source/drivers/odbc/OStatement.cxx @@ -235,7 +235,8 @@ void OStatement_Base::clearMyResultSet () throw (SQLException) m_xResultSet.clear(); } -SQLLEN OStatement_Base::getRowCount () throw( SQLException) +SQLLEN OStatement_Base::getRowCount() + 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 bef56858040d..3270e660771c 100644 --- a/connectivity/source/inc/odbc/OStatement.hxx +++ b/connectivity/source/inc/odbc/OStatement.hxx @@ -122,7 +122,7 @@ namespace connectivity */ virtual OResultSet* createResulSet(); - SQLLEN getRowCount () throw( ::com::sun::star::sdbc::SQLException); + SQLLEN getRowCount() throw (css::sdbc::SQLException, css::uno::RuntimeException); void disposeResultSet(); |