ROOT  6.06/09
Reference Guide
Macros | Functions
TSQLiteStatement.cxx File Reference
#include "TSQLiteStatement.h"
#include "TDataType.h"
#include "TDatime.h"
#include "TTimeStamp.h"
#include <stdlib.h>
+ Include dependency graph for TSQLiteStatement.cxx:

Go to the source code of this file.

Macros

#define CheckStmt(method, res)
 
#define CheckErrNo(method, force, res)
 
#define CheckGetField(method, res)
 

Functions

 ClassImp (TSQLiteStatement) TSQLiteStatement
 Normal constructor. More...
 

Macro Definition Documentation

#define CheckErrNo (   method,
  force,
  res 
)
Value:
{ \
int stmterrno = sqlite3_errcode(fStmt->fConn); \
if ((stmterrno!=0) || force) { \
const char* stmterrmsg = sqlite3_errmsg(fStmt->fConn); \
if (stmterrno==0) { stmterrno = -1; stmterrmsg = "SQLite statement error"; } \
SetError(stmterrno, stmterrmsg, method); \
return res; \
} \
}
if(pyself &&pyself!=Py_None)
return
Definition: TBase64.cxx:62

Definition at line 84 of file TSQLiteStatement.cxx.

Referenced by TSQLiteStatement::GetNumParameters().

#define CheckGetField (   method,
  res 
)
Value:
{ \
ClearError(); \
if (!IsResultSetMode()) { \
SetError(-1,"Cannot get statement parameters",method); \
return res; \
} \
if ((npar<0) || (npar>=fNumPars)) { \
SetError(-1,Form("Invalid parameter number %d", npar),method); \
return res; \
} \
}
if(pyself &&pyself!=Py_None)
return
Definition: TBase64.cxx:62
char * Form(const char *fmt,...)

Definition at line 95 of file TSQLiteStatement.cxx.

Referenced by TSQLiteStatement::ConvertToNumeric(), TSQLiteStatement::ConvertToString(), TSQLiteStatement::GetBinary(), TSQLiteStatement::GetDate(), TSQLiteStatement::GetDatime(), TSQLiteStatement::GetDouble(), TSQLiteStatement::GetInt(), TSQLiteStatement::GetLong(), TSQLiteStatement::GetLong64(), TSQLiteStatement::GetString(), TSQLiteStatement::GetTime(), TSQLiteStatement::GetTimestamp(), TSQLiteStatement::GetUInt(), TSQLiteStatement::GetULong64(), and TSQLiteStatement::IsNull().

#define CheckStmt (   method,
  res 
)
Value:
{ \
ClearError(); \
if (fStmt==0) { \
SetError(-1,"Statement handle is 0",method); \
return res; \
} \
}
if(pyself &&pyself!=Py_None)
return
Definition: TBase64.cxx:62

Definition at line 75 of file TSQLiteStatement.cxx.

Referenced by TSQLiteStatement::GetNumAffectedRows(), TSQLiteStatement::GetNumParameters(), TSQLiteStatement::Process(), and TSQLiteStatement::StoreResult().

Function Documentation

ClassImp ( TSQLiteStatement  )

Normal constructor.

Checks if statement contains parameters tags.

Definition at line 27 of file TSQLiteStatement.cxx.