DCL 3.7.4
Loading...
Searching...
No Matches
PqQuery.cpp File Reference
#include <dcl/Config.h>
#include <stdlib.h>
#include <string.h>
#include <libpq-fe.h>
#include <dcl/Object.h>
#include <dcl/SQLCore.h>
#include "PqConnection.h"
#include "PqQuery.h"
#include "PqField.h"
#include "PqParam.h"
#include "PqTypes.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(_message)
#define __BIND_VALUES   ((const char**)((char*)__inBINDs))
#define __BIND_TYPES
#define __BIND_LENGTHS
#define __BIND_FORMATS
#define __SET_BIND_TYPE(_index, _type)
#define __SET_BIND_VALUE(_index, _value)
#define __SET_BIND_LENGTH(_index, _length)
#define __SET_BIND_FORMAT(_index, _format)

Functions

 IMPLEMENT_CLASSINFO (PqQuery, SQL::Query) PqQuery

Macro Definition Documentation

◆ __BIND_FORMATS

#define __BIND_FORMATS
Value:
((int*)((char*)__inBINDs \
+ (Query::__paramCount * (sizeof(char*) + sizeof(int) * 2))))

◆ __BIND_LENGTHS

#define __BIND_LENGTHS
Value:
((int*)((char*)__inBINDs \
+ (Query::__paramCount * (sizeof(char*) + sizeof(int) * 1))))

◆ __BIND_TYPES

#define __BIND_TYPES
Value:
((Oid*)((char*)__inBINDs \
+ (Query::__paramCount * (sizeof(char*) + sizeof(int) * 0))))

◆ __BIND_VALUES

#define __BIND_VALUES   ((const char**)((char*)__inBINDs))

◆ __DCL_TRACE0_N

#define __DCL_TRACE0_N ( fmt)

Definition at line 35 of file PqQuery.cpp.

◆ __DCL_TRACE1_N

#define __DCL_TRACE1_N ( fmt,
arg )

Definition at line 36 of file PqQuery.cpp.

◆ __DCL_TRACE2_N

#define __DCL_TRACE2_N ( fmt,
arg1,
arg2 )

Definition at line 37 of file PqQuery.cpp.

◆ __DCL_TRACE3_N

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

Definition at line 38 of file PqQuery.cpp.

◆ __DCL_TRACE4_N

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

Definition at line 39 of file PqQuery.cpp.

◆ __DCL_TRACE5_N

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

Definition at line 40 of file PqQuery.cpp.

◆ __DCL_TRACE6_N

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

Definition at line 41 of file PqQuery.cpp.

◆ __SET_BIND_FORMAT

#define __SET_BIND_FORMAT ( _index,
_format )
Value:
__BIND_FORMATS[_index] = _format
#define __BIND_FORMATS

◆ __SET_BIND_LENGTH

#define __SET_BIND_LENGTH ( _index,
_length )
Value:
__BIND_LENGTHS[_index] = _length
#define __BIND_LENGTHS

◆ __SET_BIND_TYPE

#define __SET_BIND_TYPE ( _index,
_type )
Value:
__BIND_TYPES[_index] = _type
#define __BIND_TYPES

◆ __SET_BIND_VALUE

#define __SET_BIND_VALUE ( _index,
_value )
Value:
__BIND_VALUES[_index] = _value
#define __BIND_VALUES

◆ __SET_ERROR

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

Definition at line 49 of file PqQuery.cpp.

49#define __SET_ERROR(_error) \
50 connection()->setErrorStatus(_error, __THIS_FILE__, __LINE__)

◆ __SET_ERROR_MSG

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

Definition at line 51 of file PqQuery.cpp.

51#define __SET_ERROR_MSG(_message) \
52 conn()->setErrorMessage(_message, __THIS_FILE__, __LINE__)

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 25 of file PqQuery.cpp.

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( PqQuery ,
SQL::Query  )

Definition at line 54 of file PqQuery.cpp.

57 : Query(pConnection)
58{
59 Query::__placeholder = L'$';
60 __stmtNo = 0;
61 __nfields = 0;
62
63 __inBINDs = NULL;
64 __fields = NULL;
65 __params = NULL;
66
67 __res = NULL;
68 __row = -1;
69}
#define NULL
Definition Config.h:312