summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-02 09:31:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-02 09:46:32 +0100
commit051a8f9577fb133a4356d94965cc76a7a287c2e4 (patch)
treebbee685e2e2867bc8bbb4c423a7f2072cac46016 /connectivity/source
parentb26ccfa08014ec9226aecdc9bfa9f1355ce660eb (diff)
coverity#706371 Uncaught exception
Change-Id: I2019711112b1acb336b3002faca312c658f28671
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/odbc/OStatement.cxx5
-rw-r--r--connectivity/source/inc/odbc/OStatement.hxx2
2 files changed, 3 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx
index 3e1f82997bf7..1398efa2ba92 100644
--- a/connectivity/source/drivers/odbc/OStatement.cxx
+++ b/connectivity/source/drivers/odbc/OStatement.cxx
@@ -310,9 +310,8 @@ void OStatement_Base::setWarning (const SQLWarning &ex)
// getColumnCount
// Return the number of columns in the ResultSet
-
-
-sal_Int32 OStatement_Base::getColumnCount () throw( SQLException)
+sal_Int32 OStatement_Base::getColumnCount()
+ 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 3270e660771c..8cfc7601bf40 100644
--- a/connectivity/source/inc/odbc/OStatement.hxx
+++ b/connectivity/source/inc/odbc/OStatement.hxx
@@ -108,7 +108,7 @@ namespace connectivity
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);
- sal_Int32 getColumnCount () throw( ::com::sun::star::sdbc::SQLException);
+ sal_Int32 getColumnCount() throw (css::sdbc::SQLException, css::uno::RuntimeException);
// getResultSet