Tag: cws_dev300_dba30c
User: oj      
Date: 2008-05-09 07:07:18+0000
Modified:
   dba/connectivity/source/sdbcx/VTable.cxx
   dba/connectivity/source/commontools/TTableHelper.cxx

Log:
 #i87131# collect keys only once, getKeys always refetch the keys

File Changes:

Directory: /dba/connectivity/source/sdbcx/
==========================================

File [changed]: VTable.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/sdbcx/VTable.cxx?r1=1.21.10.1&r2=1.21.10.2
Delta lines:  +3 -2
-------------------
--- VTable.cxx  2008-05-05 10:57:51+0000        1.21.10.1
+++ VTable.cxx  2008-05-09 07:07:16+0000        1.21.10.2
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: VTable.cxx,v $
- * $Revision: 1.21.10.1 $
+ * $Revision: 1.21.10.2 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -217,6 +217,7 @@
        {
                refreshKeys();
         xKeys = m_pKeys;
+        if(!isNew())
         m_pKeys = NULL;
        }
        catch( const RuntimeException& )

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

File [changed]: TTableHelper.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/TTableHelper.cxx?r1=1.9.10.5&r2=1.9.10.6
Delta lines:  +6 -3
-------------------
--- TTableHelper.cxx    2008-05-08 12:58:58+0000        1.9.10.5
+++ TTableHelper.cxx    2008-05-09 07:07:16+0000        1.9.10.6
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: TTableHelper.cxx,v $
- * $Revision: 1.9.10.5 $
+ * $Revision: 1.9.10.6 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -297,11 +297,14 @@
        {
                refreshPrimaryKeys(aNames);
                refreshForgeinKeys(aNames);
-       }
+        m_pKeys        = createKeys(aNames);
+       } // if(!isNew())
+    else if (!m_pKeys )
+        m_pKeys        = createKeys(aNames);
        /*if(m_pKeys)
                m_pKeys->reFill(aVector);
        else*/
-               m_pKeys = createKeys(aNames);
+               
 }
 // -------------------------------------------------------------------------
 void OTableHelper::refreshIndexes()




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

Reply via email to