ROOT  6.06/08
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 <my_global.h>
+ Include dependency graph for TMySQLServer.cxx:

Go to the source code of this file.

Macros

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

Macro Definition Documentation

§ CheckConnect

#define CheckConnect (   method,
  res 
)

§ 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 248 of file TMySQLServer.cxx.

Referenced by TMySQLServer::Commit(), TMySQLServer::CreateDataBase(), TMySQLServer::DropDataBase(), TMySQLServer::Exec(), TMySQLServer::GetDataBases(), TMySQLServer::GetTableInfo(), TMySQLServer::GetTables(), TMySQLServer::GetTablesList(), TMySQLServer::PingVerify(), TMySQLServer::Query(), TMySQLServer::Reload(), TMySQLServer::Rollback(), TMySQLServer::SelectDataBase(), TMySQLServer::ServerInfo(), TMySQLServer::Shutdown(), and TMySQLServer::Statement().