string based QueryDatabase

This commit is contained in:
Arthur Ice
2014-07-06 16:15:54 -07:00
committed by Arthur Ice
parent 9a30c24654
commit 1655050730
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -58,6 +58,11 @@ void DBcore::ping() {
MDatabase.unlock();
}
MySQLRequestResult DBcore::QueryDatabase(std::string query, bool retryOnFailureOnce)
{
return QueryDatabase(query.c_str(), query.length(), retryOnFailureOnce);
}
MySQLRequestResult DBcore::QueryDatabase(const char* query, uint32 querylen, bool retryOnFailureOnce)
{
LockMutex lock(&MDatabase);