Tag: cws_src680_dba204b
User: fs      
Date: 2006/07/13 03:05:16

Modified:
   dba/connectivity/source/drivers/odbc/OStatement.cxx

Log:
 #i67290#

File Changes:

Directory: /dba/connectivity/source/drivers/odbc/
=================================================

File [changed]: OStatement.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/odbc/OStatement.cxx?r1=1.35&r2=1.35.16.1
Delta lines:  +11 -7
--------------------
--- OStatement.cxx      20 Jun 2006 01:56:39 -0000      1.35
+++ OStatement.cxx      13 Jul 2006 10:05:13 -0000      1.35.16.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: OStatement.cxx,v $
  *
- *  $Revision: 1.35 $
+ *  $Revision: 1.35.16.1 $
  *
- *  last change: $Author: hr $ $Date: 2006/06/20 01:56:39 $
+ *  last change: $Author: fs $ $Date: 2006/07/13 10:05:13 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -275,11 +275,15 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OStatement_BASE::rBHelper.bDisposed);
 
-
+    try
+    {
        Reference<XCloseable> xCloseable;
-       if(::comphelper::query_interface(m_xResultSet.get(),xCloseable))
+           if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable 
) )
                xCloseable->close();
-       m_xResultSet = Reference< XResultSet>();
+    }
+    catch( const DisposedException& ) { }
+
+    m_xResultSet = Reference< XResultSet >();
 }
 //--------------------------------------------------------------------
 sal_Int32 OStatement_Base::getRowCount () throw( SQLException)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to