Kaydet (Commit) f9a7f034 authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

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
üst ce1006f5
......@@ -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))
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment