User: hr      
Date: 2007-09-26 14:27:59+0000
Modified:
   dba/connectivity/source/commontools/TKeys.cxx

Log:
 INTEGRATION: CWS dba24a (1.10.118); FILE MERGED
 2007/09/25 10:37:15 oj 1.10.118.1: #i81922# new method to get drop stmt

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: TKeys.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/TKeys.cxx?r1=1.10&r2=1.11
Delta lines:  +6 -1
-------------------
--- TKeys.cxx   2006-09-17 02:00:42+0000        1.10
+++ TKeys.cxx   2007-09-26 14:27:56+0000        1.11
@@ -308,6 +308,11 @@
 
     return createObject( sNewName );
 }
+// 
-----------------------------------------------------------------------------
+::rtl::OUString OKeysHelper::getDropForeignKey() const
+{
+    return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" DROP CONSTRAINT "));
+}
 // -------------------------------------------------------------------------
 // XDrop
 void OKeysHelper::dropObject(sal_Int32 _nPos,const ::rtl::OUString 
_sElementName)
@@ -332,7 +337,7 @@
                }
                else
                {
-                       aSql += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" 
DROP CONSTRAINT "));
+                       aSql += getDropForeignKey();
                        ::rtl::OUString aQuote  = 
m_pTable->getConnection()->getMetaData()->getIdentifierQuoteString();
                        aSql += ::dbtools::quoteName( aQuote,_sElementName);
                }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to