summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/relationdesign
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-26 13:53:34 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-26 13:53:34 +0000
commit1e70576abd3ce80f62fb859135dc349ff5bdb149 (patch)
treee8ae968c134005c97c9152c8b6f3da9b64d28b54 /dbaccess/source/ui/relationdesign
parent03ef7c3237937a72e72f585d20ce0045c3682d03 (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.cxx26
1 files changed, 3 insertions, 23 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationTableView.cxx b/dbaccess/source/ui/relationdesign/RelationTableView.cxx
index f46bc3f66eea..d1f14512f11c 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)