DCL 3.7.4
Loading...
Searching...
No Matches
ODBCQuery.cpp File Reference
#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.

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 __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)

Functions

 IMPLEMENT_CLASSINFO (ODBCQuery, SQL::Query) ODBCQuery

Macro Definition Documentation

◆ __DCL_TRACE0_N

#define __DCL_TRACE0_N ( fmt)

Definition at line 39 of file ODBCQuery.cpp.

◆ __DCL_TRACE1_N

#define __DCL_TRACE1_N ( fmt,
arg )

Definition at line 40 of file ODBCQuery.cpp.

◆ __DCL_TRACE2_N

#define __DCL_TRACE2_N ( fmt,
arg1,
arg2 )

Definition at line 41 of file ODBCQuery.cpp.

◆ __DCL_TRACE3_N

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

Definition at line 42 of file ODBCQuery.cpp.

◆ __DCL_TRACE4_N

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

Definition at line 43 of file ODBCQuery.cpp.

◆ __DCL_TRACE5_N

#define __DCL_TRACE5_N ( fmt,
arg1,
arg2,
arg3,
arg4,
arg5 )

Definition at line 44 of file ODBCQuery.cpp.

◆ __DCL_TRACE6_N

#define __DCL_TRACE6_N ( fmt,
arg1,
arg2,
arg3,
arg4,
arg5,
arg6 )

Definition at line 45 of file ODBCQuery.cpp.

◆ __SET_ERROR

#define __SET_ERROR ( _error)
Value:
connection()->setErrorStatus(_error, __THIS_FILE__, __LINE__)
#define __THIS_FILE__
Definition _trace.h:14

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:
conn()->setErrorMessage(_msg, __THIS_FILE__, __LINE__)

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

#define __TRACE_THIS   0

Definition at line 29 of file ODBCQuery.cpp.

◆ __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)
Definition ODBCData.cpp:261
size_t __MAX(size_t x, size_t y)
Definition size_t.h:43

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( ODBCQuery ,
SQL::Query  )

Definition at line 64 of file ODBCQuery.cpp.

67 : Query(_connection)
68{
69 __hstmt = NULL;
70
71 __paramBINDs = NULL;
72 __fieldBINDs = NULL;
73
74 __params = NULL;
75 __fields = NULL;
76}
#define NULL
Definition Config.h:312