#include <dcl/Config.h>
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <stdlib.h>
#include <ecpgtype.h>
#include <sqlda.h>
#include <pgtypes_numeric.h>
#include <pgtypes_date.h>
#include <pgtypes_interval.h>
#include <pgtypes_timestamp.h>
#include <dcl/Object.h>
#include <dcl/Numeric.h>
#include <dcl/SQLCore.h>
#include "PeConnection.h"
#include "PeQuery.h"
#include "PeField.h"
#include "PeParam.h"
Go to the source code of this file.
◆ __SET_ERROR
| #define __SET_ERROR |
( |
| _error | ) |
|
Value:
Definition at line 39 of file PeQuery.cpp.
39#define __SET_ERROR(_error) \
40 conn()->setErrorHandle(_error, 0L, __THIS_FILE__, __LINE__)
◆ __SET_ERROR_HANDLE
| #define __SET_ERROR_HANDLE |
( |
| _SQLCODE | ) |
|
Value:
Definition at line 41 of file PeQuery.cpp.
41#define __SET_ERROR_HANDLE(_SQLCODE) \
42 conn()->setErrorHandle(SQL::eServerError, _SQLCODE, __THIS_FILE__, __LINE__)
◆ __SET_ERROR_MSG
| #define __SET_ERROR_MSG |
( |
| _message | ) |
|
Value:
Definition at line 43 of file PeQuery.cpp.
43#define __SET_ERROR_MSG(_message) \
44 conn()->setErrorMessage(_message, __THIS_FILE__, __LINE__)
◆ __dataTypeName()
| const wchar_t * __dataTypeName |
( |
const sqlvar_t * | _sqlvar | ) |
|
Definition at line 190 of file PeField.cpp.
191{
192 switch(_sqlvar->sqltype) {
202 SQLTYPE_NAME(ECPGt_unsigned_long_long,
"unsigned long long" );
225 }
226 return L"Unknown Type: Driver is not Support";
227}
#define SQLTYPE_NAME(_dataType, name)
◆ IMPLEMENT_CLASSINFO()
Definition at line 46 of file PeQuery.cpp.
49 : Query(pConnection)
50{
51 ByteString strID;
52 strID = ByteString::format("%zx", (size_t)this);
53 __statementID = "stmt_" + strID;
54 __cursorID = "curs_" + strID;
55
58
59 __cursorOpened = false;
60 __cursorDeclared = false;
61
64}