#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.
|
| #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) |
◆ __BIND_FORMATS
Value: ((int*)((char*)__inBINDs \
+ (Query::__paramCount * (sizeof(char*) + sizeof(int) * 2))))
◆ __BIND_LENGTHS
Value: ((int*)((char*)__inBINDs \
+ (Query::__paramCount * (sizeof(char*) + sizeof(int) * 1))))
◆ __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 | ) |
|
◆ __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_BIND_FORMAT
| #define __SET_BIND_FORMAT |
( |
| _index, |
|
|
| _format ) |
◆ __SET_BIND_LENGTH
| #define __SET_BIND_LENGTH |
( |
| _index, |
|
|
| _length ) |
◆ __SET_BIND_TYPE
| #define __SET_BIND_TYPE |
( |
| _index, |
|
|
| _type ) |
◆ __SET_BIND_VALUE
| #define __SET_BIND_VALUE |
( |
| _index, |
|
|
| _value ) |
◆ __SET_ERROR
| #define __SET_ERROR |
( |
| _error | ) |
|
Value:
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:
Definition at line 51 of file PqQuery.cpp.
51#define __SET_ERROR_MSG(_message) \
52 conn()->setErrorMessage(_message, __THIS_FILE__, __LINE__)
◆ __TRACE_THIS
◆ IMPLEMENT_CLASSINFO()
Definition at line 54 of file PqQuery.cpp.
57 : Query(pConnection)
58{
59 Query::__placeholder = L'$';
60 __stmtNo = 0;
61 __nfields = 0;
62
66
68 __row = -1;
69}