diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-12-01 09:39:17 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-12-01 09:39:17 +0000 |
commit | 6fa6f06727f088b853c392a4149b88066bb905d0 (patch) | |
tree | a2abc0e29a2345ea7e11ac4a264767d662290e18 /dbaccess/source/ui/relationdesign/RelationController.cxx | |
parent | f0f60a7e5ab4640dd83678335030e7efd2cd542f (diff) |
INTEGRATION: CWS geordi2q10 (1.32.158); FILE MERGED
2003/11/28 09:43:09 rt 1.32.158.1: #111934#: join CWS dba01pp1
Diffstat (limited to 'dbaccess/source/ui/relationdesign/RelationController.cxx')
-rw-r--r-- | dbaccess/source/ui/relationdesign/RelationController.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx index 4619eadd1849..ba2710559726 100644 --- a/dbaccess/source/ui/relationdesign/RelationController.cxx +++ b/dbaccess/source/ui/relationdesign/RelationController.cxx @@ -2,9 +2,9 @@ * * $RCSfile: RelationController.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.33 $ * - * last change: $Author: oj $ $Date: 2002-11-27 09:38:38 $ + * last change: $Author: rt $ $Date: 2003-12-01 10:39:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -375,7 +375,7 @@ void SAL_CALL ORelationController::initialize( const Sequence< Any >& aArguments throw SQLException(); } } - else if(!getMetaData()->supportsIntegrityEnhancementFacility()) + else if(getMetaData().is() && !getMetaData()->supportsIntegrityEnhancementFacility()) {// check if this database supports relations setEditable(sal_False); @@ -584,7 +584,8 @@ void ORelationController::loadTableData(const Any& _aTable) // ----------------------------------------------------------------------------- sal_Bool ORelationController::existsTable(const ::rtl::OUString& _rComposedTableName) const { - ::comphelper::UStringMixEqual bCase(getMetaData()->storesMixedCaseQuotedIdentifiers()); + Reference<XDatabaseMetaData> xMeta = getConnection()->getMetaData(); + ::comphelper::UStringMixEqual bCase(xMeta.is() && xMeta->storesMixedCaseQuotedIdentifiers()); ::std::vector<OTableWindowData*>::const_iterator aIter = m_vTableData.begin(); for(;aIter != m_vTableData.end();++aIter) { |