DCL 3.7.4
Loading...
Searching...
No Matches
SQLQuery.cpp File Reference
#include <dcl/Config.h>
#include <wchar.h>
#include <wctype.h>
#include <dcl/Object.h>
#include <dcl/Charset.h>
#include <dcl/SQL.h>

Go to the source code of this file.

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (SQLFields, Object) SQLFields
 IMPLEMENT_CLASSINFO (SQLParams, Object) SQLParams
 IMPLEMENT_CLASSINFO (SQLQuery, Object) void SQLQuery

Function Documentation

◆ IMPLEMENT_CLASSINFO() [1/3]

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( SQLFields ,
Object  )

Definition at line 29 of file SQLQuery.cpp.

32{
33 __fields = NULL;
34 __count = 0;
35}
#define NULL
Definition Config.h:312

◆ IMPLEMENT_CLASSINFO() [2/3]

IMPLEMENT_CLASSINFO ( SQLParams ,
Object  )

Definition at line 111 of file SQLQuery.cpp.

114{
115 __params = NULL;
116 __count = 0;
117}

◆ IMPLEMENT_CLASSINFO() [3/3]

IMPLEMENT_CLASSINFO ( SQLQuery ,
Object  )

Definition at line 248 of file SQLQuery.cpp.

251{
252 __handle = NULL;
253 __connection = NULL;
254
255 __DCL_ASSERT(_conn != NULL);
256
257 SQL::Query* hQuery = NULL;
258 if (!_conn->handle()->createQueryInstance(&hQuery)) {
259 throw new SQLException(_conn, NULL);
260 }
261 __DCL_ASSERT(hQuery != NULL);
262
263 __handle = hQuery;
264 __connection = _conn;
265}
#define __DCL_ASSERT(expr)
Definition Object.h:394