DCL 4.0
Loading...
Searching...
No Matches
IFXQuery.cpp File Reference
#include <dcl/Config.h>
#include <sqlhdr.h>
#include <sqliapi.h>
#include <sqlda.h>
#include <sqlstype.h>
#include <sqltypes.h>
#include <stdlib.h>
#include <string.h>
#include <dcl/Object.h>
#include <dcl/Numeric.h>
#include <dcl/SQLCore.h>
#include "IFXConnection.h"
#include "IFXQuery.h"
#include "IFXField.h"
#include "IFXParam.h"
#include "IFXUtils.h"

Go to the source code of this file.

Macros

#define __TRACE_THIS   0
#define __DCL_TRACE0_N(fmt)
#define __DCL_TRACE1_N(fmt, arg)
#define __DCL_TRACE2_N(fmt, arg1, arg2)
#define __DCL_TRACE3_N(fmt, arg1, arg2, arg3)
#define __DCL_TRACE4_N(fmt, arg1, arg2, arg3, arg4)

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (IFXQuery, SQL::Query) IFXQuery

Macro Definition Documentation

◆ __DCL_TRACE0_N

#define __DCL_TRACE0_N ( fmt)

Definition at line 37 of file IFXQuery.cpp.

◆ __DCL_TRACE1_N

#define __DCL_TRACE1_N ( fmt,
arg )

Definition at line 38 of file IFXQuery.cpp.

◆ __DCL_TRACE2_N

#define __DCL_TRACE2_N ( fmt,
arg1,
arg2 )

Definition at line 39 of file IFXQuery.cpp.

◆ __DCL_TRACE3_N

#define __DCL_TRACE3_N ( fmt,
arg1,
arg2,
arg3 )

Definition at line 40 of file IFXQuery.cpp.

◆ __DCL_TRACE4_N

#define __DCL_TRACE4_N ( fmt,
arg1,
arg2,
arg3,
arg4 )

Definition at line 41 of file IFXQuery.cpp.

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 29 of file IFXQuery.cpp.

Function Documentation

◆ IMPLEMENT_CLASSINFO()

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( IFXQuery ,
SQL::Query  )

Definition at line 49 of file IFXQuery.cpp.

52 : return L ## #_sq;
53
54static const wchar_t* __STMT_STRING(int _sq)
55{
56 switch (_sq) {
57 __SQ_NAME(SQ_SELECT)
58 __SQ_NAME(SQ_UPDATE)
59 __SQ_NAME(SQ_DELETE)
60 __SQ_NAME(SQ_INSERT)
61 __SQ_NAME(SQ_EXECPROC)
62 }
63 return L"SQ_OTHER..";
64}
65#endif
66
68 : Query(pConnection)
69{
70 ByteString strID;
71 strID = ByteString::format("%p", this);
72
73 __statementID = "stmt_" + strID;
74 __cursorID = "cursor_" + strID;
75
76#if __USE_STMT_TYPE
77 __stmtType = __SQ_UNKNOWN;
78#endif
79 __inSQLDA = NULL;
80 __outSQLDA = NULL;
81 __outBuffer = NULL;
82
83 __cursorOpened = false;
84 __cursorDeclared = false;
85
86 __fields = NULL;
87 __params = NULL;
88}
#define NULL
Definition Config.h:340
#define __SQ_UNKNOWN
Definition IFXQuery.h:10
IFXQuery(IFXConnection *pConnection)