Commit Graph

30 Commits

Author SHA1 Message Date
Jordan Brown
84ae366f06 Fixes MassInsert query deleting (#38610) 2018-06-20 17:03:44 -07:00
Jordan Brown
bc065d4bbc Adds /datum/DBQuery/proc/SetQuery (#38584)
* Adds /datum/DBQuery/proc/SetQuery

* Needful newness
2018-06-20 00:18:23 -07:00
Jordan Brown
1a22d45dbf [s] Fixes stack overflow (#38592)
[s] Fixes direct sql datum call exploit.
2018-06-19 16:10:30 +02:00
Jordan Brown
cf7e8aa9ec Qdels queries, adds sleep safety checks, DBcore checks for leaks (#38363)
* Qdels all queries, adds sleep handling

* DB Core messages admins about undeleted queries

* Compile fixes. Adds missing set waitfor

* Remove world/New shennanigans. Add DBQuery/BlockingExecute()

* Less spammy notifications to admins about undeleted queries

* Increase dbcore fire time to 1 minute

* Upgrade undeleted query warning

* Better place of death

* Fix build

* Remove BlockingExecute, see BSQL PR for why

* Yep, missed that one.

* Psyche, that's the WRONG QUERY!!
2018-06-18 22:48:35 +03:00
Jordan Brown
b661a52ed1 Merge pull request #37838 from Jordie0608/ithoughtaboutmakingthissendanemailbutidontwanttodrownmyinbox
Query debug logging
2018-05-17 22:38:32 -04:00
Jordie0608
124230251b log only slow queries 2018-05-16 15:30:27 +10:00
Jordie0608
d25762dddd query debug logging as a config option 2018-05-16 14:59:39 +10:00
Jordie
37854a5489 Splits up round table initialize, start, end and shutdown (#37665)
For planned change to how TGS initializes server instances ahead of time so rounds aren't tracked as being far longer than they really would be. Similarly end time split for a more accurate round duration.
2018-05-15 19:11:39 +12:00
Jordie0608
6b4316a201 query debug logging 2018-05-14 19:55:20 +10:00
Jordan Brown
916241cbd2 Un-Cyberboss' DB conversions 2018-03-23 15:02:23 -05:00
Emmett Gaines
70beb65889 Unit test to make sure all subsystems which initialize call parent (#36466) 2018-03-20 14:01:46 +01:00
Jordie
71ca25afbb Merge pull request #35120 from tgstation/a
Revert "Removes unused consts from dbcore (#34711)"
2018-01-31 09:08:36 +11:00
Cyberboss
f3cf3c5e2d Revert "Revert "Fix sql injection""
This reverts commit 23eeb4ac80.
2018-01-29 21:54:19 -05:00
Cyberboss
23eeb4ac80 Revert "Fix sql injection"
This reverts commit de4be23ff7.
2018-01-29 21:53:16 -05:00
Jordan Brown
de4be23ff7 Fix sql injection 2018-01-29 21:51:19 -05:00
Jordan Brown
d038551fbd Revert "Removes unused consts from dbcore (#34711)"
This reverts commit 1dc1bfcfef.
2018-01-29 16:32:43 -05:00
Jordan Brown
1dc1bfcfef Removes unused consts from dbcore (#34711) 2018-01-21 22:14:34 -05:00
Jordan Brown
dfa6576452 Removes an unused proc 2018-01-21 18:12:37 -06:00
oranges
a26ad89646 Move roundid and schema check to dbcore subsystem
The admin messages about a schema mismatch are now queued until
subsystem Initialize, as clients do not exist until after world/New, so
there was no clients for goonchat to queue messages to before then
2018-01-16 09:14:45 +00:00
swindly
d3df913402 fixes spelling and stuff (#32531) 2017-11-09 11:03:50 -06:00
Firecage
ee3e8d2846 merge conflict fix 2017-10-05 11:22:57 +02:00
Firecage
2ae0380fef Does some code standardization/consistency 2017-10-05 11:13:47 +02:00
Jordan Brown
4178c209f1 Configuration datum refactor (#30763)
* Configuration datum refactor

* More WIP

* New easier on the eyes format

* More WIP

* Finished config.txt

* Fucktons more WIP

* The end of conversion draws near...

* Add all this shit

* Done converting entries finally

* Hunting down compile errors

* More WIP

* MORE CONVERSIONS

* More WIP

* More WIP

* Oh shit only 90 errors this time!

* IT COMPILES!!!

* Fixes world start runtimes
2017-09-29 15:36:51 +13:00
Jordie
6dece51512 Fixes faulty query and logic (#27890) 2017-05-31 10:38:12 -03:00
Jordie
f042d97448 Adds round table to replace tacking some data in feedback table (#27454)
* adds round table to replace tacking some data in feedback table

* removes obsolete code for acolytes_survived

* uses a better query

* corrects var name

* uses actual sql queries

* adds commit column and connected checks before queries
2017-05-26 22:17:44 +02:00
Cyberboss
1c3b0321ad Fixes DBCore Recovery 2017-05-23 13:30:39 -04:00
Kyle Spier-Swenson
e23fee4c2c >mysql 2017-05-15 12:03:33 -07:00
Kyle Spier-Swenson
206abf39e3 Adds Mass Insert proc to sql (#27139) 2017-05-15 15:24:59 -03:00
Cyberboss
e7cd4c4bc8 Fixes SSdbcore showing the incorrect ErrorMsg (#26352) 2017-04-19 13:08:24 -06:00
Cyberboss
3c3f7d3b60 Refactors dbcon into a subsystem (#26134)
* Refactors dbcon into a subsystem

* Swear I got that already...
2017-04-17 15:18:17 +10:00