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:

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 

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:139

Definition at line 110 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; \
} \
}
constexpr Bool_t kFALSE
Definition RtypesCore.h:101

Definition at line 95 of file TOracleStatement.cxx.

◆ CheckStatement

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

Definition at line 85 of file TOracleStatement.cxx.