X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fglobal_status.go;fp=lib%2Fglobal_status.go;h=8c919d522124f7d40127a7c44fd0bb2bf117e90b;hb=db603692f051e73aae7c3073bcd2a8a46dead813;hp=1bbe0b7f117d04d3896ca91fea20c4630ac82f03;hpb=c9492a06487413f21406193ddfd0197209e1efde;p=pstop.git diff --git a/lib/global_status.go b/lib/global_status.go index 1bbe0b7..8c919d5 100644 --- a/lib/global_status.go +++ b/lib/global_status.go @@ -14,6 +14,8 @@ import ( * +----------------+ * 1 row in set (0.00 sec) **/ + +// return the variable value of the given variable name (if found), or if not an error func SelectGlobalStatusByVariableName(dbh *sql.DB, variable_name string) (error, int) { sql_select := "SELECT VARIABLE_VALUE from INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = ?"