diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-09-26 13:53:34 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-09-26 13:53:34 +0000 |
commit | 02d9479b1b84e6c8e7eaa3f4adae9d9f89b620a4 (patch) | |
tree | 0243cfbf30a79362320b7d5759e5cf305e3fc913 /dbaccess/source/ui/relationdesign | |
parent | c4f0e72f68f3ccd354a06dde68dda708acf62b59 (diff) |
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
Diffstat (limited to 'dbaccess/source/ui/relationdesign')
-rw-r--r-- | dbaccess/source/ui/relationdesign/RelationTableView.cxx | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationTableView.cxx b/dbaccess/source/ui/relationdesign/RelationTableView.cxx index 46693a627..43ff51f59 100644 --- a/dbaccess/source/ui/relationdesign/RelationTableView.cxx +++ b/dbaccess/source/ui/relationdesign/RelationTableView.cxx @@ -4,9 +4,9 @@ * * $RCSfile: RelationTableView.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: obo $ $Date: 2006-09-17 07:28:33 $ + * last change: $Author: hr $ $Date: 2007-09-26 14:53:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -237,27 +237,7 @@ BOOL ORelationTableView::IsAddAllowed() { 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) |