DCL 3.7.4
Loading...
Searching...
No Matches
ODBCConnection.cpp File Reference
#include <dcl/Config.h>
#include <string.h>
#include <sql.h>
#include <sqlext.h>
#include <dcl/Object.h>
#include <dcl/size_t.h>
#include <dcl/Charset.h>
#include <dcl/SQLCore.h>
#include "ODBCConnection.h"
#include "ODBCQuery.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_MSG(_msg)
#define __SET_ERROR_HANDLE(_rc, _htype, _handle)
#define __SET_INFO_HANDLE(_rc, _htype, _handle)
#define CASE_STR(rc)

Functions

 IMPLEMENT_CLASSINFO (ODBCConnection, SQL::Connection) ODBCConnection

Macro Definition Documentation

◆ __DCL_TRACE0_N

#define __DCL_TRACE0_N ( fmt)

Definition at line 32 of file ODBCConnection.cpp.

◆ __DCL_TRACE1_N

#define __DCL_TRACE1_N ( fmt,
arg )

Definition at line 33 of file ODBCConnection.cpp.

◆ __DCL_TRACE2_N

#define __DCL_TRACE2_N ( fmt,
arg1,
arg2 )

Definition at line 34 of file ODBCConnection.cpp.

◆ __DCL_TRACE3_N

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

Definition at line 35 of file ODBCConnection.cpp.

◆ __DCL_TRACE4_N

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

Definition at line 36 of file ODBCConnection.cpp.

◆ __SET_ERROR

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

Definition at line 44 of file ODBCConnection.cpp.

44#define __SET_ERROR(_error) \
45 setErrorStatus(_error, __THIS_FILE__, __LINE__)

◆ __SET_ERROR_HANDLE

#define __SET_ERROR_HANDLE ( _rc,
_htype,
_handle )
Value:
setErrorHandle(_rc, _htype, _handle, __THIS_FILE__, __LINE__)

Definition at line 48 of file ODBCConnection.cpp.

48#define __SET_ERROR_HANDLE(_rc, _htype, _handle) \
49 setErrorHandle(_rc, _htype, _handle, __THIS_FILE__, __LINE__)

◆ __SET_ERROR_MSG

#define __SET_ERROR_MSG ( _msg)
Value:
setErrorMessage(_msg, __THIS_FILE__, __LINE__)

Definition at line 46 of file ODBCConnection.cpp.

46#define __SET_ERROR_MSG(_msg) \
47 setErrorMessage(_msg, __THIS_FILE__, __LINE__)

◆ __SET_INFO_HANDLE

#define __SET_INFO_HANDLE ( _rc,
_htype,
_handle )
Value:
if (_rc == SQL_SUCCESS_WITH_INFO) { \
setErrorHandle(_rc, _htype, _handle, __THIS_FILE__, __LINE__); \
}

Definition at line 50 of file ODBCConnection.cpp.

50#define __SET_INFO_HANDLE(_rc, _htype, _handle) \
51 if (_rc == SQL_SUCCESS_WITH_INFO) { \
52 setErrorHandle(_rc, _htype, _handle, __THIS_FILE__, __LINE__); \
53 }

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 24 of file ODBCConnection.cpp.

◆ CASE_STR

#define CASE_STR ( rc)
Value:
case rc: __lastErrorMessage = #rc; break;

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( ODBCConnection ,
SQL::Connection  )

Definition at line 55 of file ODBCConnection.cpp.

58 : Connection(_serverTitle)
59{
60 Connection::__canTransact = true;
61 __henv = NULL;
62 __hdbc = NULL;
63
64 __IS_MS_SS = false;
65}
#define NULL
Definition Config.h:312