Logo ROOT   6.10/09
Reference Guide
Macros
TOracleStatement.cxx File Reference
#include "TOracleStatement.h"
#include "TOracleServer.h"
#include "TDataType.h"
#include <stdlib.h>
Include dependency graph for TOracleStatement.cxx:

Macros

#define CheckGetField(method, defres)
 
#define CheckSetPar(method)
 
#define CheckStatement(method, res)
 

Macro Definition Documentation

◆ CheckGetField

#define CheckGetField (   method,
  defres 
)
Value:
{ \
ClearError(); \
if (!IsResultSet()) { \
SetError(-1,"There is no result set for statement", method); \
return defres; \
} \
if ((npar<0) || (npar>=fBufferSize)) { \
TString errmsg("Invalid parameter number "); \
errmsg+= npar; \
SetError(-1,errmsg.Data(),method); \
return defres; \
} \
}

Definition at line 117 of file TOracleStatement.cxx.

◆ CheckSetPar

#define CheckSetPar (   method)
Value:
{ \
CheckStatement(method, kFALSE); \
if (!IsParSettMode()) { \
SetError(-1,"Parameters cannot be set for this statement", method); \
return kFALSE; \
} \
if (npar<0) { \
TString errmsg("Invalid parameter number "); \
errmsg+= npar; \
SetError(-1,errmsg.Data(),method); \
return kFALSE; \
} \
}
const Bool_t kFALSE
Definition: RtypesCore.h:92

Definition at line 102 of file TOracleStatement.cxx.

◆ CheckStatement

#define CheckStatement (   method,
  res 
)
Value:
{ \
ClearError(); \
if (fStmt==0) { \
SetError(-1,"Statement is not correctly initialized",method); \
return res; \
} \
}

Definition at line 92 of file TOracleStatement.cxx.