summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-02 09:29:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-02 09:46:31 +0100
commitc12e8e6435fa6b9351b9e9dc2521a872af53930c (patch)
treec6a4038b793377f521aee50da56ca26400e43d6f /connectivity
parent067738943acaa97aa2a920167f9713630819553b (diff)
coverity#706367 Uncaught exception
Change-Id: I5c17c94956a44dab13935dca41e812ebd196203a
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbc/OStatement.cxx3
-rw-r--r--connectivity/source/inc/odbc/OStatement.hxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx
index 246c057e519a..f1bcd6fd67c9 100644
--- a/connectivity/source/drivers/odbc/OStatement.cxx
+++ b/connectivity/source/drivers/odbc/OStatement.cxx
@@ -296,7 +296,8 @@ bool OStatement_Base::lockIfNecessary (const OUString& sql) throw( SQLException)
// Sets the warning
-void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
+void OStatement_Base::setWarning (const SQLWarning &ex)
+ 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 5299382b748b..bef56858040d 100644
--- a/connectivity/source/inc/odbc/OStatement.hxx
+++ b/connectivity/source/inc/odbc/OStatement.hxx
@@ -105,7 +105,8 @@ namespace connectivity
void reset () throw( ::com::sun::star::sdbc::SQLException);
void clearMyResultSet () throw( ::com::sun::star::sdbc::SQLException);
- void setWarning (const ::com::sun::star::sdbc::SQLWarning &ex) throw( ::com::sun::star::sdbc::SQLException);
+ 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);