Adds /datum/DBQuery/proc/SetQuery (#38584)

* Adds /datum/DBQuery/proc/SetQuery

* Needful newness
This commit is contained in:
Jordan Brown
2018-06-20 03:18:23 -04:00
committed by Tad Hardesty
parent 056735a1ae
commit bc065d4bbc
+5
View File
@@ -277,6 +277,11 @@ Delayed insert mode was removed in mysql 7 and only works with MyISAM type table
if(!.)
to_chat(usr, "<span class='danger'>A SQL error occurred during this operation, check the server logs.</span>")
/datum/DBQuery/proc/SetQuery(new_sql)
Activity("SetQuery")
Close()
sql = new_sql
/datum/DBQuery/proc/Execute(sql_query = sql, cursor_handler = default_cursor, log_error = TRUE)
Activity("Execute")
var/start_time