Tag: cws_src680_kaddrbook
User: ebischoff
Date: 05/11/25 02:39:35

Modified:
 /dba/connectivity/source/drivers/kab/
  KPreparedStatement.cxx, KPreparedStatement.hxx

Log:
 Changing type of reference to the meta data

File Changes:

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

File [changed]: KPreparedStatement.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KPreparedStatement.cxx?r1=1.1.2.8&r2=1.1.2.9
Delta lines:  +5 -8
-------------------
--- KPreparedStatement.cxx      22 Nov 2005 14:38:54 -0000      1.1.2.8
+++ KPreparedStatement.cxx      25 Nov 2005 10:39:32 -0000      1.1.2.9
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KPreparedStatement.cxx,v $
  *
- *  $Revision: 1.1.2.8 $
+ *  $Revision: 1.1.2.9 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/11/22 14:38:54 $
+ *  last change: $Author: ebischoff $ $Date: 2005/11/25 10:39:32 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -60,9 +60,6 @@
  ************************************************************************/
 
 #include "KPreparedStatement.hxx"
-#ifndef _CONNECTIVITY_KAB_RESULTSETMETADATA_HXX_
-#include "KResultSetMetaData.hxx"
-#endif
 
 #ifndef _CONNECTIVITY_PROPERTYIDS_HXX_
 #include "propertyids.hxx"
@@ -97,8 +94,7 @@
                        ::rtl::OUString::createFromAscii("Invalid selection of 
columns"),
                        NULL);
        }
-       pMeta = static_cast<KabResultSetMetaData *>(m_xMetaData.get());
-       pMeta->setKabFields(xColumns);
+       m_xMetaData->setKabFields(xColumns);
 }
 // -------------------------------------------------------------------------
 KabPreparedStatement::KabPreparedStatement(
@@ -124,7 +120,8 @@
                m_xMetaData = new KabResultSetMetaData(getOwnConnection());
                setKabFields();
        }
-       return m_xMetaData;
+       Reference< XResultSetMetaData > xMetaData = m_xMetaData.get();
+       return xMetaData;
 }
 // -------------------------------------------------------------------------
 void SAL_CALL KabPreparedStatement::close() throw(SQLException, 
RuntimeException)

File [changed]: KPreparedStatement.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KPreparedStatement.hxx?r1=1.1.2.6&r2=1.1.2.7
Delta lines:  +7 -3
-------------------
--- KPreparedStatement.hxx      12 Oct 2005 16:42:20 -0000      1.1.2.6
+++ KPreparedStatement.hxx      25 Nov 2005 10:39:32 -0000      1.1.2.7
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KPreparedStatement.hxx,v $
  *
- *  $Revision: 1.1.2.6 $
+ *  $Revision: 1.1.2.7 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/10/12 16:42:20 $
+ *  last change: $Author: ebischoff $ $Date: 2005/11/25 10:39:32 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -66,6 +66,10 @@
 #include "KStatement.hxx"
 #endif
 
+#ifndef _CONNECTIVITY_KAB_RESULTSETMETADATA_HXX_
+#include "KResultSetMetaData.hxx"
+#endif
+
 #ifndef _COM_SUN_STAR_SDBC_XPARAMETERS_HPP_
 #include <com/sun/star/sdbc/XParameters.hpp>
 #endif
@@ -104,7 +108,7 @@
 
                        ::std::vector< Parameter>               m_aParameters;
                        ::rtl::OUString                                 
m_sSqlStatement;
-                       ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XResultSetMetaData >
+                       ::rtl::Reference< KabResultSetMetaData >
                                                                                
        m_xMetaData;
                        sal_Bool                                                
m_bPrepared;
 




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

Reply via email to