summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-06 08:07:16 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-06 08:41:00 +0100
commit98862b0fde8f15b93f02ed86267d3fdd659c8a1e (patch)
tree661f787b924fdcb5dc6c5cf5876c0a3b8ec00458 /connectivity
parentAdd error checking in rebuildIndexes. (firebird-sdbc) (diff)
downloadcore-98862b0fde8f15b93f02ed86267d3fdd659c8a1e.tar.gz
core-98862b0fde8f15b93f02ed86267d3fdd659c8a1e.zip
CID#1079045 CID#107946 Uncaught exception. (firebird-sdbc)
In this case we can just pass the DisposedException (is a RuntimeException) onto the get* methods. Change-Id: I97a3575709e2f50fa651a5d26c3029ed014630da
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.cxx2
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index 694610043523..eabf65fdff65 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -419,7 +419,7 @@ ISC_QUAD* OResultSet::retrieveValue(sal_Int32 columnIndex)
template <typename T>
T OResultSet::safelyRetrieveValue(sal_Int32 columnIndex)
- throw (SQLException)
+ throw (SQLException, RuntimeException)
{
MutexGuard aGuard(m_pConnection->getMutex());
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx
index fb8e4b1c84f9..6b994daa20d2 100644
--- a/connectivity/source/drivers/firebird/ResultSet.hxx
+++ b/connectivity/source/drivers/firebird/ResultSet.hxx
@@ -94,7 +94,8 @@ namespace connectivity
template <typename T> T retrieveValue(sal_Int32 columnIndex);
template <typename T> T safelyRetrieveValue(sal_Int32 columnIndex)
- throw(::com::sun::star::sdbc::SQLException);
+ throw(::com::sun::star::sdbc::SQLException,
+ ::com::sun::star::uno::RuntimeException);
// OIdPropertyArrayUsageHelper
virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const;