summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/TColumnsHelper.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 15:51:48 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 15:51:48 +0000
commit85388dcb7bb4f9dad0a9db7e2c29fb1ee3b92740 (patch)
treec3871ae4eb61956a7fffb506f909bb4ab1bc0d6c /connectivity/source/commontools/TColumnsHelper.cxx
parent879c408c465722f9d7c42ff6711e177d364b48f5 (diff)
INTEGRATION: CWS insight01 (1.2.38); FILE MERGED
2004/04/23 06:25:50 oj 1.2.38.2: new switch to disable catalog and schema 2004/02/12 16:06:29 oj 1.2.38.1: #111075# fix refcount problem
Diffstat (limited to 'connectivity/source/commontools/TColumnsHelper.cxx')
-rw-r--r--connectivity/source/commontools/TColumnsHelper.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/connectivity/source/commontools/TColumnsHelper.cxx b/connectivity/source/commontools/TColumnsHelper.cxx
index 5cb06855b840..69bcac9edb5a 100644
--- a/connectivity/source/commontools/TColumnsHelper.cxx
+++ b/connectivity/source/commontools/TColumnsHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TColumnsHelper.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2003-04-28 15:57:52 $
+ * last change: $Author: hr $ $Date: 2004-08-02 16:51:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -123,11 +123,12 @@ namespace connectivity
};
}
-OColumnsHelper::OColumnsHelper( ::cppu::OWeakObject& _rParent,
- sal_Bool _bCase,
- ::osl::Mutex& _rMutex,
- const TStringVector &_rVector
- ) : OCollection(_rParent,_bCase,_rMutex,_rVector)
+OColumnsHelper::OColumnsHelper( ::cppu::OWeakObject& _rParent
+ ,sal_Bool _bCase
+ ,::osl::Mutex& _rMutex
+ ,const TStringVector &_rVector
+ ,sal_Bool _bUseHardRef
+ ) : OCollection(_rParent,_bCase,_rMutex,_rVector,sal_False,_bUseHardRef)
,m_pTable(NULL)
,m_pImpl(NULL)
{
@@ -157,7 +158,9 @@ Reference< XNamed > OColumnsHelper::createObject(const ::rtl::OUString& _rName)
if ( aFind == m_pImpl->m_aColumnInfo.end() ) // we have to fill it
{
Reference<XDatabaseMetaData> xMetaData = xConnection->getMetaData();
- ::rtl::OUString sComposedName = ::dbtools::composeTableName(xMetaData,m_pTable,sal_True,::dbtools::eInDataManipulation);
+ sal_Bool bUseCatalogInSelect = isDataSourcePropertyEnabled(xConnection,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UseCatalogInSelect")),sal_True);
+ sal_Bool bUseSchemaInSelect = isDataSourcePropertyEnabled(xConnection,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UseSchemaInSelect")),sal_True);
+ ::rtl::OUString sComposedName = ::dbtools::composeTableName(xMetaData,m_pTable,sal_True,::dbtools::eInDataManipulation,bUseCatalogInSelect,bUseSchemaInSelect);
collectColumnInformation(xConnection,sComposedName,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("*")) ,m_pImpl->m_aColumnInfo);
aFind = m_pImpl->m_aColumnInfo.find(_rName);
}