DCL 3.7.4
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)
#define __SET_ERROR(_error)
#define __SET_ERROR_HANDLE(_SQLCODE)
#define __SET_ERROR_MSG(_message)

Functions

 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.

◆ __SET_ERROR

#define __SET_ERROR ( _error)
Value:
conn()->setErrorHandle(_error, 0L, __THIS_FILE__, __LINE__)
#define __THIS_FILE__
Definition _trace.h:14

Definition at line 49 of file IFXQuery.cpp.

49#define __SET_ERROR(_error) \
50 conn()->setErrorHandle(_error, 0L, __THIS_FILE__, __LINE__)

◆ __SET_ERROR_HANDLE

#define __SET_ERROR_HANDLE ( _SQLCODE)
Value:
conn()->setErrorHandle(SQL::eServerError, _SQLCODE, __THIS_FILE__, __LINE__)
@ eServerError
Definition SQLCore.h:21

Definition at line 51 of file IFXQuery.cpp.

51#define __SET_ERROR_HANDLE(_SQLCODE) \
52 conn()->setErrorHandle(SQL::eServerError, _SQLCODE, __THIS_FILE__, __LINE__)

◆ __SET_ERROR_MSG

#define __SET_ERROR_MSG ( _message)
Value:
conn()->setErrorMessage(_message, __THIS_FILE__, __LINE__)

Definition at line 53 of file IFXQuery.cpp.

53#define __SET_ERROR_MSG(_message) \
54 conn()->setErrorMessage(_message, __THIS_FILE__, __LINE__)

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 29 of file IFXQuery.cpp.

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( IFXQuery ,
SQL::Query  )

Definition at line 56 of file IFXQuery.cpp.

59 : return L ## #_sq;
60static const wchar_t* __STMT_STRING(int _sq)
61{
62 switch (_sq) {
63 __SQ_NAME(SQ_SELECT)
64 __SQ_NAME(SQ_UPDATE)
65 __SQ_NAME(SQ_DELETE)
66 __SQ_NAME(SQ_INSERT)
67 __SQ_NAME(SQ_EXECPROC)
68 }
69 return L"SQ_OTHER..";
70}
71#endif
72
74 : Query(_connection)
75{
76 ByteString strID;
77 strID = ByteString::format("%zx", (size_t)this);
78 __statementID = "stmt_" + strID;
79 __cursorID = "curs_" + strID;
80
81#if __USE_STMT_TYPE
82 __stmtType = __SQ_UNKNOWN;
83#endif
84 __inSQLDA = NULL;
85 __outSQLDA = NULL;
86 __outBuffer = NULL;
87
88 __cursorOpened = false;
89 __cursorDeclared = false;
90
91 __fields = NULL;
92 __params = NULL;
93}
#define NULL
Definition Config.h:312
#define __SQ_UNKNOWN
Definition IFXQuery.h:10
IFXQuery(IFXConnection *_connection)