diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-10 11:45:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-10 13:39:15 +0100 |
commit | 31a1eb48247e2e0f79c8ba34058eed04e04af336 (patch) | |
tree | ad7528b638bb5ccf95ba133a0df874a9126886aa /connectivity | |
parent | 5fb8f03be61add8320045471edc55ce3f7c4fa8d (diff) |
coverity#706372 Uncaught exception
Change-Id: If3b3395bbe44720540e9619bba6088c6cd29ed37
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OStatement.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/OStatement.hxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx index 2855ddfba369..48703371c777 100644 --- a/connectivity/source/drivers/odbc/OStatement.cxx +++ b/connectivity/source/drivers/odbc/OStatement.cxx @@ -256,9 +256,7 @@ SQLLEN OStatement_Base::getRowCount() // If the given SQL statement contains a 'FOR UPDATE' clause, change // the concurrency to lock so that the row can then be updated. Returns // true if the concurrency has been changed - - -bool OStatement_Base::lockIfNecessary (const OUString& sql) throw( SQLException) +bool OStatement_Base::lockIfNecessary (const OUString& sql) throw (SQLException, RuntimeException) { bool rc = false; diff --git a/connectivity/source/inc/odbc/OStatement.hxx b/connectivity/source/inc/odbc/OStatement.hxx index 16b93172fc3f..9c2ecfd75a06 100644 --- a/connectivity/source/inc/odbc/OStatement.hxx +++ b/connectivity/source/inc/odbc/OStatement.hxx @@ -107,7 +107,7 @@ namespace connectivity 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); + bool lockIfNecessary (const OUString& sql) throw (css::sdbc::SQLException, css::uno::RuntimeException); sal_Int32 getColumnCount() throw (css::sdbc::SQLException, css::uno::RuntimeException); |