#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.
|
| #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) |
◆ __DCL_TRACE0_N
| #define __DCL_TRACE0_N |
( |
| fmt | ) |
|
◆ __DCL_TRACE1_N
| #define __DCL_TRACE1_N |
( |
| fmt, |
|
|
| arg ) |
◆ __DCL_TRACE2_N
| #define __DCL_TRACE2_N |
( |
| fmt, |
|
|
| arg1, |
|
|
| arg2 ) |
◆ __DCL_TRACE3_N
| #define __DCL_TRACE3_N |
( |
| fmt, |
|
|
| arg1, |
|
|
| arg2, |
|
|
| arg3 ) |
◆ __DCL_TRACE4_N
| #define __DCL_TRACE4_N |
( |
| fmt, |
|
|
| arg1, |
|
|
| arg2, |
|
|
| arg3, |
|
|
| arg4 ) |
◆ __SET_ERROR
| #define __SET_ERROR |
( |
| _error | ) |
|
Value:
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:
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:
Definition at line 53 of file IFXQuery.cpp.
53#define __SET_ERROR_MSG(_message) \
54 conn()->setErrorMessage(_message, __THIS_FILE__, __LINE__)
◆ __TRACE_THIS
◆ IMPLEMENT_CLASSINFO()
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
83#endif
87
88 __cursorOpened = false;
89 __cursorDeclared = false;
90
93}
IFXQuery(IFXConnection *_connection)