summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-06 08:23:20 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-06 08:41:00 +0100
commitf9a7f0340e9e6dbaa9d381dd2b3ea8c1a2831857 (patch)
tree6f6f6edfa81611558b6825c37ae5f5bc0c678e61 /connectivity
parentce1006f5294df8ce45afcdf39f9f1b199583d00f (diff)
CID#1079051 Uncaught exception. (firebird-sdbc)
In this case we can just pass the DisposedException (is a RuntimeException) onto the calling methods. Change-Id: I89d2421c03a5f8e81f209b94109ffde117cfb0cd
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.cxx4
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.hxx6
2 files changed, 6 insertions, 4 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 1317b6f02639..9e0531190dec 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -64,7 +64,7 @@ OPreparedStatement::OPreparedStatement( OConnection* _pConnection,
}
void OPreparedStatement::ensurePrepared()
- throw (SQLException)
+ throw (SQLException, RuntimeException)
{
MutexGuard aGuard(m_pConnection->getMutex());
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -584,7 +584,7 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
}
void OPreparedStatement::checkParameterIndex(sal_Int32 nParameterIndex)
- throw(SQLException)
+ throw(SQLException, RuntimeException)
{
ensurePrepared();
if ((nParameterIndex == 0) || (nParameterIndex > m_pInSqlda->sqld))
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.hxx b/connectivity/source/drivers/firebird/PreparedStatement.hxx
index c071fa2326c2..1a8b0f458cba 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.hxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.hxx
@@ -72,7 +72,8 @@ namespace connectivity
XSQLDA* m_pOutSqlda;
XSQLDA* m_pInSqlda;
void checkParameterIndex(sal_Int32 nParameterIndex)
- throw(::com::sun::star::sdbc::SQLException);
+ throw(::com::sun::star::sdbc::SQLException,
+ ::com::sun::star::uno::RuntimeException);
/**
* Set a numeric value in the input SQLDA. If the destination
@@ -84,7 +85,8 @@ namespace connectivity
void setParameterNull(sal_Int32 nParameterIndex, bool bSetNull = true);
void ensurePrepared()
- throw(::com::sun::star::sdbc::SQLException);
+ throw(::com::sun::star::sdbc::SQLException,
+ ::com::sun::star::uno::RuntimeException);
protected:
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,