Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TOracleStatement.cxx File Reference
#include "TOracleStatement.h"
#include "TOracleServer.h"
#include "TDataType.h"
#include "snprintf.h"
#include <cstdlib>
#include <occi.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; \
} \
}
Basic string class.
Definition TString.h:136

Definition at line 113 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:101

Definition at line 98 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 88 of file TOracleStatement.cxx.