Removed command character backup

Changed all remaining references from the character_ table to the character_data
This commit is contained in:
Akkadius committed 2014-09-06 22:35:19 -05:00
1 parent e50cf5c4be
commit 4c12d31e4a
12 files changed
+26 -189

No files matched your search

+1 -1
View File
@@ -728,7 +728,7 @@ uint32 Database::GetAccountIDByChar(const char* charname) {
// Retrieve account_id for a given char_id
uint32 Database::GetAccountIDByChar(uint32 char_id) {
std::string query = StringFormat("SELECT `account_id` FROM `character_` WHERE `id` = %i LIMIT 1", char_id);
std::string query = StringFormat("SELECT `account_id` FROM `character_data` WHERE `id` = %i LIMIT 1", char_id);
auto results = QueryDatabase(query);
if (!results.Success()) {
LogFile->write(EQEMuLog::Error, "Error in GetAccountIDByChar query '%s': %s", query.c_str(), results.ErrorMessage().c_str());