Added:
MYSQLCC/MYSQLCCLib/MDescriptorAPD.h
MYSQLCC/MYSQLCCLib/MDescriptorARD.h
MYSQLCC/MYSQLCCLib/MDescriptorIPD.cpp
MYSQLCC/MYSQLCCLib/MDescriptorIPD.h
Removed:
MYSQLCC/MYSQLCCLib/MDesAPD.h
MYSQLCC/MYSQLCCLib/MDesARD.h
MYSQLCC/MYSQLCCLib/MDesIPD.cpp
MYSQLCC/MYSQLCCLib/MDesIPD.h
Log:
Deleted: MYSQLCC/MYSQLCCLib/MDesAPD.h
===================================================================
--- MYSQLCC/MYSQLCCLib/MDesAPD.h 2006-04-26 20:17:48 UTC (rev 129)
+++ MYSQLCC/MYSQLCCLib/MDesAPD.h 2006-04-26 20:19:31 UTC (rev 130)
@@ -1,39 +0,0 @@
-/*! \file MDesAPD.h
- \author Peter Harvey <pharvey@stripped>
- \brief This code is used to support Descriptors (IPD, APD, IRD, ARD).
-
- This is the Application row descriptor (ARD) class.
-*/
-#ifndef M_DES_APD_H
-#define M_DES_APD_H
-
-#include "MInternal.h"
-
-/*!
- \brief Application parameter descriptor (APD).
-
- This is the base class for all descriptors.
-
- \sa MDesAPD
- MDesARD
- MDesIPD
- MDesIRD
-*/
-class MDesAPD : public MDescriptor
-{
- friend class MDesRecAPD;
-public:
- MDesAPD( MConnection *pConnection );
- MDesAPD( MStatement *pStatement );
-
- /* setters */
- SQLRETURN setDescField( SQLSMALLINT nRecNumber, SQLSMALLINT nFieldIdentifier,
SQLPOINTER pValuePtr, SQLINTEGER nBufferLength );
-
- /* getters */
-
- /* do'ers */
-};
-
-#endif
-
-
Deleted: MYSQLCC/MYSQLCCLib/MDesARD.h
===================================================================
--- MYSQLCC/MYSQLCCLib/MDesARD.h 2006-04-26 20:17:48 UTC (rev 129)
+++ MYSQLCC/MYSQLCCLib/MDesARD.h 2006-04-26 20:19:31 UTC (rev 130)
@@ -1,33 +0,0 @@
-/*! \file MDesARD.h
- \author Peter Harvey <pharvey@stripped>
- \brief This code is used to support Descriptors (IPD, APD, IRD, ARD).
-
- This is the Application row descriptor (ARD) class.
-*/
-#ifndef M_DES_ARD_H
-#define M_DES_ARD_H
-
-#include "MInternal.h"
-
-/*!
- \brief
- \sa
-*/
-class MDesARD : public MDescriptor
-{
- friend class MDesRecARD;
-public:
- MDesARD( MConnection *pConnection );
- MDesARD( MStatement *pStatement );
-
- /* setters */
- SQLRETURN setDescField( SQLSMALLINT nRecNumber, SQLSMALLINT nFieldIdentifier,
SQLPOINTER pValuePtr, SQLINTEGER nBufferLength );
-
- /* getters */
-
- /* do'ers */
-};
-
-#endif
-
-
Deleted: MYSQLCC/MYSQLCCLib/MDesIPD.cpp
===================================================================
--- MYSQLCC/MYSQLCCLib/MDesIPD.cpp 2006-04-26 20:17:48 UTC (rev 129)
+++ MYSQLCC/MYSQLCCLib/MDesIPD.cpp 2006-04-26 20:19:31 UTC (rev 130)
@@ -1,132 +0,0 @@
-#include "MYODBCDesInternal.h"
-
-MYODBCDesIPD::MYODBCDesIPD( SQLHANDLE hOwner )
- : MYODBCDes( hOwner, SQL_DESC_ALLOC_AUTO )
-{
- doAppendBookmark();
-}
-
-SQLRETURN MYODBCDesIPD::setDescField( SQLSMALLINT nRecNumber, SQLSMALLINT
nFieldIdentifier, SQLPOINTER pValuePtr, SQLINTEGER nBufferLength )
-{
- MYODBCDbgEnter();
-
- /*!
- \internal ODBC Rule
-
- If an application calls SQLSetDescField to set any field other
- than SQL_DESC_COUNT or the deferred fields SQL_DESC_DATA_PTR,
- SQL_DESC_OCTET_LENGTH_PTR, or SQL_DESC_INDICATOR_PTR, the record
- becomes unbound.
- */
-
- /* the above rule is covered by the; doUnbind() calls */
-
- /* header field? */
- switch ( nFieldIdentifier )
- {
- case SQL_DESC_ALLOC_TYPE:
- /*!
- \internal ODBC Rule
-
- ARD: R
- APD: R
- IRD: R
- IPD: R
- */
- MYODBCDbgReturn( getDia()->doAppend( MYODBC_DIA_HY091, 0, NULL ) );
-
- case SQL_DESC_ARRAY_SIZE:
- /*!
- \internal ODBC Rule
-
- ARD: R/W
- APD: R/W
- IRD: Unused
- IPD: Unused
- */
- MYODBCDbgReturn( getDia()->doAppend( MYODBC_DIA_HY091, 0, NULL ) );
-
- case SQL_DESC_ARRAY_STATUS_PTR:
- /*!
- \internal ODBC Rule
-
- ARD: R/W
- APD: R/W
- IRD: R/W
- IPD: R/W
- */
- MYODBCDbgReturn( setArrayStatusPtr( (SQLUSMALLINT*)pValuePtr ) );
-
- case SQL_DESC_BIND_OFFSET_PTR:
- /*!
- \internal ODBC Rule
-
- ARD: R/W
- APD: R/W
- IRD: Unused
- IPD: Unused
- */
- MYODBCDbgReturn( getDia()->doAppend( MYODBC_DIA_HY091, 0, NULL ) );
-
- case SQL_DESC_BIND_TYPE:
- /*!
- \internal ODBC Rule
-
- ARD: R/W
- APD: R/W
- IRD: Unused
- IPD: Unused
- */
- MYODBCDbgReturn( getDia()->doAppend( MYODBC_DIA_HY091, 0, NULL ) );
-
- case SQL_DESC_COUNT:
- /*!
- \internal ODBC Rule
-
- ARD: R/W
- APD: R/W
- IRD: R
- IPD: R/W
- */
- /* expand/shrink record list; free, even, bound records as needed */
- MYODBCDbgReturn( setCount( (SQLSMALLINT)pValuePtr, true ) );
-
- case SQL_DESC_ROWS_PROCESSED_PTR:
- /*!
- \internal ODBC Rule
-
- ARD: Unused
- APD: Unused
- IRD: R/W
- IPD: R/W
- */
- MYODBCDbgReturn( setRowsProcessedPtr( (SQLUINTEGER*)pValuePtr ) );
-
- } /* switch (for header fields) */
-
- /*! \internal ODBC Rule
-
- The FieldIdentifier argument was a record field, the RecNumber argument
- was 0, and the DescriptorHandle argument referred to an IPD handle.
- */
- if ( nRecNumber == 0 )
- MYODBCDbgReturn( getDia()->doAppend( MYODBC_DIA_07009, 0, NULL ) );
-
- /* record field needs a valid record */
- if ( nRecNumber < 0 || nRecNumber >= getCount() )
- MYODBCDbgReturn( getDia()->doAppend( MYODBC_DIA_07009, 0, NULL ) );
-
- /* handle as record field */
- MYODBCDbgReturn( vectorRecords[nRecNumber]->setDescField( nFieldIdentifier,
pValuePtr, nBufferLength ) );
-}
-
-MYODBCDesRec *MYODBCDesIPD::doAppend()
-{
- MYODBCDbgEnter();
-
- MYODBCDesRecIPD *p = new MYODBCDesRecIPD( this );
- vectorRecords.append( p );
-
- MYODBCDbgReturn3( "%p", p );
-}
-
Deleted: MYSQLCC/MYSQLCCLib/MDesIPD.h
===================================================================
--- MYSQLCC/MYSQLCCLib/MDesIPD.h 2006-04-26 20:17:48 UTC (rev 129)
+++ MYSQLCC/MYSQLCCLib/MDesIPD.h 2006-04-26 20:19:31 UTC (rev 130)
@@ -1,32 +0,0 @@
-/*! \file MDesIPD.h
- \author Peter Harvey <pharvey@stripped>
- \brief This code is used to support Descriptors (IPD, IPD, IPD, ARD).
-
- This is the Application row descriptor (ARD) class.
-*/
-#ifndef M_DES_IPD_H
-#define M_DES_IPD_H
-
-#include "MInternal.h"
-
-/*!
- \brief
- \sa
-*/
-class MDesIPD : public MDescriptor
-{
- friend class MDesRecIPD;
-public:
- MDesAPD( MStatement *pStatement );
-
- /* setters */
- SQLRETURN setDescField( SQLSMALLINT nRecNumber, SQLSMALLINT nFieldIdentifier,
SQLPOINTER pValuePtr, SQLINTEGER nBufferLength );
-
- /* getters */
-
- /* do'ers */
-};
-
-#endif
-
-
Copied: MYSQLCC/MYSQLCCLib/MDescriptorAPD.h (from rev 123, MYSQLCC/MYSQLCCLib/MDesAPD.h)
Copied: MYSQLCC/MYSQLCCLib/MDescriptorARD.h (from rev 123, MYSQLCC/MYSQLCCLib/MDesARD.h)
Copied: MYSQLCC/MYSQLCCLib/MDescriptorIPD.cpp (from rev 120,
MYSQLCC/MYSQLCCLib/MDesIPD.cpp)
Copied: MYSQLCC/MYSQLCCLib/MDescriptorIPD.h (from rev 123, MYSQLCC/MYSQLCCLib/MDesIPD.h)
| Thread |
|---|
| • Connector/ODBC 5 commit: r130 - MYSQLCC/MYSQLCCLib | pharvey | 26 Apr |