diff options
author | Andreas Habel <mail@exceptionfault.de> | 2008-10-24 10:16:39 +0000 |
---|---|---|
committer | Andreas Habel <mail@exceptionfault.de> | 2008-10-24 10:16:39 +0000 |
commit | ef9852cddecfc5abce38438ca2138defb1a9b1bf (patch) | |
tree | 5b44f19205abdeb09f2ecbd513646a5cf87c04da /src/account-server/dalstorage.hpp | |
parent | bb65f5e72a77c4ef111a1e942766c6a66626bd05 (diff) | |
download | manaserv-ef9852cddecfc5abce38438ca2138defb1a9b1bf.tar.gz manaserv-ef9852cddecfc5abce38438ca2138defb1a9b1bf.tar.bz2 manaserv-ef9852cddecfc5abce38438ca2138defb1a9b1bf.tar.xz manaserv-ef9852cddecfc5abce38438ca2138defb1a9b1bf.zip |
Fixed a bug when trying to change password or mailaddress via client, caused by nested transactions.
Fixed deletion of characters which left over garbage in sqlite.
Diffstat (limited to 'src/account-server/dalstorage.hpp')
-rw-r--r-- | src/account-server/dalstorage.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/account-server/dalstorage.hpp b/src/account-server/dalstorage.hpp index f67ed264..1e8566ef 100644 --- a/src/account-server/dalstorage.hpp +++ b/src/account-server/dalstorage.hpp @@ -180,9 +180,14 @@ class DALStorage * Primary usage should be storing characterdata received from a * game server. * returns true if succefull, false otherwise. + * @param ptr Character to store values in the database. + * @param startTransaction set to false if this method is called as + * nested transaction. + * @return true on success */ bool - updateCharacter(Character *ptr); + updateCharacter(Character *ptr, + bool startTransaction = true); /** * Save changes of a skill to the database permanently. |