From ce1006f5294df8ce45afcdf39f9f1b199583d00f Mon Sep 17 00:00:00 2001 From: "Andrzej J.R. Hunt" <andrzej@ahunt.org> Date: Fri, 6 Sep 2013 08:20:24 +0100 Subject: CID#1079048 CID#1079049 CID#1079050 Uncaught exception. (firebird-sdbc) In this case we can just pass the DisposedException (is a RuntimeException) onto the calling methods. Change-Id: Ia85a2d147ed3822847fe64b8cac671c88c6444fe --- connectivity/source/drivers/firebird/PreparedStatement.cxx | 2 +- connectivity/source/drivers/firebird/PreparedStatement.hxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 0069d7129a12..1317b6f02639 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -333,7 +333,7 @@ void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 nIndex, sal_Bool x) template <typename T> void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType) - throw(SQLException) + throw(SQLException, RuntimeException) { MutexGuard aGuard( m_pConnection->getMutex() ); checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/firebird/PreparedStatement.hxx b/connectivity/source/drivers/firebird/PreparedStatement.hxx index c32be80d9644..c071fa2326c2 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.hxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.hxx @@ -79,7 +79,8 @@ namespace connectivity * parameter is not of nType then an Exception will be thrown. */ template <typename T> void setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType) - throw(::com::sun::star::sdbc::SQLException); + throw(::com::sun::star::sdbc::SQLException, + ::com::sun::star::uno::RuntimeException); void setParameterNull(sal_Int32 nParameterIndex, bool bSetNull = true); void ensurePrepared() -- cgit