OResultSet: close() is routinely called after dispose()
Change-Id: Ifb916e0c2935876b85fdb135538357f29cfab157
This commit is contained in:
@@ -511,9 +511,7 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
|
|||||||
|
|
||||||
void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException)
|
void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
ResultSetEntryGuard aGuard( *this );
|
|
||||||
OSL_TRACE("In/Out: OResultSet::close" );
|
OSL_TRACE("In/Out: OResultSet::close" );
|
||||||
OSL_FAIL( "OResultSet::close: going to dispose()" );
|
|
||||||
dispose();
|
dispose();
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
@@ -305,16 +305,7 @@ void OCommonStatement::clearCachedResultSet()
|
|||||||
if ( !xResultSet.is() )
|
if ( !xResultSet.is() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
Reference< XCloseable >( xResultSet, UNO_QUERY_THROW )->close();
|
||||||
{
|
|
||||||
Reference< XCloseable > xCloseable( xResultSet, UNO_QUERY_THROW );
|
|
||||||
xCloseable->close();
|
|
||||||
}
|
|
||||||
catch( const DisposedException& )
|
|
||||||
{
|
|
||||||
SAL_INFO("connectivity.mork", "=> OCommonStatement::clearCachedResultSet()" );
|
|
||||||
DBG_UNHANDLED_EXCEPTION();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_xResultSet = Reference< XResultSet >();
|
m_xResultSet = Reference< XResultSet >();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user