summaryrefslogtreecommitdiff
path: root/src/dal/mysqldataprovider.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-04-27Use nullptr instead of NULL everywhereErik Schilling1-2/+2
2013-01-09Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer1-7/+7
Same thing, but shorter.
2011-03-12Removed a bunch of silly documentationThorbjørn Lindeijer1-14/+2
A C++ developer should be able to recognize a constructor and a destructor by just looking at it, so let's stop writing down the obvious. :)
2010-11-14Fix a potential memleak related to binds when disconnecting with MySQL.Yohann Ferreira1-5/+13
Trivial fix.
2010-11-14Simplified the use of binding when using MySQL.Yohann Ferreira1-43/+66
This permits to avoid a memleak with the former vector form and to use the 'place' variable when binding. The badly prepared statements are also a bit better handled now. With this patch, IMHO, the MySQL support is in shape. Reviewed-by: Jaxad0127.
2010-11-10Fix code indentation in the sql related files.Yohann Ferreira1-34/+36
Trivial fix.
2010-10-30Have the PerformTransaction class automatically handle nestingThorbjørn Lindeijer1-2/+46
No need to fiddle around with "startTransaction" booleans now that the helper class is a little more intelligent. When the database is already performing a transaction, no new one will be started.
2010-02-07Update Copyright date for Manaserv.Bertram1-1/+1
2010-01-10Fixing the mysql backend and the mysql createTables scriptBlue1-1/+139
Implementing the prepared statements in mysql backend
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer1-13/+13
Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
2009-12-06A host of code style changesThorbjørn Lindeijer1-22/+12
Removed pointless void in method parameter lists, fixed methods and variables that started with upper case, removed pointless 'const' for stuff passed by value, made some getters const, etc.
2009-10-24Rebranding tmwserv to manaservThorbjørn Lindeijer1-3/+3
Includes a database update. Use update_6_to_7.sql to update existing sqlite databases.
2009-05-01Mysql backend, lua and NPC handlerBlue1-8/+8
Fix for mysql backend (again) Lua modification for integer and string ask with NPC, and closing fix.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
2008-09-17* Added installation scripts to set up database schemas for mysql, sqlite ↵Andreas Habel1-12/+142
and postgresql. The create table statements have been completely removed out from the c++ source into separate, provider specific sql files. Accountserver will no longer create a sqlite file if none present. * Added database specific config parameters to configure each provider independent. * Simplified the connect routine of DALStorage class since every dataprovider is now responsible to retrieve its own parameters. * Extended abstract dataprovider to support transactions, functionally implemented for SQLite and mySQL. * Added methods to retrieve last inserted auto-increment value and the number of modified rows by the last statement. * Rewrite of DALStorage class to be a little more transactional. * Fixed a bug when deleting a character. Old function left data in quests table and guilds table. * Doxygen now also includes non-documented functions and provides a dictionary for all classes
2007-08-13Deleted obsolete files. Cleaned configuration. Removed obsolete SQL tables.Guillaume Melquiond1-4/+0
2007-02-27Implementation of chat channels by Trapdoor.Philipp Sehmisch1-0/+4
2006-07-27First step toward a restructured class hierarchy for world actors: addGuillaume Melquiond1-3/+0
MovingObject and Player classes.
2006-03-06Cleaned up unnecessary header dependencies and fixed some indentations.Björn Steinbrink1-3/+1
2005-10-23Grammar Corrections, and a little bit of work on getting the name of the Db.Yohann Ferreira1-0/+3
2005-06-30Fixed memory leak, implemented delAccount() + unit tests and now using ↵Huynh Tran1-1/+4
reference-counted smart pointers to facilitate the memory management.
2005-06-21Made sure that pointers are initalized and reset to null after deallocation ↵Huynh Tran1-3/+11
and some reformatting.
2005-06-16Simplified APIs, change namespace from tmw to tmwserv, implemented MySQL ↵Huynh Tran1-39/+89
data provider, added unit tests (require CPPUnit) and bug fixes.
2005-06-14Reworked RecordSet and implemented the SQLite Data ProviderHuynh Tran1-2/+19
2005-06-13Initial release of the Database Abstraction LayerHuynh Tran1-0/+122