#include <dcl/Config.h>
#include <stdlib.h>
#include <string.h>
#include <sql.h>
#include <sqlext.h>
#include <msodbcsql.h>
#include <dcl/Object.h>
#include <dcl/size_t.h>
#include <dcl/SQLCore.h>
#include <dcl/Charset.h>
#include "ODBCConnection.h"
#include "ODBCQuery.h"
#include "ODBCData.h"
#include "ODBCField.h"
#include "ODBCParam.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 | __DCL_TRACE5_N(fmt, arg1, arg2, arg3, arg4, arg5) |
| #define | __DCL_TRACE6_N(fmt, arg1, arg2, arg3, arg4, arg5, arg6) |
| #define | __SET_ERROR(_error) |
| #define | __SET_ERROR_MSG(_msg) |
| #define | __SET_ERROR_HANDLE(_rc, _htype, _handle) |
| #define | __SET_INFO_HANDLE(_rc, _htype, _handle) |
| #define | __TYPE_PARAM_SIZE(_type, _size) |
| #define | __TYPE_PARAM_ALIGN(_offset) |
◆ __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 ) |
◆ __DCL_TRACE5_N
| #define __DCL_TRACE5_N |
( |
| fmt, |
|
|
| arg1, |
|
|
| arg2, |
|
|
| arg3, |
|
|
| arg4, |
|
|
| arg5 ) |
◆ __DCL_TRACE6_N
| #define __DCL_TRACE6_N |
( |
| fmt, |
|
|
| arg1, |
|
|
| arg2, |
|
|
| arg3, |
|
|
| arg4, |
|
|
| arg5, |
|
|
| arg6 ) |
◆ __SET_ERROR
| #define __SET_ERROR |
( |
| _error | ) |
|
Value:
Definition at line 53 of file ODBCQuery.cpp.
53#define __SET_ERROR(_error) \
54 connection()->setErrorStatus(_error, __THIS_FILE__, __LINE__)
◆ __SET_ERROR_HANDLE
| #define __SET_ERROR_HANDLE |
( |
| _rc, |
|
|
| _htype, |
|
|
| _handle ) |
Value: conn()->setErrorHandle(_rc, _htype, _handle,
__THIS_FILE__, __LINE__)
Definition at line 57 of file ODBCQuery.cpp.
57#define __SET_ERROR_HANDLE(_rc, _htype, _handle) \
58 conn()->setErrorHandle(_rc, _htype, _handle, __THIS_FILE__, __LINE__)
◆ __SET_ERROR_MSG
| #define __SET_ERROR_MSG |
( |
| _msg | ) |
|
Value:
Definition at line 55 of file ODBCQuery.cpp.
55#define __SET_ERROR_MSG(_msg) \
56 conn()->setErrorMessage(_msg, __THIS_FILE__, __LINE__)
◆ __SET_INFO_HANDLE
| #define __SET_INFO_HANDLE |
( |
| _rc, |
|
|
| _htype, |
|
|
| _handle ) |
Value: if (_rc == SQL_SUCCESS_WITH_INFO) { \
conn()->setErrorHandle(_rc, _htype, _handle,
__THIS_FILE__, __LINE__); \
}
Definition at line 59 of file ODBCQuery.cpp.
59#define __SET_INFO_HANDLE(_rc, _htype, _handle) \
60 if (_rc == SQL_SUCCESS_WITH_INFO) { \
61 conn()->setErrorHandle(_rc, _htype, _handle, __THIS_FILE__, __LINE__); \
62 }
◆ __TRACE_THIS
◆ __TYPE_PARAM_ALIGN
| #define __TYPE_PARAM_ALIGN |
( |
| _offset | ) |
|
Value: ((_offset + sizeof(long) - 1) & ~(sizeof(long) - 1))
◆ __TYPE_PARAM_SIZE
| #define __TYPE_PARAM_SIZE |
( |
| _type, |
|
|
| _size ) |
Value:
__DCL_BEGIN_NAMESPACE union __PARAM_BUFFER_MINIMAL PARAM_BUFFER_MINIMAL
static SQLULEN __TYPE_SIZE(SQLSMALLINT _type, SQLULEN _size)
size_t __MAX(size_t x, size_t y)
◆ IMPLEMENT_CLASSINFO()
Definition at line 64 of file ODBCQuery.cpp.
67 : Query(_connection)
68{
70
73
76}