summaryrefslogtreecommitdiff
path: root/src/server/database/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorAxel Cocat <ax.cocat@gmail.com>2023-01-15 17:02:43 +0100
committerGitHub <noreply@github.com>2023-01-15 11:02:43 -0500
commit07ac386e61bd07628ed1ed247069401fe08c0a76 (patch)
treebbffe2f4299230242f411065be3275982322e1a7 /src/server/database/Database/MySQLConnection.cpp
parente9b040e3d23b508871b3380185ce27cc4dae361d (diff)
feat(Core/Database): move MySQL handle and HandleMySQLErrno to protected (#14673)
* feat(Core/Database): move MySQL handle and HandleMySQLErrno to protected * fix: initialization order
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
-rw-r--r--src/server/database/Database/MySQLConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp
index b07f0d36cd..93ab2833cb 100644
--- a/src/server/database/Database/MySQLConnection.cpp
+++ b/src/server/database/Database/MySQLConnection.cpp
@@ -51,16 +51,16 @@ MySQLConnectionInfo::MySQLConnectionInfo(std::string_view infoString)
MySQLConnection::MySQLConnection(MySQLConnectionInfo& connInfo) :
m_reconnecting(false),
m_prepareError(false),
- m_queue(nullptr),
m_Mysql(nullptr),
+ m_queue(nullptr),
m_connectionInfo(connInfo),
m_connectionFlags(CONNECTION_SYNCH) { }
MySQLConnection::MySQLConnection(ProducerConsumerQueue<SQLOperation*>* queue, MySQLConnectionInfo& connInfo) :
m_reconnecting(false),
m_prepareError(false),
- m_queue(queue),
m_Mysql(nullptr),
+ m_queue(queue),
m_connectionInfo(connInfo),
m_connectionFlags(CONNECTION_ASYNC)
{