mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Adds /datum/DBQuery/proc/SetQuery (#38584)
* Adds /datum/DBQuery/proc/SetQuery * Needful newness
This commit is contained in:
committed by
Tad Hardesty
parent
056735a1ae
commit
bc065d4bbc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user