Add debugging for stuff going wrong here.

Should give more insight into DB fuckery
This commit is contained in:
Cadyn
2020-09-06 20:57:01 -07:00
parent d5471f06cd
commit 625b292616

View File

@@ -85,7 +85,8 @@ SUBSYSTEM_DEF(persist)
var/sql_bal = text2num("[C.department_hours[department_earning]]")
var/sql_total = text2num("[C.play_hours[department_earning]]")
var/DBQuery/query = dbcon.NewQuery("INSERT INTO vr_player_hours (ckey, department, hours, total_hours) VALUES ('[sql_ckey]', '[sql_dpt]', [sql_bal], [sql_total]) ON DUPLICATE KEY UPDATE hours = VALUES(hours), total_hours = VALUES(total_hours)")
query.Execute()
if(!query.Execute())
log_admin(query.ErrorMsg())
if (MC_TICK_CHECK)
return