AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MySQLPreparedStatement.cpp File Reference
#include "MySQLPreparedStatement.h"
#include "Errors.h"
#include "Log.h"
#include "MySQLHacks.h"
#include "PreparedStatement.h"

Go to the source code of this file.

Classes

struct  MySQLType< T >
 
struct  MySQLType< uint8 >
 
struct  MySQLType< uint16 >
 
struct  MySQLType< uint32 >
 
struct  MySQLType< uint64 >
 
struct  MySQLType< int8 >
 
struct  MySQLType< int16 >
 
struct  MySQLType< int32 >
 
struct  MySQLType< int64 >
 
struct  MySQLType< float >
 
struct  MySQLType< double >
 

Functions

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

Function Documentation

◆ ParamenterIndexAssertFail()

static bool ParamenterIndexAssertFail ( uint32  stmtIndex,
uint8  index,
uint32  paramCount 
)
static
102{
103 LOG_ERROR("sql.driver", "Attempted to bind parameter {}{} on a PreparedStatement {} (statement has only {} parameters)",
104 uint32(index) + 1, (index == 1 ? "st" : (index == 2 ? "nd" : (index == 3 ? "rd" : "nd"))), stmtIndex, paramCount);
105
106 return false;
107}
std::uint32_t uint32
Definition: Define.h:108
#define LOG_ERROR(filterType__,...)
Definition: Log.h:157

References LOG_ERROR.

Referenced by MySQLPreparedStatement::AssertValidIndex().