mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-07 23:52:24 +00:00
Remove Duplicative MySQL Error:
This commit is contained in:
parent
ef312b7b48
commit
c82ada6dc4
@ -3853,7 +3853,6 @@ void Client::KeyRingAdd(uint32 item_id)
|
|||||||
std::string query = StringFormat("INSERT INTO keyring(char_id, item_id) VALUES(%i, %i)", character_id, item_id);
|
std::string query = StringFormat("INSERT INTO keyring(char_id, item_id) VALUES(%i, %i)", character_id, item_id);
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
if (!results.Success()) {
|
if (!results.Success()) {
|
||||||
std::cerr << "Error in Doors::HandleClick query '" << query << "' " << results.ErrorMessage() << std::endl;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10130,7 +10130,6 @@ void command_mysql(Client *c, const Seperator *sep)
|
|||||||
std::replace(query.begin(), query.end(), '#', '%');
|
std::replace(query.begin(), query.end(), '#', '%');
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
if (!results.Success()) {
|
if (!results.Success()) {
|
||||||
c->Message(0, "Invalid query: '%s', '%s'", sep->arg[2], results.ErrorMessage().c_str());
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user