Tag: cws_src680_cov2src
User: rt      
Date: 05/10/18 01:28:49

Modified:
 /dba/dbaccess/source/core/dataaccess/
  ModelImpl.cxx

Log:
 #126234# Join MWS COV680 m4 into SRC680

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: ModelImpl.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/ModelImpl.cxx?r1=1.7&r2=1.7.26.1
Delta lines:  +19 -7
--------------------
--- ModelImpl.cxx       8 Sep 2005 10:14:25 -0000       1.7
+++ ModelImpl.cxx       18 Oct 2005 08:28:45 -0000      1.7.26.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: ModelImpl.cxx,v $
  *
- *  $Revision: 1.7 $
+ *  $Revision: 1.7.26.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 10:14:25 $
+ *  last change: $Author: rt $ $Date: 2005/10/18 08:28:45 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -709,14 +709,26 @@
         m_pStorageAccess->suspendCommitPropagation();
 
     sal_Bool bStore = sal_False;
+       try
+       {
     TStorages::iterator aFind = 
m_aStorages.find(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("database")));
     if ( aFind != m_aStorages.end() )
-        bStore = commitStorageIfWriteable_ignoreErrors( aFind->second );
+               {
+                       Reference<XTransactedObject> 
xTrans(aFind->second,UNO_QUERY);
+                       if ( bStore = xTrans.is() )
+                               xTrans->commit();
+               }
+       }
+       catch(Exception&)
+       {
+               OSL_ENSURE(0,"Exception Caught: Could not store embedded 
database!");
+       }
 
     if ( _bPreventRootCommits && m_pStorageAccess )
         m_pStorageAccess->resumeCommitPropagation();
 
     return bStore;
+
 }
 // 
-----------------------------------------------------------------------------
 bool ODatabaseModelImpl::commitStorageIfWriteable( const Reference< XStorage 
>& _rxStorage ) SAL_THROW(( IOException, WrappedTargetException, 
RuntimeException ))




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

Reply via email to