TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PreparedStatement.cpp File Reference
#include "PreparedStatement.h"
#include "MySQLConnection.h"
#include "Log.h"
+ Include dependency graph for PreparedStatement.cpp:

Functions

static bool ParamenterIndexAssertFail (uint32 stmtIndex, uint8 index, uint32 paramCount)
 

Function Documentation

static bool ParamenterIndexAssertFail ( uint32  stmtIndex,
uint8  index,
uint32  paramCount 
)
static
255 {
256  TC_LOG_ERROR("sql.driver", "Attempted to bind parameter %u%s on a PreparedStatement %u (statement has only %u parameters)", uint32(index) + 1, (index == 1 ? "st" : (index == 2 ? "nd" : (index == 3 ? "rd" : "nd"))), stmtIndex, paramCount);
257  return false;
258 }
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function: