aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-12-13 16:13:32 +0100
committerMachiavelli <none@none>2010-12-13 16:13:32 +0100
commitf1a73e89b82c770c111070f0a3e3adb173432466 (patch)
treea78ea0170954baecdcd9652eb32c53737bc99a5c /src/server/shared/Database/MySQLConnection.cpp
parentdd2602d3ecbd91c8accd51f62e2b89af3549dbd8 (diff)
parentea29d87dccc50d985e90c013c128c34a0b8299f7 (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.cpp')
-rwxr-xr-xsrc/server/shared/Database/MySQLConnection.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp
index de05ee311db..20c614b5333 100755
--- a/src/server/shared/Database/MySQLConnection.cpp
+++ b/src/server/shared/Database/MySQLConnection.cpp
@@ -34,11 +34,20 @@
MySQLConnection::MySQLConnection(MySQLConnectionInfo& connInfo) :
m_queue(NULL),
+m_worker(NULL),
m_Mysql(NULL),
m_connectionInfo(connInfo)
{
}
+MySQLConnection::MySQLConnection(ACE_Activation_Queue* queue, MySQLConnectionInfo& connInfo) :
+m_queue(queue),
+m_Mysql(NULL),
+m_connectionInfo(connInfo)
+{
+ m_worker = new DatabaseWorker(m_queue, this);
+}
+
MySQLConnection::~MySQLConnection()
{
ASSERT (m_Mysql); /// MySQL context must be present at this point