/***********************************************************************/ /* ODBConn.h : header file for the ODBC connection classes. */ /***********************************************************************/ //nclude <windows.h> /* Windows include file */ //nclude <windowsx.h> /* Message crackers */
/***********************************************************************/ /* Included C-definition files required by the interface. */ /***********************************************************************/ #include"block.h"
/***********************************************************************/ /* Constants and defines. */ /***********************************************************************/ // Miscellaneous sizing info #define MAX_NUM_OF_MSG 10// Max number of error messages //efine MAX_CURRENCY 30 // Max size of Currency($) string #define MAX_TNAME_LEN 32// Max size of table names //efine MAX_FNAME_LEN 256 // Max size of field names #define MAX_STRING_INFO 256// Max size of string from SQLGetInfo //efine MAX_DNAME_LEN 256 // Max size of Recordset names #define MAX_CONNECT_LEN 1024// Max size of Connect string //efine MAX_CURSOR_NAME 18 // Max size of a cursor name //efine DEFAULT_FIELD_TYPE SQL_TYPE_NULL // pick "C" data type to match SQL data type
/***********************************************************************/ /* This structure is used to control the catalog functions. */ /***********************************************************************/ typedefstruct tagCATPARM {
CATINFO Id; // Id to indicate function
PQRYRES Qrp; // Result set pointer
PCSZ DB; // Database (Schema)
PCSZ Tab; // Table name or pattern
PCSZ Pat; // Table type or column pattern
SQLLEN* *Vlen; // To array of indicator values
UWORD *Status; // To status block // For SQLStatistics
UWORD Unique; // Index type
UWORD Accuracy; // For Cardinality and Pages // For SQLSpecialColumns
UWORD ColType;
UWORD Scope;
UWORD Nullable;
} CATPARM;
// ODBC connection to a data source class TDBODBC; class ODBCCOL; class ODBConn;
/***********************************************************************/ /* Class DBX (ODBC exception). */ /***********************************************************************/ class DBX : public BLOCK { friendclass ODBConn; // Construction (by ThrowDBX only) -- destruction protected:
DBX(RETCODE rc, PCSZ msg = NULL); public: //virtual ~DBX() {} //void operator delete(void*, PGLOBAL, void*) {};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.