OResultSet: close() is routinely called after dispose()

Change-Id: Ifb916e0c2935876b85fdb135538357f29cfab157
This commit is contained in:
Stephan Bergmann
2012-09-19 16:53:11 +02:00
parent e48e489102
commit 730ba5d732
2 changed files with 1 additions and 12 deletions

View File

@@ -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();
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------

View File

@@ -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 >();
} }