mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-20 14:51:34 -04:00
A great purge of obsolete macros.
--HG-- branch : trunk
This commit is contained in:
@@ -34,7 +34,7 @@ typedef UNORDERED_MAP<ACE_Based::Thread* , SqlResultQueue*> QueryQueues;
|
||||
|
||||
#define MAX_QUERY_LEN 32*1024
|
||||
|
||||
class TRINITY_DLL_SPEC Database
|
||||
class Database
|
||||
{
|
||||
protected:
|
||||
Database() : m_threadBody(NULL), m_delayThread(NULL) {};
|
||||
|
||||
@@ -200,7 +200,7 @@ bool DatabaseMysql::_Query(const char *sql, MYSQL_RES **pResult, MYSQL_FIELD **p
|
||||
{
|
||||
// guarded block for thread-safe mySQL request
|
||||
ACE_Guard<ACE_Thread_Mutex> query_connection_guard(mMutex);
|
||||
#ifdef MANGOS_DEBUG
|
||||
#ifdef TRINITY_DEBUG
|
||||
uint32 _s = getMSTime();
|
||||
#endif
|
||||
if(mysql_query(mMysql, sql))
|
||||
@@ -305,7 +305,7 @@ bool DatabaseMysql::DirectExecute(const char* sql)
|
||||
// guarded block for thread-safe mySQL request
|
||||
ACE_Guard<ACE_Thread_Mutex> query_connection_guard(mMutex);
|
||||
|
||||
#ifdef MANGOS_DEBUG
|
||||
#ifdef TRINITY_DEBUG
|
||||
uint32 _s = getMSTime();
|
||||
#endif
|
||||
if(mysql_query(mMysql, sql))
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <mysql.h>
|
||||
#endif
|
||||
|
||||
class TRINITY_DLL_SPEC DatabaseMysql : public Database
|
||||
class DatabaseMysql : public Database
|
||||
{
|
||||
friend class Trinity::OperatorNew<DatabaseMysql>;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "Field.h"
|
||||
|
||||
class TRINITY_DLL_SPEC QueryResult
|
||||
class QueryResult
|
||||
{
|
||||
public:
|
||||
QueryResult(uint64 rowCount, uint32 fieldCount)
|
||||
@@ -53,7 +53,7 @@ typedef ACE_Refcounted_Auto_Ptr<QueryResult, ACE_Null_Mutex> QueryResult_AutoPtr
|
||||
|
||||
typedef std::vector<std::string> QueryFieldNames;
|
||||
|
||||
class TRINITY_DLL_SPEC QueryNamedResult
|
||||
class QueryNamedResult
|
||||
{
|
||||
public:
|
||||
explicit QueryNamedResult(QueryResult* query, QueryFieldNames const& names) : mQuery(query), mFieldNames(names) {}
|
||||
|
||||
Reference in New Issue
Block a user