diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-04-05 00:16:36 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-04-05 00:16:36 +0200 |
commit | 3c41584bbb93685c2b7b5df8db440056111d4e6e (patch) | |
tree | d08843b1c8541521ee93864aee8c1bcfb274e3d8 /src | |
parent | 70412e7e254a36398f101b4bfe1926c619063202 (diff) |
Core/Misc: Use correct field type for guids in prepared statements
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp | 2 | ||||
-rw-r--r-- | src/server/game/Entities/Corpse/Corpse.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp index 107acc92956..98c1ebd313d 100644 --- a/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp +++ b/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp @@ -431,7 +431,7 @@ void AuctionBotBuyer::PlaceBidToEntry(AuctionEntry* auction, uint32 bidPrice) // Update auction to DB PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_AUCTION_BID); - stmt->setUInt32(0, auction->bidder); + stmt->setUInt64(0, auction->bidder); stmt->setUInt32(1, auction->bid); stmt->setUInt32(2, auction->Id); trans->Append(stmt); diff --git a/src/server/game/Entities/Corpse/Corpse.cpp b/src/server/game/Entities/Corpse/Corpse.cpp index 7520e6fbdaa..1d8748a6243 100644 --- a/src/server/game/Entities/Corpse/Corpse.cpp +++ b/src/server/game/Entities/Corpse/Corpse.cpp @@ -120,7 +120,7 @@ void Corpse::SaveToDB() { index = 0; stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_CORPSE_PHASES); - stmt->setUInt32(index++, GetOwnerGUID().GetCounter()); // OwnerGuid + stmt->setUInt64(index++, GetOwnerGUID().GetCounter()); // OwnerGuid stmt->setUInt32(index++, phaseId); // PhaseId trans->Append(stmt); } |