mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-06 13:12:17 +00:00
Fix crash with MySQLRequestResult::ErrorMessage()
This commit is contained in:
1 parent
d42d77d3ef
commit
9d6dc47cf4
1 file changed
+1
-1
@@ -40,7 +40,7 @@ public:
|
|||||||
MySQLRequestResult& operator=(MySQLRequestResult&& other);
|
MySQLRequestResult& operator=(MySQLRequestResult&& other);
|
||||||
|
|
||||||
bool Success() const { return m_Success;}
|
bool Success() const { return m_Success;}
|
||||||
std::string ErrorMessage() const {return std::string(m_ErrorBuffer);}
|
std::string ErrorMessage() const {return m_ErrorBuffer ? std::string(m_ErrorBuffer) : std::string("");}
|
||||||
uint32 ErrorNumber() const {return m_ErrorNumber;}
|
uint32 ErrorNumber() const {return m_ErrorNumber;}
|
||||||
uint32 RowsAffected() const {return m_RowsAffected;}
|
uint32 RowsAffected() const {return m_RowsAffected;}
|
||||||
uint32 RowCount() const {return m_RowCount;}
|
uint32 RowCount() const {return m_RowCount;}
|
||||||
|
|||||||
Reference in new issue
Block a user