User: hr      
Date: 2007-09-26 14:53:36+0000
Modified:
   dba/dbaccess/source/ui/relationdesign/RelationTableView.cxx

Log:
 INTEGRATION: CWS dba24a (1.24.118); FILE MERGED
 2007/08/28 07:01:02 oj 1.24.118.1: #i68858# enable relation for mysql inodb

File Changes:

Directory: /dba/dbaccess/source/ui/relationdesign/
==================================================

File [changed]: RelationTableView.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/relationdesign/RelationTableView.cxx?r1=1.24&r2=1.25
Delta lines:  +1 -21
--------------------
--- RelationTableView.cxx       2006-09-17 07:28:33+0000        1.24
+++ RelationTableView.cxx       2007-09-26 14:53:34+0000        1.25
@@ -237,27 +237,7 @@
 {
        DBG_CHKTHIS(ORelationTableView,NULL);
 
-       BOOL bAllowed = !m_pView->getController()->isReadOnly();
-       if ( bAllowed )
-       {
-               Reference<XConnection> xConnection = 
m_pView->getController()->getConnection();
-               if(!xConnection.is())
-                       bAllowed = FALSE;
-               else
-               {
-                       try
-                       {
-                               Reference < XDatabaseMetaData > xMetaData( 
xConnection->getMetaData() );
-                               
OSL_ENSURE(xMetaData.is(),"ORelationTableView::IsAddAllowed: The metadata is 
null!");
-
-                               bAllowed = xMetaData.is() && 
xMetaData->supportsIntegrityEnhancementFacility();
-                       }
-                       catch(const SQLException&)
-                       {
-                       }
-               }
-       }
-       return bAllowed;
+       return !m_pView->getController()->isReadOnly();
 }
 //------------------------------------------------------------------------
 void ORelationTableView::AddConnection(const OJoinExchangeData& jxdSource, 
const OJoinExchangeData& jxdDest)




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

Reply via email to