mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 09:28:21 +00:00
switched to reference rather than copy semantics for query on RunQuery
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ void DBcore::ping() {
|
|||||||
MDatabase.unlock();
|
MDatabase.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DBcore::RunQuery(const std::string query, char* errbuf, MYSQL_RES** result, uint32* affected_rows, uint32* last_insert_id, uint32* errnum, bool retry) {
|
bool DBcore::RunQuery(const std::string& query, char* errbuf, MYSQL_RES** result, uint32* affected_rows, uint32* last_insert_id, uint32* errnum, bool retry) {
|
||||||
_CP(DBcore_RunQuery);
|
_CP(DBcore_RunQuery);
|
||||||
if (errnum)
|
if (errnum)
|
||||||
*errnum = 0;
|
*errnum = 0;
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ public:
|
|||||||
DBcore();
|
DBcore();
|
||||||
~DBcore();
|
~DBcore();
|
||||||
eStatus GetStatus() { return pStatus; }
|
eStatus GetStatus() { return pStatus; }
|
||||||
bool RunQuery(const std::string query, char* errbuf = 0, MYSQL_RES** result = 0, uint32* affected_rows = 0, uint32* last_insert_id = 0, uint32* errnum = 0, bool retry = true);
|
bool RunQuery(const std::string& query, char* errbuf = 0, MYSQL_RES** result = 0, uint32* affected_rows = 0, uint32* last_insert_id = 0, uint32* errnum = 0, bool retry = true);
|
||||||
void DoEscapeString(std::string& outString, const char* frombuf, uint32 fromlen);
|
void DoEscapeString(std::string& outString, const char* frombuf, uint32 fromlen);
|
||||||
void ping();
|
void ping();
|
||||||
MYSQL* getMySQL(){ return &mysql; }
|
MYSQL* getMySQL(){ return &mysql; }
|
||||||
|
|||||||
Reference in New Issue
Block a user