summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/DIndexColumns.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-05-08 12:26:37 +0000
committerOcke Janssen <oj@openoffice.org>2001-05-08 12:26:37 +0000
commit1072a9f5c7b848bc6f36dd2263a25c9dbd3820c9 (patch)
tree2f7dc8b66d32fd1440bd5bf45d5b84f4a0a6e6f6 /connectivity/source/drivers/dbase/DIndexColumns.cxx
parent785a24acc6b2ae993c8829c88a9db84f0ddf8265 (diff)
#86202# correct the index impl
Diffstat (limited to 'connectivity/source/drivers/dbase/DIndexColumns.cxx')
-rw-r--r--connectivity/source/drivers/dbase/DIndexColumns.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/connectivity/source/drivers/dbase/DIndexColumns.cxx b/connectivity/source/drivers/dbase/DIndexColumns.cxx
index f94ca468b45b..dbb4c36ce9c5 100644
--- a/connectivity/source/drivers/dbase/DIndexColumns.cxx
+++ b/connectivity/source/drivers/dbase/DIndexColumns.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DIndexColumns.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: oj $ $Date: 2000-11-03 14:17:57 $
+ * last change: $Author: oj $ $Date: 2001-05-08 13:23:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -87,8 +87,12 @@ Reference< XNamed > ODbaseIndexColumns::createObject(const ::rtl::OUString& _rNa
const ODbaseTable* pTable = m_pIndex->getTable();
::vos::ORef<OSQLColumns> aCols = pTable->getTableColumns();
+ OSQLColumns::const_iterator aIter = find(aCols->begin(),aCols->end(),_rName,::comphelper::UStringMixEqual(isCaseSensitive()));
+
+ Reference< XPropertySet > xCol;
+ if(aIter != aCols->end())
+ xCol = *aIter;
- Reference< XPropertySet > xCol(*find(aCols->begin(),aCols->end(),_rName,::comphelper::UStringMixEqual(isCaseSensitive())));
if(!xCol.is())
return Reference< XNamed >();