1#ifndef __DCL_PG_CONNECTION_H__
2#define __DCL_PG_CONNECTION_H__ 20250403
10 ByteString __connectionID;
11 ByteString __lastErrorMessage;
26 virtual bool __open(
const char* _pszConnString,
size_t _n);
28 virtual bool __execute(
const char* pszSQL,
size_t n);
41 __lastErrorMessage = _message;
46 return (
_CONST char*)__connectionID.data();
50#define __SET_ERROR(_error) \
51 setErrorStatus(_error, 0L, __THIS_FILE__, __LINE__)
53#define __SET_ERROR_SQLCODE(SQLCODE) \
54setErrorStatus(SQL::eServerError, SQLCODE, __THIS_FILE__, __LINE__)
56#define __SET_ERROR_MSG(_message) \
57 setErrorStatus(_message, __THIS_FILE__, __LINE__)
#define DECLARE_CLASSINFO(class_name)
void CharsetConvertException *size_t n
PgConnection(const wchar_t *_serverTitle)
virtual bool __execute(const char *pszSQL, size_t n)
virtual bool __getErrorMessage(char *_buf, size_t *_buflen)
virtual bool __open(const char *_pszConnString, size_t _n)
virtual bool __getServerInfo(char *_buf, size_t *_buflen)
_CONST char * connectionID() const
virtual bool __createQueryInstance(SQL::Query **_queryHandleOut)
virtual bool __rollbackTrans()
virtual bool __startTrans()
virtual bool __commitTrans()
void setErrorStatus(SQL::Error _error, long _SQLCODE, const wchar_t *_filename, int _line)
__PROTECTED const wchar_t int _line
__PROTECTED const wchar_t * _filename