Make Mangos compatible with newer MySQL pt2. Based by work by @leprasmurf

This commit is contained in:
Antz 2020-04-25 14:57:20 +01:00
parent 7fd24f7a6a
commit f9dd378355
No known key found for this signature in database
GPG Key ID: 0DF907270598C85F
5 changed files with 6 additions and 6 deletions

View File

@ -162,9 +162,9 @@ void Corpse::DeleteFromDB()
bool Corpse::LoadFromDB(uint32 lowguid, Field* fields)
{
//// 0 1 2 3 4 5 6
// QueryResult *result = CharacterDatabase.Query("SELECT corpse.guid, player, corpse.position_x, corpse.position_y, corpse.position_z, corpse.orientation, corpse.map,"
// QueryResult *result = CharacterDatabase.Query("SELECT `corpse`.`guid`, `player`, `corpse`.`position_x`, `corpse`.`position_y`, `corpse`.`position_z`, `corpse`.`orientation`, `corpse`.`map`,"
//// 7 8 9 10 11 12 13 14 15 16 17
// "time, corpse_type, instance, gender, race, class, playerBytes, playerBytes2, equipmentCache, guildId, playerFlags FROM corpse"
// "`time`, `corpse_type`, `instance`, `gender`, `race`, `class`, `playerBytes`, `playerBytes2`, `equipmentCache`, `guildId`, `playerFlags` FROM `corpse`"
uint32 playerLowGuid = fields[1].GetUInt32();
float positionX = fields[2].GetFloat();
float positionY = fields[3].GetFloat();

View File

@ -1272,7 +1272,7 @@ void PlayerbotFactory::InitAmmo()
return;
}
QueryResult *results = WorldDatabase.PQuery("select max(entry), max(RequiredLevel) from item_template where class = '%u' and subclass = '%u' and RequiredLevel <= '%u'",
QueryResult *results = WorldDatabase.PQuery("select max(`entry`), max(`RequiredLevel`) from `item_template` where `class` = '%u' and `subclass` = '%u' and `RequiredLevel` <= '%u'",
ITEM_CLASS_PROJECTILE, subClass, bot->getLevel());
if (!results)
{

@ -1 +1 @@
Subproject commit aab1441a7a9f3fb5631d76e5a77ff884261263a6
Subproject commit f7adf330284995eca84a68be538fdbe0978a107d

@ -1 +1 @@
Subproject commit 4feb6a19c9bd3f3eb6f51dbf9ff390c5fe4cb345
Subproject commit eafcd2d8622bb2b3161206914c21a7a397ec1b32

@ -1 +1 @@
Subproject commit eed95dd377003c8a414d1684c7f64ca063b7ed1c
Subproject commit 3d46391e769b40f3d1ba170de67ef8d139f67540