diff options
Diffstat (limited to 'connectivity/source/drivers/adabas/BGroups.cxx')
-rw-r--r-- | connectivity/source/drivers/adabas/BGroups.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/connectivity/source/drivers/adabas/BGroups.cxx b/connectivity/source/drivers/adabas/BGroups.cxx index 9d5853cce9a4..a956813c6809 100644 --- a/connectivity/source/drivers/adabas/BGroups.cxx +++ b/connectivity/source/drivers/adabas/BGroups.cxx @@ -2,9 +2,9 @@ * * $RCSfile: BGroups.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: oj $ $Date: 2001-03-30 14:07:19 $ + * last change: $Author: oj $ $Date: 2001-05-14 11:41:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -77,10 +77,6 @@ #ifndef _CONNECTIVITY_SDBCX_IREFRESHABLE_HXX_ #include "sdbcx/IRefreshable.hxx" #endif -#define CONNECTIVITY_PROPERTY_NAME_SPACE adabas -#ifndef _CONNECTIVITY_PROPERTYIDS_HXX_ -#include "propertyids.hxx" -#endif using namespace connectivity::adabas; using namespace ::com::sun::star::uno; @@ -114,7 +110,7 @@ Reference< XPropertySet > OGroups::createEmptyObject() void SAL_CALL OGroups::appendByDescriptor( const Reference< XPropertySet >& descriptor ) throw(SQLException, ElementExistException, RuntimeException) { ::osl::MutexGuard aGuard(m_rMutex); - ::rtl::OUString aName = getString(descriptor->getPropertyValue(PROPERTY_NAME)); + ::rtl::OUString aName = getString(descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))); ObjectMap::iterator aIter = m_aNameMap.find(aName); if( aIter != m_aNameMap.end()) throw ElementExistException(aName,*this); @@ -123,7 +119,7 @@ void SAL_CALL OGroups::appendByDescriptor( const Reference< XPropertySet >& desc ::rtl::OUString aSql = ::rtl::OUString::createFromAscii("CREATE USERGROUP "); ::rtl::OUString aQuote = m_pConnection->getMetaData()->getIdentifierQuoteString( ); - aSql = aSql + aQuote + getString(descriptor->getPropertyValue(PROPERTY_NAME)) + aQuote; + aSql = aSql + aQuote + getString(descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))) + aQuote; Reference< XStatement > xStmt = m_pConnection->createStatement( ); xStmt->execute(aSql); |