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

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
üst 08081fff
...@@ -333,7 +333,7 @@ void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 nIndex, sal_Bool x) ...@@ -333,7 +333,7 @@ void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 nIndex, sal_Bool x)
template <typename T> template <typename T>
void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType) void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType)
throw(SQLException) throw(SQLException, RuntimeException)
{ {
MutexGuard aGuard( m_pConnection->getMutex() ); MutexGuard aGuard( m_pConnection->getMutex() );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed); checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
......
...@@ -79,7 +79,8 @@ namespace connectivity ...@@ -79,7 +79,8 @@ namespace connectivity
* parameter is not of nType then an Exception will be thrown. * parameter is not of nType then an Exception will be thrown.
*/ */
template <typename T> void setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType) 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 setParameterNull(sal_Int32 nParameterIndex, bool bSetNull = true);
void ensurePrepared() void ensurePrepared()
......
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