summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-06-06 09:50:04 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-06-06 09:50:04 +0000
commit51938807b6844011119276f1c12c022e11f2558d (patch)
tree6fef41353fb4b143e44cc55ee413b5cc82929e2a /connectivity
parent87b9565fd660b895ae4ca3b1b525944233492088 (diff)
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
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/TKeys.cxx6
1 files changed, 3 insertions, 3 deletions
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"));
}