Core/DBLayer: Use prepared statements in Player::SaveToDB. Also split the function up between an INSERT part (new character creation) and UPDATE part (existing character).

This commit is contained in:
Machiavelli
2011-11-25 15:14:00 +01:00
parent 4f738fe75a
commit 72675d55d8
5 changed files with 237 additions and 144 deletions
+1 -1
View File
@@ -1531,7 +1531,7 @@ class Player : public Unit, public GridObject<Player>
/*** SAVE SYSTEM ***/
/*********************************************************/
void SaveToDB();
void SaveToDB(bool create = false);
void SaveInventoryAndGoldToDB(SQLTransaction& trans); // fast save function for item/money cheating preventing
void SaveGoldToDB(SQLTransaction& trans);