summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-06 08:20:24 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-06 08:41:00 +0100
commitce1006f5294df8ce45afcdf39f9f1b199583d00f (patch)
tree948a161415c986cb95c162ae255bf471ff90ef57 /connectivity
parent08081fffa0733fd6fcabf75ef2e809c64b1f4bfd (diff)
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
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.cxx2
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.hxx3
2 files changed, 3 insertions, 2 deletions
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()