From 07ac386e61bd07628ed1ed247069401fe08c0a76 Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Sun, 15 Jan 2023 17:02:43 +0100 Subject: feat(Core/Database): move MySQL handle and HandleMySQLErrno to protected (#14673) * feat(Core/Database): move MySQL handle and HandleMySQLErrno to protected * fix: initialization order --- src/server/database/Database/MySQLConnection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/database/Database/MySQLConnection.cpp') 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* 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) { -- cgit v1.2.3