Core/DBLayer: Pass connection info down to lower level class MySQLConnection and use relevant data in logging messages in its methods
--HG-- branch : trunk
This commit is contained in:
1 parent
d3b30e979a
commit
fcec787e9c
9 files changed
+58
-49
No files matched your search
@@ -18,9 +18,9 @@
|
||||
|
||||
#include "CharacterDatabase.h"
|
||||
|
||||
bool CharacterDatabaseConnection::Open(const MySQLConnectionInfo& connInfo)
|
||||
bool CharacterDatabaseConnection::Open()
|
||||
{
|
||||
if (!MySQLConnection::Open(connInfo))
|
||||
if (!MySQLConnection::Open())
|
||||
return false;
|
||||
|
||||
m_stmts.resize(MAX_CHARACTERDATABASE_STATEMENTS);
|
||||
|
||||
@@ -26,11 +26,11 @@ class CharacterDatabaseConnection : public MySQLConnection
|
||||
{
|
||||
public:
|
||||
//- Constructors for sync and async connections
|
||||
CharacterDatabaseConnection() : MySQLConnection() {}
|
||||
CharacterDatabaseConnection(ACE_Activation_Queue* q) : MySQLConnection(q) {}
|
||||
CharacterDatabaseConnection(const MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) {}
|
||||
CharacterDatabaseConnection(ACE_Activation_Queue* q, const MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) {}
|
||||
|
||||
//- Loads databasetype specific prepared statements
|
||||
bool Open(const MySQLConnectionInfo& connInfo);
|
||||
bool Open();
|
||||
};
|
||||
|
||||
typedef DatabaseWorkerPool<CharacterDatabaseConnection> CharacterDatabaseWorkerPool;
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
|
||||
#include "LoginDatabase.h"
|
||||
|
||||
bool LoginDatabaseConnection::Open(const MySQLConnectionInfo& connInfo)
|
||||
bool LoginDatabaseConnection::Open()
|
||||
{
|
||||
if (!MySQLConnection::Open(connInfo))
|
||||
if (!MySQLConnection::Open())
|
||||
return false;
|
||||
|
||||
m_stmts.resize(MAX_LOGINDATABASE_STATEMENTS);
|
||||
|
||||
@@ -26,11 +26,11 @@ class LoginDatabaseConnection : public MySQLConnection
|
||||
{
|
||||
public:
|
||||
//- Constructors for sync and async connections
|
||||
LoginDatabaseConnection() : MySQLConnection() {}
|
||||
LoginDatabaseConnection(ACE_Activation_Queue* q) : MySQLConnection(q) {}
|
||||
LoginDatabaseConnection(const MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) {}
|
||||
LoginDatabaseConnection(ACE_Activation_Queue* q, const MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) {}
|
||||
|
||||
//- Loads databasetype specific prepared statements
|
||||
bool Open(const MySQLConnectionInfo& connInfo);
|
||||
bool Open();
|
||||
};
|
||||
|
||||
typedef DatabaseWorkerPool<LoginDatabaseConnection> LoginDatabaseWorkerPool;
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
|
||||
#include "WorldDatabase.h"
|
||||
|
||||
bool WorldDatabaseConnection::Open(const MySQLConnectionInfo& connInfo)
|
||||
bool WorldDatabaseConnection::Open()
|
||||
{
|
||||
if (!MySQLConnection::Open(connInfo))
|
||||
if (!MySQLConnection::Open())
|
||||
return false;
|
||||
|
||||
m_stmts.resize(MAX_WORLDDATABASE_STATEMENTS);
|
||||
|
||||
@@ -26,11 +26,11 @@ class WorldDatabaseConnection : public MySQLConnection
|
||||
{
|
||||
public:
|
||||
//- Constructors for sync and async connections
|
||||
WorldDatabaseConnection() : MySQLConnection() {}
|
||||
WorldDatabaseConnection(ACE_Activation_Queue* q) : MySQLConnection(q) {}
|
||||
WorldDatabaseConnection(const MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) {}
|
||||
WorldDatabaseConnection(ACE_Activation_Queue* q, const MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) {}
|
||||
|
||||
//- Loads databasetype specific prepared statements
|
||||
bool Open(const MySQLConnectionInfo& connInfo);
|
||||
bool Open();
|
||||
};
|
||||
|
||||
typedef DatabaseWorkerPool<WorldDatabaseConnection> WorldDatabaseWorkerPool;
|
||||
|
||||
Reference in new issue
Block a user