mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Cleanup Database::CheckInstanceExists
This commit is contained in:
parent
e5f22f1f00
commit
00ae27136c
@ -3861,7 +3861,15 @@ bool Database::RemoveClientsFromInstance(uint16 instance_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Database::CheckInstanceExists(uint16 instance_id) {
|
bool Database::CheckInstanceExists(uint16 instance_id) {
|
||||||
std::string query = StringFormat("SELECT `id` FROM `instance_list` WHERE `id` = %u", instance_id);
|
std::string query = StringFormat(
|
||||||
|
"SELECT "
|
||||||
|
"`id` "
|
||||||
|
"FROM "
|
||||||
|
"`instance_list` "
|
||||||
|
"WHERE "
|
||||||
|
"`id` = %u",
|
||||||
|
instance_id
|
||||||
|
);
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user