mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Fixes SQL game logs throwing a bunch of SQL errors (#15773)
* Increases the list nesting by one on log entries for the mass insert log * Updates the name of the time column because of course I had to get it wrong :)
This commit is contained in:
@@ -79,7 +79,7 @@ GLOBAL_LIST_INIT(testing_global_profiler, list("_PROFILE_NAME" = "Global"))
|
||||
SSdbcore.add_log_to_mass_insert_queue(
|
||||
format_table_name("game_log"),
|
||||
list(
|
||||
"time" = SQLtime(),
|
||||
"datetime" = SQLtime(),
|
||||
"round_id" = "[GLOB.round_id]",
|
||||
"ckey" = key_name(src),
|
||||
"loc" = loc_name(src),
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* * log_entry - Associative list representing all of the information that needs to be logged.
|
||||
* Default format is as follows, for the `game_log` table (even if this could be used for another table):
|
||||
* list(
|
||||
* "time" = SQLtime(),
|
||||
* "datetime" = SQLtime(),
|
||||
* "round_id" = "[GLOB.round_id]",
|
||||
* "ckey" = key_name(src),
|
||||
* "loc" = loc_name(src),
|
||||
@@ -33,7 +33,7 @@
|
||||
if(!queued_log_entries_by_table[table])
|
||||
queued_log_entries_by_table[table] = list()
|
||||
|
||||
queued_log_entries_by_table[table] += log_entry
|
||||
queued_log_entries_by_table[table] += list(log_entry)
|
||||
|
||||
if(length(queued_log_entries_by_table[table]) < CONFIG_GET(number/sql_game_log_min_bundle_size))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user