Tag: cws_src680_dba30
User: fs      
Date: 06/05/22 04:23:26

Modified:
 /dba/connectivity/source/drivers/ado/
  ACatalog.cxx

Log:
 #i42048# now proper fix, as advised by OJ

File Changes:

Directory: /dba/connectivity/source/drivers/ado/
================================================

File [changed]: ACatalog.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/ado/ACatalog.cxx?r1=1.10.14.2&r2=1.10.14.3
Delta lines:  +18 -3
--------------------
--- ACatalog.cxx        11 May 2006 12:48:59 -0000      1.10.14.2
+++ ACatalog.cxx        22 May 2006 11:23:22 -0000      1.10.14.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: ACatalog.cxx,v $
  *
- *  $Revision: 1.10.14.2 $
+ *  $Revision: 1.10.14.3 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/11 12:48:59 $
+ *  last change: $Author: fs $ $Date: 2006/05/22 11:23:22 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -81,7 +81,22 @@
        TStringVector aVector;
        
        WpADOTables aTables(m_aCatalog.get_Tables());
-       aTables.fillElementNames(aVector);
+  if ( aTables.IsValid() )
+  {
+    aTables.Refresh();
+    sal_Int32 nCount = aTables.GetItemCount();
+    aVector.reserve(nCount);
+    for(sal_Int32 i=0;i< nCount;++i)
+    {
+        WpADOTable aElement = aTables.GetItem(i);
+         if ( aElement.IsValid() )
+          {
+              ::rtl::OUString sTypeName = aElement.get_Type();
+                     if ( !sTypeName.equalsIgnoreAsciiCaseAscii("SYSTEM 
TABLE") && !sTypeName.equalsIgnoreAsciiCaseAscii("ACCESS TABLE") )
+                    aVector.push_back(aElement.get_Name());
+                  }
+        }
+       }
 
        if(m_pTables)
                m_pTables->reFill(aVector);




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

Reply via email to