User: hr      
Date: 2007-09-26 14:30:05+0000
Modified:
   dba/connectivity/source/drivers/mysql/YTable.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/drivers/mysql/
==================================================

File [changed]: YTable.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YTable.cxx?r1=1.10&r2=1.11
Delta lines:  +22 -1
--------------------
--- YTable.cxx  2006-09-17 03:03:45+0000        1.10
+++ YTable.cxx  2007-09-26 14:30:03+0000        1.11
@@ -109,6 +109,27 @@
 using namespace ::com::sun::star::sdbc;
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::lang;
+namespace connectivity
+{
+    namespace mysql
+    {
+        class OMySQLKeysHelper : public OKeysHelper
+        {
+        protected:
+            // 
-----------------------------------------------------------------------------
+            virtual ::rtl::OUString getDropForeignKey() const
+            {
+                return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" DROP 
FOREIGN KEY "));
+            }
+        public:
+            OMySQLKeysHelper(  OTableHelper* _pTable,
+                               ::osl::Mutex& _rMutex,
+                               const TStringVector& _rVector
+                ) : OKeysHelper(_pTable,_rMutex,_rVector){}
+
+        };
+    }
+}
 
 OMySQLTable::OMySQLTable(      sdbcx::OCollection* _pTables,
                                                   const Reference<     
XConnection >& _xConnection)
@@ -174,7 +195,7 @@
 // 
-----------------------------------------------------------------------------
 sdbcx::OCollection* OMySQLTable::createKeys(const TStringVector& _rNames)
 {
-       return new OKeysHelper(this,m_aMutex,_rNames);
+       return new OMySQLKeysHelper(this,m_aMutex,_rNames);
 }
 // 
-----------------------------------------------------------------------------
 sdbcx::OCollection* OMySQLTable::createIndexes(const TStringVector& _rNames)




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

Reply via email to