summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/file/FStatement.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx
index fb4f4b39893c..18a90d16c45f 100644
--- a/connectivity/source/drivers/file/FStatement.cxx
+++ b/connectivity/source/drivers/file/FStatement.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: FStatement.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: obo $ $Date: 2006-07-10 14:27:07 $
+ * last change: $Author: rt $ $Date: 2006-07-26 07:23:38 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -262,10 +262,14 @@ void OStatement_Base::clearMyResultSet () throw (SQLException)
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
+ try
+ {
+ Reference<XCloseable> xCloseable;
+ if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable ) )
+ xCloseable->close();
+ }
+ catch( const DisposedException& ) { }
- Reference<XCloseable> xCloseable;
- if(::comphelper::query_interface(m_xResultSet.get(),xCloseable))
- xCloseable->close();
m_xResultSet = Reference< XResultSet>();
}
//--------------------------------------------------------------------