From 51938807b6844011119276f1c12c022e11f2558d Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Fri, 6 Jun 2003 09:50:04 +0000 Subject: INTEGRATION: CWS dba07 (1.3.70); FILE MERGED 2003/05/20 11:05:01 oj 1.3.70.1: #i13348# use drop primary key when we have one --- connectivity/source/commontools/TKeys.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/TKeys.cxx b/connectivity/source/commontools/TKeys.cxx index d82f432aa30e..319701c82a52 100644 --- a/connectivity/source/commontools/TKeys.cxx +++ b/connectivity/source/commontools/TKeys.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TKeys.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: oj $ $Date: 2002-11-12 12:20:47 $ + * last change: $Author: vg $ $Date: 2003-06-06 10:50:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -327,7 +327,7 @@ void OKeysHelper::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName ::dbtools::OPropertyMap& rPropMap = OMetaConnection::getPropMap(); xKey->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_TYPE)) >>= nKeyType; } - if ( !_sElementName.getLength() && KeyType::PRIMARY == nKeyType ) + if ( KeyType::PRIMARY == nKeyType ) { aSql += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" DROP PRIMARY KEY")); } -- cgit