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:
GoldenAlpharex
2022-08-25 07:12:37 +02:00
committed by GitHub
parent 4faaa0d665
commit 4447eb122f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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