Logo ROOT   6.18/05
Reference Guide
Macros
TMySQLServer.cxx File Reference
#include "TMySQLServer.h"
#include "TMySQLResult.h"
#include "TMySQLStatement.h"
#include "TSQLColumnInfo.h"
#include "TSQLTableInfo.h"
#include "TSQLRow.h"
#include "TUrl.h"
#include "TList.h"
#include "TObjString.h"
#include "TObjArray.h"
Include dependency graph for TMySQLServer.cxx:

Macros

#define CheckConnect(method, res)
 
#define CheckErrNo(method, force, res)
 

Macro Definition Documentation

◆ CheckConnect

#define CheckConnect (   method,
  res 
)
Value:
{ \
ClearError(); \
if (!IsConnected()) { \
SetError(-1,"MySQL server is not connected",method); \
return res; \
} \
}

Definition at line 234 of file TMySQLServer.cxx.

◆ CheckErrNo

#define CheckErrNo (   method,
  force,
  res 
)
Value:
{ \
unsigned int sqlerrno = mysql_errno(fMySQL); \
if ((sqlerrno!=0) || force) { \
const char* sqlerrmsg = mysql_error(fMySQL); \
if (sqlerrno==0) { sqlerrno = 11111; sqlerrmsg = "MySQL error"; } \
SetError(sqlerrno, sqlerrmsg, method); \
return res; \
} \
}

Definition at line 245 of file TMySQLServer.cxx.