Venugh
882ebe2b8e
Core/World: Convert Execute to PreparedStatement from Battleground random.
2011-12-27 01:04:12 +01:00
Venugh
cab508b4c8
Convert a Execute to a PreparedStatement.
2011-12-27 00:56:42 +01:00
leak
e646dbb3cd
Core/DBLayer: Convert PExecute() queries to prepared statements No. 2
2011-12-27 00:29:48 +01:00
leak
ef17c05dec
Core/DBLayer: Convert PExecute() queries to prepared statements No. 1
2011-12-25 18:13:21 +01:00
leak
64a2a29506
Core/DBLayer: Convert Execute() queries to prepared statements
2011-12-25 02:22:10 +01:00
leak
08bd2f1a54
Core/DBLayer: Convert callback queries to prepared statements No. 3
2011-12-25 01:27:44 +01:00
kandera
96f4ba29cd
Fix compile error from 2d93bd07ba
2011-12-21 07:18:47 -05:00
Machiavelli
2d93bd07ba
Core/DBLayer: More generic implementation of callback chains, instead of using this functionality local to CharacterCreatInfo class. Will be used in other places as well.
2011-12-21 10:22:03 +01:00
Machiavelli
17aeeaa9b5
Core/DBLayer: Fix a silly error in HandleStableSwapPet (synchronous query in async context). Fixes possible loss of pets when swapping.
2011-12-21 09:36:05 +01:00
leak
e1afd79b1e
Core/DBLayer: Convert callback queries to prepared statements #2
2011-12-20 09:12:43 +01:00
Machiavelli
8e0be985fd
Core/Netcode: Fix a possible infinite loop after 829be0b82 (which was accidentally merged in this morning)
2011-12-19 21:12:35 +01:00
Machiavelli
a06ba9e255
Update src/server/shared/Database/MySQLConnection.h
2011-12-19 11:25:58 +01:00
Machiavelli
a1683f20dc
Fix SQL file name after pull request, and fix compile on linux.
2011-12-19 11:17:52 +01:00
Machiavelli
392baafed4
Core/DBLayer: Documentation update
2011-12-19 11:11:25 +01:00
Machiavelli
4069e45c5d
Core/DBLayer: Fix crash caused in 7052fbf
2011-12-19 11:05:56 +01:00
leak
7052fbf5cc
Core/DBLayer: Convert callback queries to prepared statements
2011-12-18 20:56:38 +01:00
Machiavelli
589f067101
Core/DBLayer: Terminate process if table/database structure is not compatible with the core. This will significantly reduce the amount of PEBCAK help and support threads on our forums.
...
Also added a 10 second window to WPFatal for users who never heard of command line before to read the error prior to process termination.
2011-12-13 13:59:00 +01:00
Nay
f8ffe0f1e3
Core/DB: Fix a typo in commit 72675d55d8
...
Closes #4068
2011-11-25 15:41:06 +00:00
Machiavelli
72675d55d8
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).
2011-11-25 15:14:00 +01:00
Shauren
638693e78f
Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.)
2011-11-23 17:55:16 +01:00
megamage
847fc35e6d
Fix compile in linux.
2011-11-10 18:14:07 -05:00
megamage
31a88d4fe5
Fix the crash when removing object from an unloaded grid. Object should always be unlinked from grid no matter if the grid is loaded.
2011-11-10 17:31:45 -05:00
megamage
e3fa04823d
Use TRINITY_GUARD to replace ACE_GUARD. ASSERT(false) if failed to acquire the lock.
2011-10-31 17:25:12 -04:00
Spp
e3f8588a22
Minor changes here and there:
...
- Cosmetic changes
- 'Engrish fix'
- Initialization of some vars
- Remove some not needed includes
2011-10-18 14:59:23 +02:00
Shauren
8305b0240b
Core/DB: Fixed a crash on shutdown under msvc compiler
2011-09-30 18:42:26 +02:00
Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
9e517c963b
Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*"
2011-09-29 09:32:55 +02:00
Spp
be12603150
Configuration/ConfigMgr: converted from singleton to namespace with free functions.
2011-09-28 13:00:43 +02:00
Spp
7b68a6bf69
Core/Logging: Add new function to include full stacktrace.
...
Note: It only has use for devs but makes it easier to get the error with a full trace
2011-09-26 14:34:50 +02:00
Shocker
74616464f2
Core/Misc: Fix gcc build
2011-09-15 21:44:50 +03:00
Shocker
7afb179185
Misc/Util: Add a template function for returning a random element from any container
2011-09-15 21:28:40 +03:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
Fredi Machado
bac261b001
Core/Log: Reload log levels and filters
...
on 'reload config' command
2011-09-08 23:00:26 -03:00
Nay
fd3bd4c49d
Core/Quests: Implement quests that require PlayerSlain. Closes #169
2011-09-05 15:20:02 +01:00
Machiavelli
fdbfa5156c
Core/DBLayer: Possible crash fix for ProcessQueryCallbacks on GCC builds. Ref issue #2136 #1422 #1335 .
...
There's no need for an explicit ACE_Thread_Mutex in the ACE_Refcounted_Auto_Ptr objects since concurrent read/write access is guarded by ACE_Future's implicit ACE_Recursive_Thread_Mutex. Perhaps the double locking was the reason the reference count's atomic incrementing crashing.
Please try to test and confirm.
2011-08-18 12:43:42 +02:00
leak
91a3bfe42a
Core/Commands: .pinfo improvements
...
- Allow .pinfo <guid>
- Add map/zone/subzone/phase to output
2011-08-13 13:00:38 +02:00
click
d7715fa4b8
Buildsystem/Windows: Add support for reading commithash and commitdate directly from the executable binaries.
...
To view this information, check the "Product Version" field in Properties on the respective daemon.
+ Fix worldserver/authserver .rc file layouts and content (now adheres to MS standards *sighs*)
+ Change .serv info output to show corename followed by the commit date and hash
+ Include showing the versionstring on worldserver startup completion (on Aokromes' request)
Thanks to Paradox for bugging me enough about it and the initial pull-request.
2011-08-04 22:53:33 +02:00
Silinoron
76fe596160
Core/Refer-a-Friend: Finish base work for Refer-a-Friend.
...
Any testing would be very much appreciated.
2011-08-03 09:28:12 -07:00
Spp
e7327e7e94
Core: Fix compile without PCH and fix some warnings
2011-08-03 11:23:08 +02:00
Spp-
079f292b15
Core: Some more missing changes from previous commit (Pass by const reference for simple objects replaced with pass by value). Also fix unintended change
2011-08-01 14:51:44 +02:00
Spp-
acd0fc79f6
Core: Pass by const reference for simple objects replaced with pass by value
2011-08-01 14:23:27 +02:00
Spp-
1fc1da842e
Core: Fix annoying compile warning and some other minor changes here and there
2011-08-01 13:46:00 +02:00
Spp-
e47b96af3e
Core: Append single character to stream as character, not as a string
2011-07-29 14:18:28 +02:00
Machiavelli
0c6079790b
Core/Misc: Make 64-bit abs function 'portable'. Should fix build on MSVC versions =< 9
2011-07-29 00:59:30 +02:00
Machiavelli
2eb69330b4
Core/DBLayer: Fix Field::GetInt64 parsing for non-prepared statements
2011-07-27 17:45:49 +02:00
Spp-
e9aa72cc7b
Cosmetic: rename function escape_string to EscapeString
2011-06-30 14:52:44 +02:00
Shocker
6a6e3e3265
Core/Logs: Add outSQLDev log, will be used for core-generated SQL queries/dumps
2011-06-29 16:31:01 +03:00
Machiavelli
0df059d5a2
Core/DBLayer: Don't lock a connection when doing mysql_real_escape_string as it doesn't need to interact with the server.
2011-06-22 15:04:13 +02:00
Machiavelli
fe8cb75bf1
Core/DBLayer: Make database interaction after create character packet completely asynchronous. This is more performant and fixes a DoS loophole and possible data desynchronisation caused by spamming this packet.
...
Closes #584
Closes #2089
2011-06-22 14:22:08 +02:00
click
f778c5e739
Whitespace cleanups...
2011-06-18 19:51:28 +02:00