aboutsummaryrefslogtreecommitdiff
path: root/src/server/database
AgeCommit message (Collapse)Author
2016-03-19CMake: Use inherited dependencies in database, shared and gameNaios
(cherry picked from commit 469f2d3ade168de0b5be18112008c337067a8e03)
2016-03-19CMake: Use inherited dependencies in common and toolsNaios
(cherry picked from commit abda7a910a760687f9c1b9e0893314e04982c0f1)
2016-03-11Core/Database: Move singleton instances into compilation unitsNaios
* Fixes issues when building shared libraries (prevents gcc and clang from providing several instance) * Also instantiate the database worker pools in DatabaseEnv.cpp now.
2016-03-03Core/Database: Use RAII for resource management in MySQLConnectionNaios
* Prevents double deletion of MySQLConnection after errors * The object stays valid after an error and will wait for a reconnect * Also crash the server if 5 reconnects fail * Corrects an issue where the server was crashed after one reconnect because mysql_thread_id was invoked with an invalid handle (cherry picked from commit 62815c6e1c0427e1d0229d02b1ba70449654cded)
2016-03-03Core/Database: Move DatabaseWorkerPool into it's own translation unitNaios
(cherry picked from commit 09fa0ab46a487ea85d475ac0b3495724c170fe1a)
2016-03-03Core/Database: Use RAII instead of raw pointers for resource managementNaios
* Corrects dirty usage of vectors with array indexes * Removes _connectionCount which is now handled through the vector size * Rename magic identifier "t" to "connection" (cherry picked from commit 5ed018099418099e23921409ff96dc6175b97062)
2016-03-03Core/Database: Close the databases correctly when the DBUpdater failsNaios
* Also fixes a memory leak spotted by Aokromes (cherry picked from commit 7d3cffc297b6a1e24faf64a19b5167609ad8abbf)
2016-03-02Merge branch 'pets' of https://github.com/myran2/TrinityCore into myran2-petsDDuarte
# Conflicts: # src/server/game/Handlers/PetHandler.cpp # src/server/game/Handlers/SpellHandler.cpp # src/server/game/Server/Packets/PetPackets.cpp # src/server/game/Server/Packets/PetPackets.h # src/server/game/Server/Protocol/Opcodes.cpp # src/server/game/Server/WorldSession.h
2016-02-21Core/Updater: Convert an assertion into a fatal errorNaios
* The error is triggered when it fails to open an update for hashing * See 'https://community.trinitycore.org/topic/12352-worldserver-crashes-on-database-update/' for details * And a minor cleanup in the UpdateFetcher
2016-02-21Core/Common: Add a generic config helper to access built-in overwriteable paths.Naios
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h * Move the source and mysql exe path handling out of the DBUpdater. * Make some Config methods const for correctness. * Remove C & CXX flags from revision_data.h (was unused and didn't capture all cxx vars) * Reorder the link order to prevent `ld` from ignoring the file * Ref #15671
2016-02-20Core/Updater: Use a different method for file readingNaios
* Current method causes issues under CentOS 6 and could possibly lead to cutted buffer content when reading in textmode. * Closes #16209 (cherry picked from commit ae1a5c6c2b82918850cb7b851e2f7dff33a40c57)
2016-01-15Core/Quest: Fix issues reported by static analysisjackpoz
(cherry picked from commit 5b8b32dac7bd4071462aebdc94b2b3ae45e60b1e)
2016-01-10Core/DataStores: Dropped unused DB2 fileShauren
2016-01-05Core/Players: Split playerBytes fields in characters tableShauren
2016-01-04Core/DBUpdater: Fix help text download linkDuarte Duarte
Change from forums to GH Releases
2016-01-03Core/DataStores: Implemented checking PlayerCondition for future useShauren
2016-01-01Update copyright note for 2016Vincent-Michael
Happy new year (Again new year with idiots ...)
2015-11-24Core/Spells: Implemented scaling spell value with item levelShauren
2015-11-13Core/DBLayer: Improve error message from ↵Shauren
0a27f8bce264b8f6d8c55efa8ebc97f6e9cb7d11
2015-11-13Fix build for mysql versions older than 5.7Shauren
2015-11-12Core/DBLayer: Ensure that MySQL version used when compiling is the same as ↵Shauren
libmysql.dll version used for running the server. Ref #15848
2015-11-07Updated url for tc wikiVincent-Michael
2015-11-06Merge pull request #15707 from ShinDarth/pvpstatspete318
Core/BG fix .character changefaction pvpstats victories amount (cherry picked from commit 69941864efa9e40a787f53f055c79336378b8d4d) Conflicts: sql/base/characters_database.sql src/server/game/Battlegrounds/Battleground.cpp
2015-11-05Core/Accounts: Unified game account ban checks with 3.3.5 branchShauren
2015-11-02Core/Auth: Added missing lock country check to AuthSession handlerShauren
2015-10-16Core/Player: implemented Heirloom CollectionMitchesD
* implemented all things related to that collection * you can create heirloom by click on item in collection * also you can upgrade heirlooms by using specific kits * old heirlooms are converted to new ones
2015-10-05CMake: Fix bad generation of "revision_data.h" not including MYSQL_EXECUTABLE.Naios
* was caused through invoking "FindMySQL" after using ${MYSQL_EXECUTABLE}. * better re-run CMake if you are affected by the mysql exe wasn't found issue. (cherry picked from commit 45a60c2d22a93f6196491a0eb0478d05795e310f)
2015-10-05Core/Updater: Fix mysql in path check/search.Naios
(cherry picked from commit a561edefb90af25864aeb7ca7fc48fe0364df765)
2015-10-05Core/World: Store account id in CharacterInfo to reduce the amount of ↵Shauren
database queries
2015-10-02Core/Players: Removed db queries from friend packet buildersShauren
2015-09-28Core/Maps: Moved corpse management to map levelShauren
2015-09-26Core/Updater: fixed host parameter is being ignoredjoschiwald
2015-09-26Build fixShauren
2015-09-26Core/Updater: Pipe mysql process output into worldserver logShauren
2015-09-21Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick ↵StormBytePP
hack to crash the core misusing assert
2015-09-13Core/DBLayer: Allowed using GetDouble for SUM results instead of requiring ↵Shauren
string conversions
2015-09-10Core/Spells: Improved spell category cooldown handlingShauren
* Category cooldown is stored with the spell that started the cooldown (and only resetting cooldown on that spell will clear cooldowns on entire category - this fully mirrors client behavior) * This significantly reduces the amount of data saved to database for cooldowns * Spell casts from items that have a different category specified than on spell will now check for cooldown during the cast Closes #15349
2015-09-09Core/BattlePets: Basics for Battle Petshorn
2015-09-07Core/DataStores: Updated DBC and DB2 structures to 6.2.2.20444Shauren
2015-09-04Core/DBLayer: Allocate a single buffer for entire prepared result set ↵Shauren
instead of separate ones for each field
2015-08-30Core/Players: Implemented serverside validation of reserved/profane namesShauren
Closes #15357 New library dependency: Boost.Regex
2015-08-27Only read and delete from corpse table for current map instance. Not forpete318
all. Prevents assert stop upon entering an instance on second character after first one is a corpse in the same dungeon on different instance ID.
2015-08-27Core/DBLayer: Added compile time validation for prepared statement indexes ↵Shauren
passed to DatabaseWorkerPool::GetPreparedStatement turning mistakes like the one fixed in 0327927fa61434d432f9749fd9242ae5dce9a5cd into compiler errors.
2015-08-26Core/DBLayer: Optimized prepared statement query results by eliminating ↵Shauren
unneeded buffer copies * Improved error logs for using incorrect Field getters to also include table name, field name and field index.
2015-08-26Core/Player: implemented ToyboxMitchesD
* now you can use all the things in toybox - add new toys, set them as favorite and use them
2015-08-24Core/DBLayer: Reordered table joins to work around a mysql bugShauren
Closes #15259
2015-08-24Core/BuildSystem: Merged crypto into common, cleaned include directory lists ↵StormBytePP
(to mimic 3.x buildsystem)
2015-08-21Core/Build: Merge common library and move database out of sharedStormBytePP